Skip to content

Commit 2b3c482

Browse files
author
Olivier Chafik
committed
fix build / rm diff
1 parent a76073c commit 2b3c482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/common.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,8 +1872,8 @@ std::string common_chat_format_example(const common_chat_template & tmpl, bool u
18721872
common_chat_templates common_chat_templates_from_model(const struct llama_model * model, const std::string & chat_template_override)
18731873
{
18741874
auto vocab = llama_model_get_vocab(model);
1875-
std::string default_template_src = chat_template_override == "chatml" ? CHATML_TEMPLATE_SRC : chat_template_override;
1876-
std::string template_tool_use_src = chat_template_override == "chatml" ? CHATML_TEMPLATE_SRC : "";
1875+
std::string default_template_src = chat_template_override;
1876+
std::string template_tool_use_src = chat_template_override;
18771877
bool has_explicit_template = !chat_template_override.empty();
18781878
if (chat_template_override.empty()) {
18791879
auto str = llama_model_chat_template(model, /* name */ nullptr);

0 commit comments

Comments
 (0)