fix: typo of chatglm4 chat tmpl (#8586)

Signed-off-by: thxCode <thxcode0824@gmail.com>
This commit is contained in:
Frank Mai 2024-07-19 17:44:41 +08:00 committed by arthw
parent fa91d869cf
commit e5cf8b43ec

View file

@ -21607,7 +21607,7 @@ static int32_t llama_chat_apply_template_internal(
if (add_ass) {
ss << "<|assistant|>";
}
} else if (tmpl == "chaglm4" || tmpl_contains("[gMASK]<sop>")) {
} else if (tmpl == "chatglm4" || tmpl_contains("[gMASK]<sop>")) {
ss << "[gMASK]" << "<sop>";
for (auto message : chat) {
std::string role(message->role);