Skip to content

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]

test(test_completion.py): fix gemini rate limit error

Krrish Dholakia84060160961b
diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.py
index 4b275a342e1..2ef6cf674ad 100644
--- a/litellm/tests/test_completion.py
+++ b/litellm/tests/test_completion.py
@@ -707,6 +707,8 @@ def test_gemini_completion_call_error():
print(f"response: {response}")
for chunk in response:
print(chunk)
+ except litellm.RateLimitError:
+ pass
except litellm.InternalServerError:
pass
except Exception as e: