Skip to content

Commit 11f3dbd

Browse files
committed
Fix merge oopsie
1 parent f43719f commit 11f3dbd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

common/chat.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,6 +2226,11 @@ static common_chat_params common_chat_params_init_qwen3_coder_xml(const common_c
22262226
}
22272227

22282228
static void common_chat_parse_qwen3_coder_xml(common_chat_msg_parser & builder) {
2229+
if (!builder.syntax().parse_tool_calls) {
2230+
builder.add_content(builder.consume_rest());
2231+
return;
2232+
}
2233+
22292234
std::string content = builder.consume_rest();
22302235

22312236
// Try to parse Qwen3-Coder XML format

0 commit comments

Comments
 (0)