Apply clang suggestions.
This commit is contained in:
parent
de5bf5bf68
commit
2d79928982
1 changed files with 1 additions and 1 deletions
|
@ -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, ' ');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue