Skip to content

Commit 2ec283a

Browse files
authored
add warning
1 parent bfdfd4d commit 2ec283a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/main/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ int main(int argc, char ** argv) {
219219
// print chat template example in conversation mode
220220
if (params.conversation_mode) {
221221
if (params.enable_chat_template) {
222+
if (!params.prompt.empty()) {
223+
LOG_WRN("*** User-specified prompt in conversation mode will be ignored, did you mean to set --system-prompt (-sys) instead?\n");
224+
}
225+
222226
LOG_INF("%s: chat template example:\n%s\n", __func__, common_chat_format_example(chat_templates.get(), params.use_jinja).c_str());
223227
} else {
224228
LOG_INF("%s: in-suffix/prefix is specified, chat template will be disabled\n", __func__);

0 commit comments

Comments
 (0)