| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Llama.ModelChatTemplate
Queries the chat template text for the model.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Llama | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Llama.ModelChatTemplate"; LlamaSession; TemplateName ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| LlamaSession | The session identifier. | $$session |
| TemplateName | The chat template name. Default is "" to pick the default template. |
"chatml" |
Result
Returns text or error.
Description
Queries the chat template text for the model.Returns empty text is template isn't available for the mode.
Blog Entries
This function is free to use.
Created 12nd February 2026, last changed 12nd February 2026