Removed unnecessary last_prompt_token set
Added the one that was supposed to be there. Apologies for the extra commits, I'm copy pasting from my editor to preserve the two-space indent formatting.
This commit is contained in:
parent
36c86d794d
commit
d20f36b93c
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,6 @@ struct llama_server_context
|
||||||
embd_inp = last_prompt_tokens;
|
embd_inp = last_prompt_tokens;
|
||||||
n_past = processed_tokens.size();
|
n_past = processed_tokens.size();
|
||||||
n_consumed = last_prompt_tokens.size() - 2;
|
n_consumed = last_prompt_tokens.size() - 2;
|
||||||
last_prompt_tokens = prompt_tokens;
|
|
||||||
has_next_token = true;
|
has_next_token = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -111,6 +110,7 @@ struct llama_server_context
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
last_prompt_tokens = prompt_tokens;
|
||||||
has_next_token = true;
|
has_next_token = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue