Skip to content

Commit 155852a

Browse files
createthisCISC
andauthored
Update tests/test-chat-parser.cpp
Co-authored-by: Sigbjørn Skjæret <[email protected]>
1 parent 80a7e1c commit 155852a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-chat-parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ static void test_deepseek_v3_1_tool_calls() {
248248
/* .thinking_forced_open = */ true,
249249
/* .parse_tool_calls = */ true,
250250
};
251-
const char* variant = "fenced_thinking";
251+
const std::string variant("fenced_thinking");
252252
const std::string in = "REASONING</think><|tool▁calls▁begin|><|tool▁call▁begin|>function<|tool▁sep|>get_time\n```json\n{\"city\": \"Tokyo\"}\n```<|tool▁call▁end|><|tool▁calls▁end|>";
253253
auto m = common_chat_parse(in, false, syntax);
254254
assert_equals<std::size_t>(variant, 1, m.tool_calls.size());

0 commit comments

Comments
 (0)