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): fix test for json schema validation in openai schema

Krrish Dholakiab4392d2b67db
diff --git a/litellm/tests/test_amazing_vertex_completion.py b/litellm/tests/test_amazing_vertex_completion.py
index 53bb9fd8030..bad2428fbe2 100644
--- a/litellm/tests/test_amazing_vertex_completion.py
+++ b/litellm/tests/test_amazing_vertex_completion.py
@@ -1488,6 +1488,9 @@ async def test_gemini_pro_json_schema_args_sent_httpx_openai_schema(
):
from typing import List
+ if enforce_validation:
+ litellm.enable_json_schema_validation = True
+
from pydantic import BaseModel
load_vertex_ai_credentials()