docs(router): drop reference to virtual openrouter/free in is_premium_model

This commit is contained in:
Anish Sarkar 2026-05-01 18:09:50 +05:30
parent 2019e90a04
commit 4d34b56c4d

View file

@ -344,11 +344,11 @@ class LLMRouterService:
Scope: only covers configs with ``router_pool_eligible`` truthy. That Scope: only covers configs with ``router_pool_eligible`` truthy. That
includes static YAML premium configs AND dynamic OpenRouter *premium* includes static YAML premium configs AND dynamic OpenRouter *premium*
entries (which opt in at generation time). Dynamic OpenRouter *free* entries (which opt in at generation time). Dynamic OpenRouter *free*
entries and the virtual ``openrouter/free`` router are deliberately entries are deliberately kept out of the router pool OpenRouter
kept out of the router pool OpenRouter enforces free-tier limits enforces free-tier limits globally per account, so per-deployment
globally per account, so per-deployment router accounting can't router accounting can't represent them correctly — and therefore
represent them correctly and therefore return ``False`` here, which return ``False`` here, which matches their ``billing_tier="free"``
matches their ``billing_tier="free"`` (no premium quota). (no premium quota).
For per-request premium checks on an arbitrary config (static or For per-request premium checks on an arbitrary config (static or
dynamic, pool or non-pool), read ``agent_config.is_premium`` instead; dynamic, pool or non-pool), read ``agent_config.is_premium`` instead;