diff --git a/website/docs/reference/cli-commands.md b/website/docs/reference/cli-commands.md index 4f307f15e7..a36fe9819c 100644 --- a/website/docs/reference/cli-commands.md +++ b/website/docs/reference/cli-commands.md @@ -1093,7 +1093,7 @@ Typical session: 2. Use `↑`/`↓` to reorder fallbacks (first-in-list is tried first). 3. Press `d` to remove one. -All changes persist to `fallback_providers:` under `model:` in `config.yaml`. Interacts with [Credential Pools](/docs/user-guide/features/credential-pools): pools rotate keys *within* a provider, fallbacks switch to a *different* provider entirely. +All changes persist to the top-level `fallback_providers:` list in `config.yaml`. Interacts with [Credential Pools](/docs/user-guide/features/credential-pools): pools rotate keys *within* a provider, fallbacks switch to a *different* provider entirely. See [Fallback Providers](/docs/user-guide/features/fallback-providers) for behavior details and interaction with `fallback_model` (legacy single-fallback key). diff --git a/website/docs/reference/environment-variables.md b/website/docs/reference/environment-variables.md index 9bcda5695e..c962c20b76 100644 --- a/website/docs/reference/environment-variables.md +++ b/website/docs/reference/environment-variables.md @@ -514,16 +514,18 @@ Older configs with `compression.summary_model`, `compression.summary_provider`, For task-specific direct endpoints, Hermes uses the task's configured API key or `OPENAI_API_KEY`. It does not reuse `OPENROUTER_API_KEY` for those custom endpoints. -## Fallback Model (config.yaml only) +## Fallback Providers (config.yaml only) -The primary model fallback is configured exclusively through `config.yaml` — there are no environment variables for it. Add a `fallback_model` section with `provider` and `model` keys to enable automatic failover when your main model encounters errors. +The primary model fallback chain is configured exclusively through `config.yaml` — there are no environment variables for it. Add a top-level `fallback_providers` list with `provider` and `model` keys to enable automatic failover when your main model encounters errors. ```yaml -fallback_model: - provider: openrouter - model: anthropic/claude-sonnet-4 +fallback_providers: + - provider: openrouter + model: anthropic/claude-sonnet-4 ``` +The older top-level `fallback_model` single-provider shape is still read for backward compatibility, but new configuration should use `fallback_providers`. + See [Fallback Providers](/docs/user-guide/features/fallback-providers) for full details. ## Provider Routing (config.yaml only)