Update src/llama.cpp

This commit is contained in:
Xuan Son Nguyen 2024-10-28 16:10:25 +01:00 committed by GitHub
parent 8b0b64bb75
commit 337338813b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21715,7 +21715,7 @@ static int32_t llama_chat_apply_template_internal(
}
} else if (tmpl == "granite" || tmpl_contains("<|start_of_role|>")) {
// IBM Granite template
for (const auto & message: chat) {
for (const auto & message : chat) {
std::string role(message->role);
ss << "<|start_of_role|>" << role << "<|end_of_role|>"
<< message->content << "<|end_of_text|>\n";