chat : fix kimi-k2 chat template (#14852)

This commit is contained in:
Xuan-Son Nguyen 2025-07-24 13:59:56 +02:00 committed by GitHub
parent cb4a63aad6
commit 820de57d4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 10 deletions

View file

@ -718,10 +718,9 @@ int32_t llm_chat_apply_template(
}
ss << message->content << "<|im_end|>";
if (add_ass) {
ss << "<|im_assistant|>assistant<|im_middle|>";
}
}
if (add_ass) {
ss << "<|im_assistant|>assistant<|im_middle|>";
}
} else {
// template not supported