Skip to content

Model ladder & budgets

VERIFIED Shared cheapest-model rank pattern (PromptDesk reference; Argus has rank code that is unused on the live path — see Argus gaps).

Rank contract

KnobDefaultMeaning
MODEL_RANK_TOP_N3Only N cheapest models used
MODEL_RANK_REFRESH_MS43200000 (12h)Redis rank refresh
Seeds + live listprovider-specificCached under models:rank:{provider}

Budgets

Canonical names for other projects:

VariableTypical strict defaultScope
LLM_RATE_LIMIT_PER_MINUTE20Per-entity requests/minute
LLM_DAILY_BUDGET500Per-entity daily requests
HTTP send capsproduct-specifice.g. PromptDesk chat rate window

Fail closed before provider calls when caps are exceeded.

Headroom

ProductHeadroom
PromptDeskOK via *_BASE_URL toward infra_llm
ArgusOK via *_BASE_URL
QuizzeiraVERIFIED OFF (LLM_USE_HEADROOM=false) — see infra docs/quizzeira-headroom.md