Skip to content

Commit ac6ed1e

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

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
@@ -288,7 +288,7 @@ static void test_deepseek_v3_1_tool_calls() {
288288
/* .thinking_forced_open = */ true,
289289
/* .parse_tool_calls = */ true,
290290
};
291-
const char* variant = "thinking_forced_open_tool_call_in_reasoning_fenced_thinking";
291+
const std::string variant("thinking_forced_open_tool_call_in_reasoning_fenced_thinking");
292292
const std::string in = "REASONING<|tool▁calls▁begin|><|tool▁call▁begin|>get_time2<|tool▁sep|>{\"city\": \"Tokyo2\"}<|tool▁call▁end|><|tool▁calls▁end|>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|>";
293293
auto m = common_chat_parse(in, false, syntax);
294294
assert_equals<std::size_t>(variant, 1, m.tool_calls.size());

0 commit comments

Comments
 (0)