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
test: handle anthropic rate limit error
Krrish Dholakiacd073d5ad3e2
diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.pyindex 8e7e333ff12..add7a8b9f4d 100644--- a/litellm/tests/test_completion.py+++ b/litellm/tests/test_completion.py@@ -304,6 +304,8 @@ def test_completion_claude():print(response.usage.completion_tokens)print(response["usage"]["completion_tokens"])# print("new cost tracking")+ except litellm.RateLimitError as e:+ passexcept Exception as e:if "overloaded_error" in str(e):pass