openai[patch]: trace strict in structured_output_kwargs (#30425)

This commit is contained in:
ccurme 2025-03-21 14:37:28 -04:00 committed by GitHub
parent 428de88398
commit b78ae7817e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1566,7 +1566,7 @@ class BaseChatOpenAI(BaseChatModel):
parallel_tool_calls=False,
strict=strict,
ls_structured_output_format={
"kwargs": {"method": method},
"kwargs": {"method": method, "strict": strict},
"schema": schema,
},
)
@ -1604,7 +1604,7 @@ class BaseChatOpenAI(BaseChatModel):
llm = self.bind(
response_format=response_format,
ls_structured_output_format={
"kwargs": {"method": method},
"kwargs": {"method": method, "strict": strict},
"schema": convert_to_openai_tool(schema),
},
)