mellea.backends.types
class mellea.backends.types.ModelOption()
mellea.backends.types.ModelOption.replace_keys(options: dict, from_to: dict[str, str])
options
replaced with the corresponding value for that key in from_to
.
If any keys already exist in options
, don’t edit the associated value.
Example:
mellea.backends.types.ModelOption.remove_special_keys(model_options)
mellea.backends.types.ModelOption.merge_model_options(persistent_opts: dict[str, Any], overwrite_opts: dict[str, Any] | None)