From 5ab31824b9e52d2f56e0f5e8b0b5da9a2a3def40 Mon Sep 17 00:00:00 2001 From: ngxson Date: Fri, 28 Jun 2024 09:12:45 +0200 Subject: [PATCH] correct code from master branch --- src/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama.cpp b/src/llama.cpp index 70ec46465..3edaa98e8 100644 --- a/src/llama.cpp +++ b/src/llama.cpp @@ -19685,7 +19685,7 @@ static int32_t llama_chat_apply_template_internal( if (add_ass) { ss << "assistant\n"; } - } else if (tmpl == "gemma" || tmpl == "gemma2" || tmpl.find("") != std::string::npos) { + } else if (tmpl == "gemma" || tmpl == "gemma2" || tmpl_contains("")) { // google/gemma-7b-it std::string system_prompt = ""; for (auto message : chat) {