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:
Randall Fitzgerald 2023-05-27 16:46:05 -07:00 committed by GitHub
parent 36c86d794d
commit d20f36b93c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,6 @@ struct llama_server_context
embd_inp = last_prompt_tokens;
n_past = processed_tokens.size();
n_consumed = last_prompt_tokens.size() - 2;
last_prompt_tokens = prompt_tokens;
has_next_token = true;
return true;
}
@ -111,6 +110,7 @@ struct llama_server_context
{
return false;
}
last_prompt_tokens = prompt_tokens;
has_next_token = true;
return true;
}