mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
test(test_amazing_vertex_completion.py): fix test for json schema validation in openai schema
This commit is contained in:
parent
b571f3e115
commit
b4392d2b67
1 changed files with 3 additions and 0 deletions
|
@ -1488,6 +1488,9 @@ async def test_gemini_pro_json_schema_args_sent_httpx_openai_schema(
|
||||||
):
|
):
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
if enforce_validation:
|
||||||
|
litellm.enable_json_schema_validation = True
|
||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
load_vertex_ai_credentials()
|
load_vertex_ai_credentials()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue