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 instability
Krrish Dholakia639f84d609ac
diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.pyindex c26035ad0ad..0ad40e34e57 100644--- a/litellm/tests/test_completion.py+++ b/litellm/tests/test_completion.py@@ -934,15 +934,18 @@ def test_completion_function_plus_image(model):}]- response = completion(- model=model,- messages=[image_message],- tool_choice=tool_choice,- tools=tools,- stream=False,- )+ try:+ response = completion(+ model=model,+ messages=[image_message],+ tool_choice=tool_choice,+ tools=tools,+ stream=False,+ )- print(response)+ print(response)+ except litellm.InternalServerError:+ pass@pytest.mark.parametrize(