Skip to content

Commit 3d2bf47

Browse files
committed
default multiline mode
1 parent c1be1ee commit 3d2bf47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/common.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) {
246246
params.antiprompt.push_back("### Instruction:\n\n");
247247
} else if (arg == "--color") {
248248
params.use_color = true;
249-
} else if (arg == "--multiline") {
250-
params.multiline_mode = true;
249+
} else if (arg == "--disable-multiline") {
250+
params.multiline_mode = false;
251251
} else if (arg == "--mlock") {
252252
params.use_mlock = true;
253253
} else if (arg == "--no-mmap") {
@@ -334,7 +334,7 @@ void gpt_print_usage(char * argv_0, const gpt_params & params) {
334334
fprintf(stderr, " run in interactive mode and poll user input upon seeing PROMPT (can be\n");
335335
fprintf(stderr, " specified more than once for multiple prompts).\n");
336336
fprintf(stderr, " --color colorise output to distinguish prompt and user input from generations\n");
337-
fprintf(stderr, " --multiline multiline mode (use Ctrl+D on Linux/Mac and Ctrl+Z then Return on Windows to toggle multiline)\n");
337+
fprintf(stderr, " --disable-multiline disable multiline mode (use Ctrl+D on Linux/Mac and Ctrl+Z then Return on Windows to toggle multiline)\n");
338338
fprintf(stderr, " -s SEED, --seed SEED RNG seed (default: -1, use random seed for <= 0)\n");
339339
fprintf(stderr, " -t N, --threads N number of threads to use during computation (default: %d)\n", params.n_threads);
340340
fprintf(stderr, " -p PROMPT, --prompt PROMPT\n");

examples/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct gpt_params {
6060
bool verbose_prompt = false; // print prompt tokens before generation
6161

6262
bool clean_interface = false; // hides input prefix & suffix and displays '>'
63-
bool multiline_mode = false; // enables multi-line mode, to send input press CTRL+D on Linux/Max, Ctrl+Z then Return on Windows
63+
bool multiline_mode = true; // enables multi-line mode, to send input press CTRL+D on Linux/Max, Ctrl+Z then Return on Windows
6464
};
6565

6666
bool gpt_params_parse(int argc, char ** argv, gpt_params & params);

0 commit comments

Comments
 (0)