Skip to content

Commit 77c60e6

Browse files
author
ochafik
committed
Avoid passing tools twice in generic handler (now that minja passes them automatically when needed)
1 parent a810c37 commit 77c60e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/chat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ static common_chat_params common_chat_params_init_generic_tool_call(const common
249249

250250
auto tweaked_messages = common_chat_template::add_system(
251251
inputs.messages,
252-
"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```");
252+
"Respond in JSON format, either with `tool_call` (a request to call tools) or with `response` reply to the user's request");
253253

254254
data.prompt = tmpl.apply(tweaked_messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt);
255255
data.format = "generic tool calls";

0 commit comments

Comments
 (0)