save-load-state : remove a redundant c_str() call (clang-tidy)
This is recommended by the 'readability-redundant-string-cstr' check.
This commit is contained in:
parent
6a9d1bd023
commit
4c703231cf
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ int main(int argc, char ** argv) {
|
|||
llama_free_model(model);
|
||||
return 1;
|
||||
}
|
||||
auto tokens = llama_tokenize(ctx, params.prompt.c_str(), true);
|
||||
auto tokens = llama_tokenize(ctx, params.prompt, true);
|
||||
auto n_prompt_tokens = tokens.size();
|
||||
if (n_prompt_tokens < 1) {
|
||||
fprintf(stderr, "%s : failed to tokenize prompt\n", __func__);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue