common : suggest --jinja when autodetection fails (#14222)
This commit is contained in:
parent
89fea80d29
commit
e434e69183
1 changed files with 1 additions and 1 deletions
|
@ -1838,7 +1838,7 @@ static common_chat_params common_chat_templates_apply_legacy(
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
// if the custom "tmpl" is not supported, we throw an error
|
// if the custom "tmpl" is not supported, we throw an error
|
||||||
// this is a bit redundant (for good), since we're not sure if user validated the custom template with llama_chat_verify_template()
|
// this is a bit redundant (for good), since we're not sure if user validated the custom template with llama_chat_verify_template()
|
||||||
throw std::runtime_error("this custom template is not supported");
|
throw std::runtime_error("this custom template is not supported, try using --jinja");
|
||||||
}
|
}
|
||||||
|
|
||||||
// if it turns out that our buffer is too small, we resize it
|
// if it turns out that our buffer is too small, we resize it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue