From 2b3c4829a3905500114a1f997d1e00b14b3d4dd7 Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Mon, 3 Feb 2025 16:34:43 +0000 Subject: [PATCH] fix build / rm diff --- common/common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index cb96be7c5..6c81d18f9 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1872,8 +1872,8 @@ std::string common_chat_format_example(const common_chat_template & tmpl, bool u common_chat_templates common_chat_templates_from_model(const struct llama_model * model, const std::string & chat_template_override) { auto vocab = llama_model_get_vocab(model); - std::string default_template_src = chat_template_override == "chatml" ? CHATML_TEMPLATE_SRC : chat_template_override; - std::string template_tool_use_src = chat_template_override == "chatml" ? CHATML_TEMPLATE_SRC : ""; + std::string default_template_src = chat_template_override; + std::string template_tool_use_src = chat_template_override; bool has_explicit_template = !chat_template_override.empty(); if (chat_template_override.empty()) { auto str = llama_model_chat_template(model, /* name */ nullptr);