From 94944cc9bbea4157b752a4003c6c50cad9dae4b7 Mon Sep 17 00:00:00 2001 From: juk Date: Fri, 29 Nov 2024 01:13:28 +0000 Subject: [PATCH] Invalid `system_message` instead of `content` fixed --- src/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama.cpp b/src/llama.cpp index 863a915d7..585bd69ef 100644 --- a/src/llama.cpp +++ b/src/llama.cpp @@ -21876,7 +21876,7 @@ static int32_t llama_chat_apply_template_internal( std::string role(message->role); std::string content = trim(message->content); if (role == "system") { - ss << system_message << "\n\n"; + ss << content << "\n\n"; } else if (role == "user") { ss << content << leading_space << "[/INST]"; } else {