DocsSintaxTextCasingtitle_model

title_model

Formats an AI model identifier into a human-readable title.

It handles provider prefixes, model sizes, quantization suffixes, and date suffixes.

InputArgumentsReturnsstringno argumentsstring
Source

Behaviors

Coerces scalars to text
A scalar value such as a number or a boolean is converted to its text form before matching, so 42 is accepted as "42".
BasicSource

Formats a raw model identifier into a human-readable title.

Given

{"model": "openai/gpt-4o-mini"}

Template

{{ model | title_model }}

Result

OpenAI: GPT 4o Mini
Date suffixSource

Moves a trailing date into a parenthetical.

Given

{"model": "anthropic/claude-3.5-haiku-20241022"}

Template

{{ model | title_model }}

Result

Anthropic: Claude 3.5 Haiku (2024-10-22)
OllamaSource

Formats an Ollama tag with a quantization suffix.

Given

{"model": "olmo-3:7b-instruct-q4_K_M"}

Template

{{ model | title_model }}

Result

Olmo 3 7B Instruct Q4_K_M
Size suffixSource

Normalizes a parameter-size suffix and the provider name.

Given

{"model": "meta-llama/llama-3.1-8b-instruct"}

Template

{{ model | title_model }}

Result

Meta Llama: Llama 3.1 8B Instruct