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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(proxy): skip None model_name in clear_cache router eviction set
mateo-berri8982e1cef0ae
diff --git a/litellm/proxy/management_endpoints/model_management_endpoints.py b/litellm/proxy/management_endpoints/model_management_endpoints.pyindex 18d95d4e083..d458d0f7c4a 100644--- a/litellm/proxy/management_endpoints/model_management_endpoints.py+++ b/litellm/proxy/management_endpoints/model_management_endpoints.py@@ -1755,7 +1755,8 @@ async def clear_cache():db_router_names = {model.get("model_name")for model in current_models- if model.get("model_info", {}).get("db_model", False)+ if model.get("model_name") is not None+ and model.get("model_info", {}).get("db_model", False)and str(model.get("litellm_params", {}).get("model", "")).startswith("auto_router/")}for model_name in db_router_names: