Apply clang suggestions.

This commit is contained in:
KerfuffleV2 2023-05-21 05:38:01 -06:00
parent de5bf5bf68
commit 2d79928982

View file

@ -166,7 +166,7 @@ int main(int argc, char ** argv) {
// tokenize the prompt // tokenize the prompt
std::vector<llama_token> embd_inp; std::vector<llama_token> embd_inp;
if (params.prompt.size() > 0 || session_tokens.size() == 0) { if (!params.prompt.empty() || session_tokens.empty()) {
// Add a space in front of the first character to match OG llama tokenizer behavior // Add a space in front of the first character to match OG llama tokenizer behavior
params.prompt.insert(0, 1, ' '); params.prompt.insert(0, 1, ' ');