v1.6.1

Model Priority and Tiers

Last updated


How the order of registered models and their tiers decide which model is tried first.
Registered models are stored as an ordered list under models in config.json. That order is the fallback priority (see LLM Fallback). POST /v1/model/priority moves the listed names to the front in the given order and keeps the rest after them.
Each model can carry a tier in model_tag ({"<provider>@<model>": "<tier>"}):
TierMeaning
SStrongest — code and work that asks for depth or precision
ADefault for most work, one step below the flagship
BMainstream mid tier
CFast and cheap; calls tools reliably as instructed
passNever picked by auto routing, subagents or fallback, even when the request names it (since v1.1.0); used only when a session is set to it

An untiered model follows the built-in naming rules: S = claude-fable, claude-opus, gpt-*-astra, gemini-*-carbon; A = gpt-*-sol, grok-4.5+, claude-sonnet, gpt-*-terra, gemini-*-argon, gemini-*-pro, deepseek-*-pro, glm, kimi; B = claude-haiku, gpt-*-luna, gemini-*-hydrogen, gemini-*-flash, grok below 4.5, deepseek-*-flash, other deepseek; C = *-mini, *-nano, gemini-*-flash-lite and open-weight models (gemma*, gpt-oss, qwen*, llama*). v1.0.19 moved gpt-*-sol and grok-4.5+ from S to A. v1.3.16 added the Gemini 4 names (-carbon S, -argon A, -hydrogen B) and changed the DeepSeek A rule from the deepseek-pro prefix to any deepseek-*-pro model (such as deepseek-v4-pro, previously B), with deepseek-*-flash ranked ahead of other deepseek models within B. Tiers are read per request, so a change applies without a restart.