You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/docs/concepts
Forgely3D 4fa11632b4
fix: escalate to model fallback after rate-limit profile rotation cap (#58707)
* fix: escalate to model fallback after rate-limit profile rotation cap

Per-model rate limits (e.g. Anthropic Sonnet-only quotas) are not
relieved by rotating auth profiles — if all profiles share the same
model quota, cycling between them loops forever without falling back
to the next model in the configured fallbacks chain.

Apply the same rotation-cap pattern introduced for overloaded_error
(#58348) to rate_limit errors:

- Add `rateLimitedProfileRotations` to auth.cooldowns config (default: 1)
- After N profile rotations on a rate_limit error, throw FailoverError
  to trigger cross-provider model fallback
- Add `resolveRateLimitProfileRotationLimit` helper following the same
  pattern as `resolveOverloadProfileRotationLimit`

Fixes #58572

* fix: cap prompt-side rate-limit failover (#58707) (thanks @Forgely3D)

* fix: restore latest-main gates for #58707

---------

Co-authored-by: Ember (Forgely3D) <ember@forgely.co>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
8 months ago
..
agent-loop.md docs: Batch 1 — create automation hub + add Related sections 8 months ago
agent-workspace.md docs: add Related sections to 10 concept pages 8 months ago
agent.md docs(agents): update steering semantics 8 months ago
architecture.md docs: add Related sections to 10 concept pages 8 months ago
compaction.md docs: add Related sections to 10 concept pages 8 months ago
context-engine.md docs: add Related sections to 10 concept pages 8 months ago
context.md docs: add Related sections to 10 concept pages 8 months ago
delegate-architecture.md docs: add delegate architecture guide for organizational deployments (#43261) 8 months ago
features.md fix: standardize 'MS Teams' to 'Microsoft Teams' across docs (#50863) 8 months ago
markdown-formatting.md fix: standardize 'MS Teams' to 'Microsoft Teams' across docs (#50863) 8 months ago
memory-builtin.md docs: deep audit of memory section -- fix icons, beef up engine pages, restructure config reference 8 months ago
memory-honcho.md docs: deep audit of memory section -- fix icons, beef up engine pages, restructure config reference 8 months ago
memory-qmd.md docs(memory): clarify qmd symlink traversal limits 8 months ago
memory-search.md docs: add dedicated memory engine pages, replace ASCII diagram with Mermaid 8 months ago
memory.md docs: deep audit of memory section -- fix icons, beef up engine pages, restructure config reference 8 months ago
messages.md docs: add Related sections to 10 concept pages 8 months ago
model-failover.md fix: escalate to model fallback after rate-limit profile rotation cap (#58707) 8 months ago
model-providers.md docs: add Related sections to 10 concept pages 8 months ago
models.md fix: queue model switches behind busy runs 8 months ago
multi-agent.md feat(memory): add per-agent QMD extra collections for cross-agent session search (#58211) 8 months ago
oauth.md docs: add Related sections to 10 concept pages 8 months ago
presence.md docs: fix curly quotes, non-breaking hyphens, and remaining apostrophes in headings 8 months ago
queue.md docs: add background tasks cross-references across 6 doc pages 8 months ago
retry.md Docs: add nav titles across docs (#5689) 10 months ago
session-pruning.md docs: simplify sessions/memory concept pages and fix QMD experimental label 8 months ago
session-tool.md docs: simplify sessions/memory concept pages and fix QMD experimental label 8 months ago
session.md docs: Batch 1 — create automation hub + add Related sections 8 months ago
streaming.md docs: add Related sections to 10 concept pages 8 months ago
system-prompt.md fix(agents): avoid injecting memory file twice on case-insensitive mounts (#26054) 8 months ago
timezone.md docs: Batch 1 — create automation hub + add Related sections 8 months ago
typebox.md docs: fix curly quotes, non-breaking hyphens, and remaining apostrophes in headings 8 months ago
typing-indicators.md Docs: add nav titles across docs (#5689) 10 months ago
usage-tracking.md Docs: add nav titles across docs (#5689) 10 months ago