File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ int main(int argc, char ** argv) {
250
250
}
251
251
252
252
bool is_antiprompt = false ;
253
- bool input_noecho = false ;
253
+ bool input_echo = true ;
254
254
255
255
int n_past = 0 ;
256
256
int n_remain = params.n_predict ;
@@ -340,7 +340,7 @@ int main(int argc, char ** argv) {
340
340
embd.push_back (id);
341
341
342
342
// echo this to console
343
- input_noecho = false ;
343
+ input_echo = true ;
344
344
345
345
// decrement remaining sampling budget
346
346
--n_remain;
@@ -358,14 +358,14 @@ int main(int argc, char ** argv) {
358
358
}
359
359
360
360
// display text
361
- if (!input_noecho ) {
361
+ if (input_echo ) {
362
362
for (auto id : embd) {
363
363
printf (" %s" , llama_token_to_str (ctx, id));
364
364
}
365
365
fflush (stdout);
366
366
}
367
367
// reset color to default if we there is no pending user input
368
- if (!input_noecho && (int )embd_inp.size () == n_consumed) {
368
+ if (input_echo && (int )embd_inp.size () == n_consumed) {
369
369
set_console_color (con_st, CONSOLE_COLOR_DEFAULT);
370
370
}
371
371
@@ -460,7 +460,7 @@ int main(int argc, char ** argv) {
460
460
n_remain -= line_inp.size ();
461
461
}
462
462
463
- input_noecho = true ; // do not echo this again
463
+ input_echo = false ; // do not echo this again
464
464
}
465
465
466
466
if (n_past > 0 ) {
You can’t perform that action at this time.
0 commit comments