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_amazing_vertex_completion.py): handle vertex api instability

Krrish Dholakia5e707091ee78
diff --git a/litellm/tests/test_amazing_vertex_completion.py b/litellm/tests/test_amazing_vertex_completion.py
index fe7d1a8c853..e30a9ed362b 100644
--- a/litellm/tests/test_amazing_vertex_completion.py
+++ b/litellm/tests/test_amazing_vertex_completion.py
@@ -501,6 +501,8 @@ async def test_async_vertexai_streaming_response():
assert len(complete_response) > 0
except litellm.RateLimitError as e:
pass
+ except litellm.APIConnectionError:
+ pass
except litellm.Timeout as e:
pass
except litellm.InternalServerError as e: