ImprovementModels ·
Fallback catches a rejected key, not just a failed call
Rejected keyFallback
What it does
The fallback system now also steps in when a key is rejected — a billing problem, a usage restriction, a missing permission, or an expiry — rather than only when a model call fails outright.
Before this
You could already set a fallback, but it covered a failed model call. A rejected key was a different class of error and went straight through.
Why it matters
A key that has quietly lapsed fails every request, and that failure used to reach the person using the agent instead of the backup model.
How it works
Four cases are now treated the same as a failed call: a billing problem on the account behind the key, a usage restriction, a permission the key does not carry, and an expired key.
