chat : fix yandex chat template (#15116)

This commit is contained in:
Sigbjørn Skjæret
2025-08-06 13:26:49 +02:00
committed by GitHub
parent 25726898e8
commit 65c797c4fa
2 changed files with 2 additions and 4 deletions

View File

@@ -625,8 +625,6 @@ int32_t llm_chat_apply_template(
} else if (tmpl == LLM_CHAT_TEMPLATE_YANDEX) {
// Yandex template ("\n\n" is defined as EOT token)
ss << "<s>";
for (size_t i = 0; i < chat.size(); i++) {
std::string role(chat[i]->role);
if (role == "user") {