fix root
This commit is contained in:
parent
75764871e6
commit
fa8462ffd3
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ llama_tool_call_handler llama_tool_call_handler_init(
|
|||
}
|
||||
}
|
||||
auto tool_call = builder.add_rule("tool_call", join(tool_rules.begin(), tool_rules.end(), " | ")) + " space";
|
||||
builder.add_rule("root", parallel_tool_calls ? "(" + tool_call + ")+" : tool_call);
|
||||
builder.add_rule("", parallel_tool_calls ? "(" + tool_call + ")+" : tool_call);
|
||||
if (allow_content) {
|
||||
handler.grammar_trigger_words.push_back("<function=");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue