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(utils.py): handle anthropic overloaded error
Krrish Dholakia0bfe9bee547f
diff --git a/litellm/utils.py b/litellm/utils.pyindex 35596c784cf..e385d1bb3e8 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -6787,7 +6787,10 @@ def exception_type(llm_provider="anthropic",model=model,)- elif original_exception.status_code == 500:+ elif (+ original_exception.status_code == 500+ or original_exception.status_code == 529+ ):exception_mapping_worked = Trueraise litellm.InternalServerError(message=f"AnthropicException - {error_str}. Handle with `litellm.InternalServerError`.",