mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
chat : fix kimi-k2 chat template (#14852)
This commit is contained in:
parent
cb4a63aad6
commit
820de57d4f
2 changed files with 9 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue