Skip to content

Commit 02913b0

Browse files
author
ochafik
committed
fix msg diff test
1 parent 2412b5d commit 02913b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common/chat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,8 +1469,8 @@ static void common_chat_parse_hermes_2_pro(common_chat_msg_parser & builder) {
14691469
static const common_regex open_regex(
14701470
"(?:"
14711471
"(```(?:xml|json)?\\n\\s*)?" // match 1 (block_start)
1472-
"(" // match 2 (open_tag)
1473-
"<tool_call>"
1472+
"(" // match 2 (open_tag)
1473+
"<tool_call>"
14741474
"|<function_call>"
14751475
"|<tool>"
14761476
"|<tools>"

tests/test-chat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ static void test_msg_diffs_compute() {
13961396
common_chat_msg_diff diff12;
13971397
diff12.tool_call_index = 0;
13981398
diff12.tool_call_delta.name = "special_function";
1399-
diff12.tool_call_delta.id = "123";
1399+
// Note: id doesnt change here.
14001400
diff12.tool_call_delta.arguments = "g1\": 1}";
14011401

14021402
assert_equals(

0 commit comments

Comments
 (0)