Skip to content

Commit d75acb9

Browse files
committed
add support for extra context in generic template init
1 parent 51d4473 commit d75acb9

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
@@ -829,7 +829,7 @@ static common_chat_params common_chat_params_init_generic(const common_chat_temp
829829
inputs.messages,
830830
"Respond in JSON format, either with `tool_call` (a request to call tools) or with `response` reply to the user's request");
831831

832-
data.prompt = apply(tmpl, tweaked_messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt);
832+
data.prompt = apply(tmpl, tweaked_messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt, inputs.extra_context);
833833
data.format = COMMON_CHAT_FORMAT_GENERIC;
834834
return data;
835835
}

0 commit comments

Comments
 (0)