Fixed failing to return result on stopping token.
This commit is contained in:
parent
6c58f64a3b
commit
33b6957177
1 changed files with 1 additions and 0 deletions
|
@ -236,6 +236,7 @@ struct llama_server_context
|
||||||
if (!embd.empty() && embd.back() == llama_token_eos()) {
|
if (!embd.empty() && embd.back() == llama_token_eos()) {
|
||||||
stopping_word = llama_token_to_str(ctx, embd.back());
|
stopping_word = llama_token_to_str(ctx, embd.back());
|
||||||
has_next_token = false;
|
has_next_token = false;
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
has_next_token = n_remain != 0;
|
has_next_token = n_remain != 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue