Skip to content

Commit e52c95c

Browse files
committed
Fix crash when tool call doesn't start with <tool_call>
1 parent 0563a5d commit e52c95c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

common/chat.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2571,7 +2571,6 @@ static common_chat_params common_chat_params_init_qwen3_coder_xml(const common_c
25712571
builder.add_rule("root", inputs.parallel_tool_calls ? "(" + tool_call + ")+" : tool_call);
25722572

25732573
data.grammar_triggers.push_back({COMMON_GRAMMAR_TRIGGER_TYPE_WORD, "<tool_call>"});
2574-
data.grammar_triggers.push_back({COMMON_GRAMMAR_TRIGGER_TYPE_WORD, "<function="});
25752574
});
25762575

25772576
data.preserved_tokens = {

0 commit comments

Comments
 (0)