Skip to content

Commit 8b0b64b

Browse files
authored
Apply suggestions from code review
1 parent 839cf4c commit 8b0b64b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/llama.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21716,9 +21716,9 @@ static int32_t llama_chat_apply_template_internal(
2171621716
} else if (tmpl == "granite" || tmpl_contains("<|start_of_role|>")) {
2171721717
// IBM Granite template
2171821718
for (const auto & message: chat) {
21719-
std::string role(message -> role);
21719+
std::string role(message->role);
2172021720
ss << "<|start_of_role|>" << role << "<|end_of_role|>"
21721-
<< message -> content << "<|end_of_text|>\n";
21721+
<< message->content << "<|end_of_text|>\n";
2172221722
}
2172321723
if (add_ass) {
2172421724
ss << "<|start_of_role|>assistant<|end_of_role|>\n";

0 commit comments

Comments
 (0)