tools_json_arr now properly passed to apply-template
This commit is contained in:
parent
183029d88f
commit
4ad82587ee
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue