We've also added refusal-fallback middleware to the Python, TypeScript, Go, Java, and C# SDKs for client-side retries. Middleware is useful for Claude API providers without support for server-side fallbacks.
It detects the refusal, retries on Claude Opus 4.8, and keeps using it for later turns.