From 77c60e662e28333816e3264c03d8589fd51787b6 Mon Sep 17 00:00:00 2001 From: ochafik Date: Thu, 30 Jan 2025 00:09:56 +0000 Subject: [PATCH] Avoid passing tools twice in generic handler (now that minja passes them automatically when needed) --- common/chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/chat.cpp b/common/chat.cpp index 2ed89459c..95481e8c8 100644 --- a/common/chat.cpp +++ b/common/chat.cpp @@ -249,7 +249,7 @@ static common_chat_params common_chat_params_init_generic_tool_call(const common auto tweaked_messages = common_chat_template::add_system( inputs.messages, - "Respond in JSON format, either with a request to call tools or with a response to the user's request. Here is the schema for all responses:\n\n```json\n" + schema.dump(2) + "\n```"); + "Respond in JSON format, either with `tool_call` (a request to call tools) or with `response` reply to the user's request"); data.prompt = tmpl.apply(tweaked_messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt); data.format = "generic tool calls";