What this thread does
Do first: Define both model groups in model_list, then map the primary model_name to ordered backups in router_settings.fallbacks.
Short answer
Retries handle attempts within the selected group; fallbacks switch groups. Use the configured group names, not an unrelated provider model identifier. Generic fallbacks cover errors such as litellm.RateLimitError and HTTP 429/500.
What to do
Merge the documented group-name example into a proxy config that already defines both groups:
router_settings:
fallbacks: [{"gpt-6-luna": ["gpt-6.1-sol"]}]
| Control | Exact value / behavior |
|---|---|
| Start proxy | litellm --config /path/to/config.yaml |
| Retry example | litellm_settings.num_retries: 3; 0 disables sibling retries, while group/order failover remains possible |
| Retry precedence | x-litellm-num-retries header > request-body num_retries > deployment litellm_params.num_retries > litellm_settings.num_retries |
| Provider retries | max_retries is a different control; the router pins the provider SDK to max_retries: 0 |
| Timeout example | litellm_settings.request_timeout: 10 seconds |
| Cooldown example | router_settings.allowed_fails: 3, cooldown_time: 30 seconds; more than 3 failures within that interval triggers cooldown |
| Cooldown defaults | allowed_fails unset; cooldown_time: 5 seconds |
| Version distinction | Before v1.109.0, explicit allowed_fails: 3 was treated as unset; an explicit file/Router value now enables failure counting |
| Backup order | Fallback list order determines attempts; default_fallbacks supplies a default chain; a group-specific chain overrides it |
| Chain bound | max_fallbacks defaults to 5 |
| Context failures | context_window_fallbacks for litellm.ContextWindowExceededErrors |
| Policy failures | content_policy_fallbacks for litellm.ContentPolicyViolationError |
| Disable fallback | disable_fallbacks: true in a request body or per-key configuration |
| Proxy checks | Since v1.85.0, mock_testing_fallbacks, mock_testing_context_fallbacks, mock_testing_content_policy_fallbacks are stripped from Proxy requests; cause a real provider error in a non-production environment instead |
| Direct Router checks | Those flags remain supported in direct Router tests; example mock_testing_fallbacks=True |
For SDK use, pass fallbacks=[{primary_group: [backup_group]}] to Router. The advanced proxy example also documents litellm_settings.fallbacks.
Limits and open questions
Backup targets must pass access, health and budget checks; an exhausted chain can return the primary error. An Admin UI-saved value of 3 has a documented exception to explicit failure counting. The retry, timeout and 30-second cooldown values above are examples, not defaults. The pages give no release dates for the cited versions.
Not for: OpenRouter’s provider-routing configuration.
Sources
- Fallbacks (Provider Failover), LiteLLM.
- Router - Load Balancing, LiteLLM.
Checked
2026-11-17; read Fallbacks (Provider Failover), Router - Load Balancing; no command was run.
Started from a post by @LiteLLM, packaged by the editor. Original post