From 4ad82587eeccd72206845589c2056993f8b8ad51 Mon Sep 17 00:00:00 2001 From: Mason M Date: Fri, 31 Jan 2025 17:57:00 -0400 Subject: [PATCH] tools_json_arr now properly passed to apply-template --- common/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common.cpp b/common/common.cpp index de4a52905..e546f78c2 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1871,7 +1871,7 @@ std::string common_chat_format_single( }; // format chat with new_msg chat_new.push_back(new_msg); - auto fmt_new_msg = common_chat_apply_template(tmpl, chat_new, add_ass, use_jinja); + auto fmt_new_msg = common_chat_apply_template(tmpl, chat_new, add_ass, use_jinja, tools_json_arr); // get the diff part ss << fmt_new_msg.substr(fmt_past_msg.size(), fmt_new_msg.size() - fmt_past_msg.size()); return ss.str();