Skip to content

Commit e434e69

Browse files
authored
common : suggest --jinja when autodetection fails (#14222)
1 parent 89fea80 commit e434e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/chat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ static common_chat_params common_chat_templates_apply_legacy(
18381838
if (res < 0) {
18391839
// if the custom "tmpl" is not supported, we throw an error
18401840
// this is a bit redundant (for good), since we're not sure if user validated the custom template with llama_chat_verify_template()
1841-
throw std::runtime_error("this custom template is not supported");
1841+
throw std::runtime_error("this custom template is not supported, try using --jinja");
18421842
}
18431843

18441844
// if it turns out that our buffer is too small, we resize it

0 commit comments

Comments
 (0)