Fix copy elision warning
This commit is contained in:
parent
33322e823e
commit
5074e6fecd
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue