Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: avoid router settings update name collision

mateoaba9644297e4
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index 1bdf2ba9987..6632b209905 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -16353,8 +16353,8 @@ async def update_config(
for key, value in raw_router_settings.items()
if key not in typed_router_settings and value is not None
}
- updates: Final = {**typed_router_settings, **raw_router_settings_without_none}
- new_router_settings: Final = {**existing, **updates}
+ router_settings_updates: Final = {**typed_router_settings, **raw_router_settings_without_none}
+ new_router_settings: Final = {**existing, **router_settings_updates}
await _upsert_section("router_settings", new_router_settings)
asyncio.create_task(
create_config_audit_log(