mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-07 12:06:43 +00:00
openai[patch]: trace strict in structured_output_kwargs (#30425)
This commit is contained in:
parent
428de88398
commit
b78ae7817e
@ -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),
|
||||
},
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user