Apply 01-cache.diff
This commit is contained in:
parent
58d95cc9bd
commit
0a0e9f3e0f
1 changed files with 3 additions and 1 deletions
4
llm/ext_server/server.cpp
vendored
4
llm/ext_server/server.cpp
vendored
|
@ -1007,13 +1007,15 @@ struct llama_server_context
|
|||
slot.n_sent_text += result.text_to_send.size();
|
||||
// add the token to slot queue and cache
|
||||
}
|
||||
slot.add_token_string(result);
|
||||
|
||||
if (slot.params.stream)
|
||||
{
|
||||
send_partial_response(slot, result);
|
||||
}
|
||||
}
|
||||
|
||||
slot.add_token_string(result);
|
||||
|
||||
if (incomplete)
|
||||
{
|
||||
slot.has_next_token = true;
|
||||
|
|
Loading…
Reference in a new issue