[Bugfix][Frontend] Enforce parallel_tool_calls=false in the required-tool grammar (#50502)
Signed-off-by: ostring <ostring@qq.com> Signed-off-by: sfeng33 <4florafeng@gmail.com> Co-authored-by: Flora Feng <4florafeng@gmail.com>
This commit is contained in:
@@ -141,7 +141,9 @@ class ToolParser:
|
||||
return request
|
||||
|
||||
json_schema_from_tool = get_json_schema_from_tools(
|
||||
tool_choice=request.tool_choice, tools=request.tools
|
||||
tool_choice=request.tool_choice,
|
||||
tools=request.tools,
|
||||
parallel_tool_calls=request.parallel_tool_calls,
|
||||
)
|
||||
# Set structured output params for tool calling
|
||||
if json_schema_from_tool is not None:
|
||||
|
||||
Reference in New Issue
Block a user