fix the error of no ending
This commit is contained in:
parent
991002b28e
commit
530eb57fe4
1 changed files with 7 additions and 5 deletions
|
@ -455,12 +455,14 @@ public:
|
|||
{
|
||||
has_next_token = false;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if (params.interactive && n_remain <= 0 && params.n_predict != -1)
|
||||
{
|
||||
n_remain = params.n_predict;
|
||||
}
|
||||
has_next_token = n_remain != 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue