Skip to content

Commit 80a7e1c

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

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
@@ -229,7 +229,7 @@ static void test_deepseek_v3_1_tool_calls() {
229229

230230
// variant: function + fenced JSON
231231
{
232-
const char* variant = "fenced";
232+
const std::string variant("fenced");
233233
const std::string in = "<|tool▁calls▁begin|><|tool▁call▁begin|>function<|tool▁sep|>get_time\n```json\n{\"city\": \"Tokyo\"}\n```<|tool▁call▁end|><|tool▁calls▁end|>";
234234
auto m = common_chat_parse(in, false, syntax);
235235
assert_equals<std::size_t>(variant, 1, m.tool_calls.size());

0 commit comments

Comments
 (0)