Skip to main content

Module llama_chat_template

Module llama_chat_template 

Source

Structsยง

LlamaChatTemplate
A performance-friendly wrapper around super::LlamaModel::chat_template which is then fed into super::LlamaModel::apply_chat_template to convert a list of messages into an LLM prompt. Internally the template is stored as a CString to avoid round-trip conversions within the FFI.