We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1b12b8 commit f354ff9Copy full SHA for f354ff9
examples/main/main.cpp
@@ -346,11 +346,8 @@ int main(int argc, char ** argv) {
346
347
if (params.conversation_mode && params.enable_chat_template) {
348
// format the system prompt in conversation mode (will use template default if empty)
349
- prompt = params.system_prompt;
+ prompt = chat_add_and_format("system", params.system_prompt, true);
350
351
- if (!prompt.empty()) {
352
- prompt = chat_add_and_format("system", prompt, true);
353
- }
354
} else {
355
// otherwise use the prompt as is
356
prompt = params.prompt;
0 commit comments