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(test_completion.py): fix test
Krrish Dholakiaa6ee1e04feca
diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.pyindex cfe16852368..4b275a342e1 100644--- a/litellm/tests/test_completion.py+++ b/litellm/tests/test_completion.py@@ -4032,7 +4032,9 @@ def test_completion_gemini(model):# Add any assertions,here to check the responseprint(response)assert response.choices[0]["index"] == 0- except litellm.APIError as e:+ except litellm.RateLimitError:+ pass+ except litellm.APIError:passexcept Exception as e:if "InternalServerError" in str(e):