OptionaladdAppend assistant prompt prefix (default: true). Set false when formatting partial conversations or for non-generation use cases like template validation.
OptionalenableEnable <think> blocks (default: true). Pairs with reasoningFormat.
OptionalgrammarExplicit GBNF grammar string for constrained generation.
Mutually exclusive with jsonSchema.
OptionaljsonJSON schema for constrained output. Converted to GBNF grammar internally.
Mutually exclusive with grammar.
OptionalparallelAllow parallel tool calls (default: false)
OptionalreasoningReasoning format (default: "none")
Controls <think> block handling in the template.
Use "auto" to let the model's template decide.
OptionaltemplateCustom Jinja2 template override (bypasses model's built-in template)
OptionaltoolTool choice strategy (default: "auto")
OptionaltoolsJSON array of OpenAI-format tool definitions
Options for chat template formatting
Controls format-awareness fields passed to the chat template engine. All fields are optional -- sensible defaults are used when omitted.
Example: With tools and reasoning