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 internal server error in test
Krrish Dholakia3646e3e3a47f
diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.pyindex eec163f26a4..94b8b02c1ce 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(