File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ int main(int argc, char ** argv) {
298
298
}
299
299
300
300
bool is_antiprompt = false ;
301
- bool input_noecho = false ;
301
+ bool input_echo = true ;
302
302
303
303
// HACK - because session saving incurs a non-negligible delay, for now skip re-saving session
304
304
// if we loaded a session with at least 75% similarity. It's currently just used to speed up the
@@ -485,7 +485,7 @@ int main(int argc, char ** argv) {
485
485
embd.push_back (id);
486
486
487
487
// echo this to console
488
- input_noecho = false ;
488
+ input_echo = true ;
489
489
490
490
// decrement remaining sampling budget
491
491
--n_remain;
@@ -503,14 +503,14 @@ int main(int argc, char ** argv) {
503
503
}
504
504
505
505
// display text
506
- if (!input_noecho ) {
506
+ if (input_echo ) {
507
507
for (auto id : embd) {
508
508
printf (" %s" , llama_token_to_str (ctx, id));
509
509
}
510
510
fflush (stdout);
511
511
}
512
512
// reset color to default if we there is no pending user input
513
- if (!input_noecho && (int )embd_inp.size () == n_consumed) {
513
+ if (input_echo && (int )embd_inp.size () == n_consumed) {
514
514
set_console_color (con_st, CONSOLE_COLOR_DEFAULT);
515
515
}
516
516
@@ -605,7 +605,7 @@ int main(int argc, char ** argv) {
605
605
n_remain -= line_inp.size ();
606
606
}
607
607
608
- input_noecho = true ; // do not echo this again
608
+ input_echo = false ; // do not echo this again
609
609
}
610
610
611
611
if (n_past > 0 ) {
You can’t perform that action at this time.
0 commit comments