mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-29 12:35:16 +00:00
Fix copy elision warning
This commit is contained in:
@ -1857,10 +1857,10 @@ llama_chat_templates llama_chat_templates_from_model(const struct llama_model *
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
has_explicit_template,
|
has_explicit_template,
|
||||||
std::move(std::make_unique<minja::chat_template>(default_template_src, bos_token, eos_token)),
|
std::make_unique<minja::chat_template>(default_template_src, bos_token, eos_token),
|
||||||
tool_use_template_src.empty()
|
tool_use_template_src.empty()
|
||||||
? nullptr
|
? nullptr
|
||||||
: std::move(std::make_unique<minja::chat_template>(tool_use_template_src, bos_token, eos_token))
|
: std::make_unique<minja::chat_template>(tool_use_template_src, bos_token, eos_token)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user