llama : add enum for built-in chat templates (#10623)

* llama : add enum for supported chat templates

* use "built-in" instead of "supported"

* arg: print list of built-in templates

* fix test

* update server README
This commit is contained in:
Xuan Son Nguyen 2024-12-02 22:10:19 +01:00 committed by GitHub
parent 8648c52101
commit 642330ac7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 310 additions and 107 deletions

View file

@ -990,6 +990,9 @@ extern "C" {
char * buf,
int32_t length);
// Get list of built-in chat templates
int32_t llama_chat_builtin_templates(const char ** output, size_t len);
//
// Sampling API
//