@@ -465,18 +465,18 @@ static void test_template_output_parsers() {
465465 " ]\n "
466466 " }" );
467467 }
468- // {
469- // const common_chat_template tmpl(read_file("models/templates/mistralai-Mistral-Nemo-Instruct-2407.jinja"), "<s>",
470- // "</s>");
471- // std::vector<std::string> end_tokens{ "</s>" };
472-
473- // assert_equals(COMMON_CHAT_FORMAT_MISTRAL_NEMO, common_chat_params_init(tmpl, inputs_tools).format);
474-
475- // test_template(tmpl, end_tokens, text_message, tools, "Hello, world!", /* expect_grammar_triggered= */ false);
476- // test_template(
477- // tmpl, end_tokens, tool_call_message_with_id, tools,
478- // "[TOOL_CALLS][{\"name\": \"special_function\", \"arguments\": {\"arg1\": 1}, \"id\": \"123456789\"}]");
479- // }
468+ {
469+ const common_chat_template tmpl (read_file (" models/templates/mistralai-Mistral-Nemo-Instruct-2407.jinja" ), " <s>" ,
470+ " </s>" );
471+ std::vector<std::string> end_tokens{ " </s>" };
472+
473+ assert_equals (COMMON_CHAT_FORMAT_MISTRAL_NEMO, common_chat_params_init (tmpl, inputs_tools).format );
474+
475+ test_template (tmpl, end_tokens, text_message, tools, " Hello, world!" , /* expect_grammar_triggered= */ false );
476+ test_template (
477+ tmpl, end_tokens, tool_call_message_with_id, tools,
478+ " [TOOL_CALLS][{\" name\" : \" special_function\" , \" arguments\" : {\" arg1\" : 1}, \" id\" : \" 123456789\" }]" );
479+ }
480480 {
481481 const common_chat_template tmpl (
482482 read_file (" models/templates/NousResearch-Hermes-2-Pro-Llama-3-8B-tool_use.jinja" ), " <s>" , " </s>" );
0 commit comments