Method ApplyChatTemplate
ApplyChatTemplate(string, bool)
Runs the model's own Jinja template through minja.
string ApplyChatTemplate(string messagesJson, bool addGenerationPrompt)
Parameters
messagesJsonstringA JSON array of
{"role","content"}.addGenerationPromptboolWhether to append the assistant turn header.
Returns
- string
The formatted prompt.