mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-24 00:52:24 +00:00
refactor(proxy): freeze the filtered worker config before initialize
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
b2e123da43
commit
f7756d01cf
1 changed files with 3 additions and 2 deletions
|
|
@ -8571,8 +8571,9 @@ def save_worker_config(**data):
|
|||
LEGACY_WORKER_CONFIG_KEYS: Final = frozenset({"telemetry"})
|
||||
|
||||
|
||||
async def initialize_from_worker_config(worker_config: dict[str, object]) -> None:
|
||||
await initialize(**{k: v for k, v in worker_config.items() if k not in LEGACY_WORKER_CONFIG_KEYS})
|
||||
async def initialize_from_worker_config(worker_config: Mapping[str, object]) -> None:
|
||||
supported: Final = MappingProxyType({k: v for k, v in worker_config.items() if k not in LEGACY_WORKER_CONFIG_KEYS})
|
||||
await initialize(**supported)
|
||||
|
||||
|
||||
async def initialize(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue