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): handle gemini internal server error
Krrish Dholakia14d54f7af5d5
diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.pyindex bf77474cf65..1e180de290e 100644--- a/litellm/tests/test_completion.py+++ b/litellm/tests/test_completion.py@@ -646,6 +646,8 @@ def test_gemini_completion_call_error():print(f"response: {response}")for chunk in response:print(chunk)+ except litellm.InternalServerError:+ passexcept Exception as e:pytest.fail(f"error occurred: {str(e)}")