diff --git a/tests/test-chat-parser.cpp b/tests/test-chat-parser.cpp index a81761f321..5098bd6779 100644 --- a/tests/test-chat-parser.cpp +++ b/tests/test-chat-parser.cpp @@ -152,32 +152,6 @@ static void test_regex() { } } -static void test_deepseek_v3_1() { - // Test DeepSeek V3.1 parsing - reasoning content followed by "" and then regular content - { - common_chat_syntax syntax = { - /* .format = */ COMMON_CHAT_FORMAT_DEEPSEEK_V3_1, - /* .reasoning_format = */ COMMON_REASONING_FORMAT_DEEPSEEK, - /* .reasoning_in_content = */ false, - /* .thinking_forced_open = */ false, - /* .parse_tool_calls = */ true, - }; - common_chat_msg_parser builder("REASONING\nok -static void test_deepseek_v3_1() { - // Test DeepSeek V3.1 parsing - reasoning content followed by "" and then regular content - { - common_chat_syntax syntax = { - /* .format = */ COMMON_CHAT_FORMAT_DEEPSEEK_V3_1, - /* .reasoning_format = */ COMMON_REASONING_FORMAT_DEEPSEEK, - /* .reasoning_in_content = */ false, - /* .thinking_forced_open = */ false, - /* .parse_tool_calls = */ true, - }; - common_chat_msg_parser builder("REASONING\nok -static void test_deepseek_v3_1() { - // Test DeepSeek V3.1 parsing - reasoning content followed by "" and then regular content - { - common_chat_msg_parser builder("REASONING\nok const std::vector barely_healable_jsons = { "{", "{\"", @@ -212,6 +186,21 @@ static void test(const std::string & input, bool is_partial, const std::vectoris_partial); assert_equals(expected, args_paths.size() == 1 && args_paths[0].empty() ? js->value.get() : js->value.dump()); } + +static void test_deepseek_v3_1() { + // Test DeepSeek V3.1 parsing - reasoning content followed by "" and then regular content + { + common_chat_syntax syntax = { + /* .format = */ COMMON_CHAT_FORMAT_DEEPSEEK_V3_1, + /* .reasoning_format = */ COMMON_REASONING_FORMAT_DEEPSEEK, + /* .reasoning_in_content = */ false, + /* .thinking_forced_open = */ false, + /* .parse_tool_calls = */ true, + }; + common_chat_msg_parser builder("REASONINGok", /* is_partial= */ false, {}); + } +} + static void test_with_args(const std::string & input, const std::string & expected, bool parse_as_partial = true, bool is_partial = true) { common_chat_msg_parser builder(input, parse_as_partial, {}); auto js = builder.try_consume_json_with_dumped_args({{"args"}}, {});