tools_json_arr now properly passed to apply-template

This commit is contained in:
Mason M 2025-01-31 17:57:00 -04:00
parent 183029d88f
commit 4ad82587ee

View file

@ -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();