From 185689d041780ee11b980e88c60945592b18aaa7 Mon Sep 17 00:00:00 2001 From: ngxson Date: Thu, 27 Jun 2024 16:13:27 +0200 Subject: [PATCH] remove redundant code --- common/common.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index 84ea65afd..75ee15971 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -2644,10 +2644,6 @@ std::string llama_chat_apply_template(const struct llama_model * model, } } - if (fallback) { - res = llama_chat_apply_template(nullptr, "chatml", chat.data(), chat.size(), add_ass, buf.data(), buf.size()); - } - // if it turns out that our buffer is too small, we resize it if ((size_t) res > buf.size()) { buf.resize(res);