mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-24 12:15:51 -04:00
eaa3df3fe7
- Classify OpenAI insufficient_quota errors as rate_limit to trigger fallback - Add quota pattern matching in JSON error body parsing - Add quota string pattern matching for error messages - Remove premature success recording - stream might still error during iteration Note: Stream-time errors (errors during iteration) are not yet caught by fallback retry logic. This is a known limitation when errors occur mid-stream rather than at call time. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>