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 fallback delete (#12606)

zengxu1899549e7b22
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index 8dfbf094ef3..b1a14d14943 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -2767,13 +2767,13 @@ class ProxyConfig:
return current_config
- # For dictionary values, update only non-empty values
+ # For dictionary values, update only non-none values
if isinstance(current_config[param_name], dict):
# Only keep non None values from db_param_value
- non_empty_values = {k: v for k, v in db_param_value.items() if v}
+ non_none_values = {k: v for k, v in db_param_value.items() if v is not None}
- # Update the config with non-empty values
- current_config[param_name].update(non_empty_values)
+ # Update the config with non-none values
+ current_config[param_name].update(non_none_values)
else:
current_config[param_name] = db_param_value