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(responses): suppress LIT002 on error-code map frozen by MappingProxyType
mateo-berri9545b109b18d
diff --git a/litellm/responses/streaming_iterator.py b/litellm/responses/streaming_iterator.pyindex e85a758269f..dab666ff0d9 100644--- a/litellm/responses/streaming_iterator.py+++ b/litellm/responses/streaming_iterator.py@@ -50,7 +50,7 @@ def _log_background_task_failure(task: "asyncio.Task[Any]", *, task_name: str) -_ERROR_CODE_HTTP_STATUS: Mapping[str, int] = MappingProxyType(- {+ { # mutable-ok: immediately frozen by MappingProxyType"server_error": 500,"rate_limit_exceeded": 429,"insufficient_quota": 429,