We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5b117f commit 0db9881Copy full SHA for 0db9881
common/chat.cpp
@@ -580,7 +580,7 @@ static common_chat_params common_chat_params_init_deepseek_r1(const common_chat_
580
// Distill Qwen 7B & 32B models seem confused re/ syntax of their tool call opening tag,
581
// so we accept common variants (then it's all constrained)
582
builder.add_rule("root",
583
- "( \"<|tool▁calls▁begin|>\" | \"<|tool_calls_begin|>\" | \"<|tool calls begin|>\" | \"<|tool\\\\_calls\\\\_begin|>\" ) "
+ "( \"<|tool▁calls▁begin|>\" | \"<|tool_calls_begin|>\" | \"<|tool calls begin|>\" | \"<|tool\\\\_calls\\\\_begin|>\" )? "
584
"(" +string_join(tool_rules, " | ") + ")" + (inputs.parallel_tool_calls ? "*" : "") + " "
585
"\"<|tool▁calls▁end|>\""
586
" space");
0 commit comments