Skip to content

Commit bb0b97a

Browse files
committed
default multiline mode
1 parent 52b9b9b commit bb0b97a

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
@@ -248,8 +248,8 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) {
248248
params.antiprompt.push_back("### Instruction:\n\n");
249249
} else if (arg == "--color") {
250250
params.use_color = true;
251-
} else if (arg == "--multiline") {
252-
params.multiline_mode = true;
251+
} else if (arg == "--disable-multiline") {
252+
params.multiline_mode = false;
253253
} else if (arg == "--mlock") {
254254
params.use_mlock = true;
255255
} else if (arg == "--mtest") {
@@ -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
@@ -59,7 +59,7 @@ struct gpt_params {
5959
bool verbose_prompt = false; // print prompt tokens before generation
6060

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

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

0 commit comments

Comments
 (0)