pass std::string_view by value

This commit is contained in:
Daniel Bevenius 2026-02-13 15:59:54 +01:00
parent d9a6e49844
commit 43f301fa73
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -1804,7 +1804,7 @@ bool common_prompt_batch_decode(
const std::vector<llama_token> & tokens,
int & n_past,
int n_batch,
const std::string_view & state_path,
std::string_view state_path,
bool save_state) {
const int n_eval = tokens.size();
if (n_eval == 0) {

View File

@ -789,7 +789,7 @@ bool common_prompt_batch_decode(
const std::vector<llama_token> & embd,
int & n_past,
int n_batch,
const std::string_view & state_path,
std::string_view state_path,
bool save_state);
// replays the last token after loading state to regenerate logits