From 2d9a9f470330b8d0b9ab6cac722e7c2e9b0d45a1 Mon Sep 17 00:00:00 2001 From: Konnor Young Date: Wed, 20 Nov 2024 11:17:59 -0700 Subject: [PATCH] made pydantic change --- src/openai/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openai/_models.py b/src/openai/_models.py index 20cd4c29bc..a9669c40ef 100644 --- a/src/openai/_models.py +++ b/src/openai/_models.py @@ -362,7 +362,7 @@ def model_dump_json( """ if round_trip != False: raise ValueError("round_trip is only supported in Pydantic v2") - if warnings != True: + if warnings == True: raise ValueError("warnings is only supported in Pydantic v2") if context is not None: raise ValueError("context is only supported in Pydantic v2")