Fast tier
| Route | On the wire | Support comes from |
|---|---|---|
| OpenAI Responses and Completions | body service_tier | row fast, then models.dev speed_modes |
anthropic, Opus 4.6, 4.7, 4.8 | extra_body={"speed":"fast"} and anthropic-beta: fast-mode-2026-02-01, appended without clobbering other betas | Model.fast, default table |
xai, grok-4.6, https://api.x.ai/v1 | service_tier | provider and endpoint scoped declaration |
| all other wires | nothing leaves the process | none |
Anthropic's 429 "Usage credits are required for fast mode" is an account problem and is shown as is. Not listed does not mean a provider lacks a fast tier. UI contract: Composer speed control.
Capability
providers/settings/fast.py fast_capability, shared by the agent-settings projection and dispatch; supports_fast is its boolean form.
- Row
fast: false: unsupported - Row
fast: true: supported - xAI declarations above
- models.dev
speed_modeswithpriorityorfast: supported - Otherwise
unknown
Model.fast: a row's fast wins; enabled_models.default_fast fills rows with none.
Storage
config.json, then registry, then supports_fast and dispatch.
| Layer | Location | Persistence |
|---|---|---|
| Spec row | config.json | Fetch adds, updates and retires; honors disables |
Model.fast | _build_model_from_row | memory |
| models.dev | catalog/sources/models_dev.py | remote, 1 h memory cache |
Turn
| Moment | Behaviour |
|---|---|
| Connect, session, branch or model switch, each turn ack and settle | loadAgentSettings() reads GET /api/agent_settings; chat.fast is recomputed; the composer re-renders, no reload |
| Preference | Per conversation branch; dispatch revalidates provider/model support. Standard overrides agent defaults |
| Send | service_tier: "priority" only when enabled and supported; otherwise default |
| Dispatch | resolve_service_tier revalidates the actual model |
| Evidence | Usage keeps requested and actual tier; per-call evidence saved with the message, shown in the usage footer after reload. Missing metadata is unconfirmed. xAI reported cost beats catalogue cost; no speed ratio is inferred. |
Files and change guide
| File | Holds |
|---|---|
models/providers/types.py | Model.fast |
providers/catalog/enabled_models.py | default_fast, config-row backfill |
adapters/anthropic/anthropic.py | Claude wire |
listing/fetchers/__init__.py | Passes fast and thinking; enrich cannot overwrite |
interfaces/server/routes/execution/runtime.py | chat.fast |
apps/web/components/chat/composer/index.tsx | Control, send gate |
Detection logic: fast_capability. Claude: default_fast. Other providers: works once models.dev knows it.
Last updated · 2026-11-30