Skip to content

Commit ac6de5a

Browse files
authored
use user defined system prompt
1 parent bcaf91e commit ac6de5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/main/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ int main(int argc, char ** argv) {
276276
{
277277
auto prompt = (params.conversation_mode && params.enable_chat_template)
278278
// format the system prompt in conversation mode (fallback to default if empty)
279-
? chat_add_and_format("system", params.prompt.empty() ? DEFAULT_SYSTEM_MESSAGE : params.prompt)
279+
? chat_add_and_format("system", params.system_prompt.empty() ? DEFAULT_SYSTEM_MESSAGE : params.system_prompt)
280280
// otherwise use the prompt as is
281281
: params.prompt;
282282
if (params.interactive_first || !params.prompt.empty() || session_tokens.empty()) {

0 commit comments

Comments
 (0)