Skip to content

Commit 814d3e0

Browse files
ikawrakowIwan Kawrakow
andauthored
Update chat templates (#177)
* Adopting chat template stuff from llama.cpp * Removing missed conflict marker --------- Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
1 parent 2195632 commit 814d3e0

File tree

2 files changed

+348
-40
lines changed

2 files changed

+348
-40
lines changed

include/llama.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,8 @@ extern "C" {
10461046
bool add_ass,
10471047
char * buf,
10481048
int32_t length);
1049+
// Get list of built-in chat templates
1050+
LLAMA_API int32_t llama_chat_builtin_templates(const char ** output, size_t len);
10491051

10501052
//
10511053
// Grammar

0 commit comments

Comments
 (0)