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]

handle anthropic internal server errors

Ishaan Jaffbf01d4f09268
diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.py
index d2ecd609272..c73fcddb6f1 100644
--- a/litellm/tests/test_completion.py
+++ b/litellm/tests/test_completion.py
@@ -497,6 +497,8 @@ def test_completion_claude_3_function_call(model):
drop_params=True,
)
print(second_response)
+ except litellm.InternalServerError:
+ pass
except Exception as e:
pytest.fail(f"Error occurred: {e}")