From 24874e7323905f718fd5df24a7065d8aaa8eabfe Mon Sep 17 00:00:00 2001 From: Wouter <9594229+DifferentialityDevelopment@users.noreply.github.com> Date: Fri, 19 Apr 2024 00:27:03 +0200 Subject: [PATCH] Update llama.cpp Co-authored-by: Samuel Tallet <36248671+SamuelTallet@users.noreply.github.com> --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index c2b8d1ecf..7d978edf6 100644 --- a/llama.cpp +++ b/llama.cpp @@ -17025,7 +17025,7 @@ static int32_t llama_chat_apply_template_internal( ss << "<|begin_of_text|>"; first_message = false; } - ss << "<|start_header_id|>" << message->role << "<|end_header_id|>\n\n" << trim(message->content) << "<|eot_id|>"; + ss << "<|start_header_id|>" << role << "<|end_header_id|>\n\n" << trim(message->content) << "<|eot_id|>"; } if (add_ass) { ss << "<|start_header_id|>assistant<|end_header_id|>\n\n";