diff --git a/examples/main/main.cpp b/examples/main/main.cpp index b112bfd6f..1e2e98b64 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -264,9 +264,9 @@ int main(int argc, char ** argv) { std::vector embd_inp; auto chat_add_and_format = [&chat_msgs, &chat_templates](const std::string & role, const std::string & content) { - common_chat_msg new_msg{role, content}; + common_chat_msg new_msg{role, content, {}}; auto formatted = common_chat_format_single(*chat_templates.template_default, chat_msgs, new_msg, role == "user", g_params->use_jinja); - chat_msgs.push_back({role, content}); + chat_msgs.push_back({role, content, {}}); LOG_DBG("formatted: '%s'\n", formatted.c_str()); return formatted; };