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): suppress BLE001 for best-effort cache invalidation guards
mateo-berria1504452d993
diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.pyindex 21b455c5d44..72f59238ec3 100644--- a/litellm/proxy/auth/auth_checks.py+++ b/litellm/proxy/auth/auth_checks.py@@ -1769,7 +1769,7 @@ async def _cache_team_object(if proxy_logging_obj is not None:try:await proxy_logging_obj.internal_usage_cache.dual_cache.async_delete_cache(key=key)- except Exception as e:+ except Exception as e: # noqa: BLE001 # best-effort invalidation: any cache backend error must not fail the writeverbose_proxy_logger.warning("Failed to invalidate internal usage cache entry %s; ""a stale team object may be served until its TTL expires: %s",@@ -1805,7 +1805,7 @@ async def _cache_team_object(user_api_key_cache.delete_cache(key=alias_key)if proxy_logging_obj is not None:await proxy_logging_obj.internal_usage_cache.dual_cache.async_delete_cache(key=alias_key)- except Exception as e:+ except Exception as e: # noqa: BLE001 # best-effort invalidation: any cache backend error must not fail the mutationverbose_proxy_logger.warning("Failed to invalidate cached team alias entry %s; ""a stale team object may be served until its TTL expires: %s",