[docs]: split up tool docs (#22919)

This commit is contained in:
Isaac Francisco
2024-06-25 13:15:08 -07:00
committed by GitHub
parent f788d0982d
commit 85f5d14cef
25 changed files with 923 additions and 547 deletions

View File

@@ -1136,7 +1136,7 @@ class BaseChatOpenAI(BaseChatModel):
"schema must be specified when method is 'function_calling'. "
"Received None."
)
llm = self.bind_tools([schema], tool_choice="any")
llm = self.bind_tools([schema], tool_choice=True, parallel_tool_calls=False)
if is_pydantic_schema:
output_parser: OutputParserLike = PydanticToolsParser(
tools=[schema], first_tool_only=True