Expand description
Checkpoint-owned Jinja formatting, compiled once when the tokenizer loads.
Structsยง
- Chat
Template ๐ - Prompt ๐
Functionsยง
- common_
prefix ๐ - embedded_
template ๐ - ensure_
reasoning_ ๐content_ absent - function_
call_ ๐name_ and_ arguments - Validate a function reference and decode its
argumentsinto the object the checkpoint template iterates. Fresh requests carry the wire form (a JSON string); retained session history carries the decoded object. - normalize_
content ๐ - Validate typed parts and keep only the fields used by their declared type. The checkpoint template checks media keys before text, so extra fields must not reach it and change a text part into an image or video placeholder.
- text_
messages ๐ - tool_
call_ ๐value - valid_
function_ ๐name - Names accepted on the wire; the tokenizer side uses a longer bound for model-emitted names.
- validate_
assistant_ ๐message - validate_
plain_ ๐message - validate_
tool_ ๐message