add guide for adding template

This commit is contained in:
ngxson 2024-04-24 18:06:41 +02:00
parent f1a93548aa
commit 3222b4b8e5

View file

@ -17185,6 +17185,7 @@ LLAMA_API int32_t llama_chat_get_prefix(
return output; return output;
}; };
// ttmpl means "typed template" // ttmpl means "typed template"
// before adding a new template, please see the guide here: https://github.com/ggerganov/llama.cpp/wiki/Templates-supported-by-llama_chat_apply_template#how-to-add-a-new-template
switch (ttmpl) { switch (ttmpl) {
case LLAMA_CHAT_TEMPLATE_NOT_SUPPORTED: case LLAMA_CHAT_TEMPLATE_NOT_SUPPORTED:
return -1; return -1;