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: update test

Krrish Dholakia174a1aa00705
diff --git a/tests/local_testing/test_amazing_vertex_completion.py b/tests/local_testing/test_amazing_vertex_completion.py
index 54982fe6d8f..f3c8e32dc14 100644
--- a/tests/local_testing/test_amazing_vertex_completion.py
+++ b/tests/local_testing/test_amazing_vertex_completion.py
@@ -455,6 +455,7 @@ async def test_async_vertexai_response():
or "gemini-2.0-flash-thinking-exp" in model
or "gemini-2.0-pro-exp-02-05" in model
or "gemini-pro" in model
+ or "gemini-1.0-pro" in model
):
# our account does not have access to this model
continue
@@ -465,6 +466,8 @@ async def test_async_vertexai_response():
model=model, messages=messages, temperature=0.7, timeout=5
)
print(f"response: {response}")
+ except litellm.NotFoundError as e:
+ pass
except litellm.RateLimitError as e:
pass
except litellm.Timeout as e:
@@ -503,6 +506,7 @@ async def test_async_vertexai_streaming_response():
or "gemini-2.0-flash-thinking-exp" in model
or "gemini-2.0-pro-exp-02-05" in model
or "gemini-pro" in model
+ or "gemini-1.0-pro" in model
):
# our account does not have access to this model
continue
@@ -524,6 +528,8 @@ async def test_async_vertexai_streaming_response():
complete_response += chunk.choices[0].delta.content
print(f"complete_response: {complete_response}")
assert len(complete_response) > 0
+ except litellm.NotFoundError as e:
+ pass
except litellm.RateLimitError as e:
pass
except litellm.APIConnectionError: