Add a fallback provider chain
Add a fallback provider chain
Section titled “Add a fallback provider chain”Outcome: When the primary provider fails (rate limit, outage, expired key), Gormes automatically tries the next provider/model in the configured chain.
Prerequisites: At least two configured providers (see first turn).
-
List the current chain
Terminal window gormes fallback listOn a fresh install:
No fallback providers configured.Add one with: gormes fallback add -
Append a fallback
Terminal window gormes fallback addThe interactive picker asks for the provider and model to append. Repeat the command to chain more entries; order is the order you add them.
-
Inspect the chain
Terminal window gormes fallback list -
Remove one entry, or clear all
Terminal window gormes fallback removegormes fallback clear
Verify
Section titled “Verify”gormes fallback listExpected: each fallback entry appears with provider and model. Then trigger a primary failure (revoke the primary key, point its endpoint at an unreachable host, or use an unavailable model id) and run:
gormes chat -q "test fallback"The turn should still return a reply — served by the next entry in the chain.
Troubleshooting
Section titled “Troubleshooting”- Fallback never activates → The primary call must fail, not partially succeed. Streaming or partial errors may not promote to the next entry; check
gormes logs. fallback addopens an empty picker → Add provider credentials first (gormes auth add <provider>).