Module: Upstream Invocation, OAuth & Quota
Chinese Source Guide
Full source-anchored notes are maintained in Chinese at repo-docs/modules/upstream-and-quota.md.
- Bounded Failover:
shouldRetryUpstreamfails over across up to 3 shuffled candidates only on explicit401/403/404/429rejections;fetchUpstreamenforces120sheader/idle timeouts and a32 MiBresponse cap. - Providers & Reference Counters: Supports
cloudflare,antigravity,openai,anthropic, andgemini; Cloudflare 24h reference Neurons counters cache for 5 minutes and do not enforce billing hard locks.