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(cache): use builtin dict annotation to satisfy UP006 budget gate
Yuneng Jiang0d3108872433
diff --git a/litellm/proxy/management_endpoints/cache_settings_endpoints.py b/litellm/proxy/management_endpoints/cache_settings_endpoints.pyindex 97697cc7518..9f45cb619aa 100644--- a/litellm/proxy/management_endpoints/cache_settings_endpoints.py+++ b/litellm/proxy/management_endpoints/cache_settings_endpoints.py@@ -50,7 +50,7 @@ _REDACTED_VALUE = "***REDACTED***"_URL_OVERRIDDEN_CONNECTION_FIELDS: frozenset = frozenset({"host", "port", "db", "password", "username"})-def _resolve_cache_url_precedence(settings: Mapping[str, Any]) -> Dict[str, Any]:+def _resolve_cache_url_precedence(settings: Mapping[str, Any]) -> dict[str, Any]:"""Return cache settings with the url-vs-discrete-fields ambiguity resolved.When a full ``url`` is supplied it wins: the discrete