mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-10 05:20:39 +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,
|
parallel_tool_calls=False,
|
||||||
strict=strict,
|
strict=strict,
|
||||||
ls_structured_output_format={
|
ls_structured_output_format={
|
||||||
"kwargs": {"method": method},
|
"kwargs": {"method": method, "strict": strict},
|
||||||
"schema": schema,
|
"schema": schema,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@ -1604,7 +1604,7 @@ class BaseChatOpenAI(BaseChatModel):
|
|||||||
llm = self.bind(
|
llm = self.bind(
|
||||||
response_format=response_format,
|
response_format=response_format,
|
||||||
ls_structured_output_format={
|
ls_structured_output_format={
|
||||||
"kwargs": {"method": method},
|
"kwargs": {"method": method, "strict": strict},
|
||||||
"schema": convert_to_openai_tool(schema),
|
"schema": convert_to_openai_tool(schema),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user