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 GitHub
parent 3d0e4367d9
commit f299aa98ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);