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 {