Skip to content

Commit c72e399

Browse files
committed
[feat] add chat template
1 parent a6b3ca8 commit c72e399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-chat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ llm_chat_template llm_chat_detect_template(const std::string & tmpl) {
189189
return LLM_CHAT_TEMPLATE_MEGREZ;
190190
} else if (tmpl_contains(" Ассистент:")) {
191191
return LLM_CHAT_TEMPLATE_YANDEX;
192-
} else if (tmpl_contains("<role>ASSISTANT</role>") && tmpl_contains("'HUMAN'")) {
192+
} else if (tmpl_contains("<role>ASSISTANT</role>") && tmpl_contains("HUMAN")) {
193193
return LLM_CHAT_TEMPLATE_BAILING;
194194
} else if (tmpl_contains("<|header_start|>") && tmpl_contains("<|header_end|>")) {
195195
return LLM_CHAT_TEMPLATE_LLAMA4;

0 commit comments

Comments
 (0)