mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor(config): retire RuntimeSettingsCompat host usage
This commit is contained in:
@@ -146,6 +146,10 @@ with stub_modules({"app.runtime.config": _config_stub, "app.runtime.log": _log_s
|
||||
llm_module = importlib.util.module_from_spec(spec)
|
||||
assert spec and spec.loader
|
||||
spec.loader.exec_module(llm_module)
|
||||
llm_module.settings = _config_stub.settings
|
||||
llm_module.get_runtime_setting = lambda key, default=None: getattr(
|
||||
_config_stub.settings, key, default
|
||||
)
|
||||
|
||||
|
||||
class _OfflineProviderManager:
|
||||
|
||||
Reference in New Issue
Block a user