Apply suggestions from code review
This commit is contained in:
parent
839cf4ccab
commit
8b0b64bb75
1 changed files with 2 additions and 2 deletions
|
@ -21716,9 +21716,9 @@ 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) {
|
||||
std::string role(message -> role);
|
||||
std::string role(message->role);
|
||||
ss << "<|start_of_role|>" << role << "<|end_of_role|>"
|
||||
<< message -> content << "<|end_of_text|>\n";
|
||||
<< message->content << "<|end_of_text|>\n";
|
||||
}
|
||||
if (add_ass) {
|
||||
ss << "<|start_of_role|>assistant<|end_of_role|>\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue