We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce652b7 commit f07993fCopy full SHA for f07993f
examples/main/main.cpp
@@ -166,7 +166,7 @@ int main(int argc, char ** argv) {
166
// tokenize the prompt
167
std::vector<llama_token> embd_inp;
168
169
- if (params.prompt.size() > 0 || session_tokens.size() == 0) {
+ if (!params.prompt.empty() || session_tokens.empty()) {
170
// Add a space in front of the first character to match OG llama tokenizer behavior
171
params.prompt.insert(0, 1, ' ');
172
0 commit comments