chat : accept </ifm|think> as K2 Horizon closer at medium/low effort (#30335)

This commit is contained in:
Awss authored and GitHub committed 2026-11-13 00:11:58 +01:00
1 parent 0a66ac7189
commit 5676dfbe01
2 files changed
+24

No files matched your search

+19
View File
@@ -5206,6 +5206,25 @@ static void test_template_output_peg_parsers(bool detailed_debug) {
.expect_reconstruction()
.run();
tst.test("I'm\nthinking</ifm|think>Hello, world!\nWhat's up?")
.reasoning_format(COMMON_REASONING_FORMAT_AUTO)
.chat_template_kwargs({ { "reasoning_effort", R"("low")" } })
.expect(message_assist_thoughts)
.run();
tst.test(
"I'm\nthinking</ifm|think><ifm|tool_calls>\n"
"<ifm|tool_call>special_function\n"
"<ifm|arg_key>arg1</ifm|arg_key>\n"
"<ifm|arg_value>1</ifm|arg_value>\n"
"</ifm|tool_call>\n"
"</ifm|tool_calls>")
.reasoning_format(COMMON_REASONING_FORMAT_AUTO)
.tools({ special_function_tool })
.chat_template_kwargs({ { "reasoning_effort", R"("medium")" } })
.expect(message_assist_call_thoughts)
.run();
tst.test(
"I'm\nthinking</ifm|think><ifm|tool_calls>\n"
"<ifm|tool_call>{\"name\": \"special_function\", \"arguments\": {\"arg1\": 1}}</ifm|tool_call>\n"