@@ -992,7 +992,7 @@ static common_chat_params common_chat_params_init_mistral_nemo(const common_chat
992992
993993
994994// Case-insensitive find
995- size_t ifind_string (const std::string & haystack, const std::string & needle, size_t pos = 0 ) {
995+ static size_t ifind_string (const std::string & haystack, const std::string & needle, size_t pos = 0 ) {
996996 auto it = std::search (
997997 haystack.begin () + pos, haystack.end (),
998998 needle.begin (), needle.end (),
@@ -1033,7 +1033,7 @@ static common_chat_params common_chat_params_init_lfm2(const common_chat_templat
10331033 return false ;
10341034 };
10351035
1036- // Lfm2 model does not natively work with json, but can generally understand the tools structure
1036+ // Lfm2 model does not natively work with json, but can generally understand the tools structure
10371037 //
10381038 // Example of the pytorch dialog structure:
10391039 // <|startoftext|><|im_start|>system
@@ -1531,7 +1531,6 @@ static common_chat_params common_chat_params_init_apertus(const common_chat_temp
15311531 }
15321532 return data;
15331533}
1534-
15351534static void common_chat_parse_llama_3_1 (common_chat_msg_parser & builder, bool with_builtin_tools = false ) {
15361535 builder.try_parse_reasoning (" <think>" , " </think>" );
15371536
@@ -2873,7 +2872,6 @@ static common_chat_params common_chat_templates_apply_jinja(
28732872 }
28742873
28752874 if (!inputs.json_schema .empty ()) {
2876- LOG_INF (" %s: mm1 Using provided json schema\n " , __func__);
28772875 params.json_schema = json::parse (inputs.json_schema );
28782876 }
28792877
0 commit comments