Update examples/server/server.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Randall Fitzgerald 2023-05-23 07:34:41 -07:00 committed by GitHub
parent 421e66b330
commit add5f1bdc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ struct llama_server_context
processed_tokens.erase(processed_tokens.begin() + 1, processed_tokens.end());
}
if(embd_inp.size() != 0)
if(!embd_inp.empty())
{
embd_inp.erase(embd_inp.begin() + 1, embd_inp.end());
}