tool-call
: fix previous commit's parallel arg
This commit is contained in:
parent
3e12b9b38e
commit
2b49440011
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ static json oaicompat_completion_params_parse(
|
||||||
if (use_jinja) {
|
if (use_jinja) {
|
||||||
bool allow_content = tool_choice != "required";
|
bool allow_content = tool_choice != "required";
|
||||||
if (tool_choice != "none" && has_tools) {
|
if (tool_choice != "none" && has_tools) {
|
||||||
bool parallel_tool_calls = json_value(body, "parallel_tool_calls", false);
|
auto parallel_tool_calls = body.contains("parallel_tool_calls") ? body.at("parallel_tool_calls") : json();
|
||||||
llama_params["parse_tool_calls"] = true;
|
llama_params["parse_tool_calls"] = true;
|
||||||
llama_params["parallel_tool_calls"] = parallel_tool_calls;
|
llama_params["parallel_tool_calls"] = parallel_tool_calls;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue