Skip to content

Commit 949dfba

Browse files
matteoservamatteo
authored and
matteo
committed
add support for extra context in generic template init
1 parent a07dfd3 commit 949dfba

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

754-
data.prompt = apply(tmpl, tweaked_messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt);
754+
data.prompt = apply(tmpl, tweaked_messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt, inputs.extra_context);
755755
data.format = COMMON_CHAT_FORMAT_GENERIC;
756756
return data;
757757
}

0 commit comments

Comments
 (0)