Skip to content

wait until rate-limit reset time before retrying#115

Open
jbj338033 wants to merge 4 commits into
mainfrom
feature/ratelimit-auto-resume
Open

wait until rate-limit reset time before retrying#115
jbj338033 wants to merge 4 commits into
mainfrom
feature/ratelimit-auto-resume

Conversation

@jbj338033

Copy link
Copy Markdown
Collaborator

Summary

On a rate-limit (429), wait until the provider-reported reset time and resume automatically instead of giving up after a fixed backoff, so conversations survive Anthropic subscription 5h/weekly limits and any provider that reports a reset window. A long relative retry_after is promoted to a precise wall-clock wait; absolute reset headers are parsed on the 429 error path in the SDK.

Verification

  • cargo fmt --all --check — passed
  • cargo clippy --workspace --all-targets -- -D warnings — passed
  • cargo test --workspace — passed

Note

Depends on goat-sdk rev 4337282 (branch feat/ratelimit-reset-on-error), which adds resets_at to StreamError::RateLimited and Event::Retrying and parses reset headers on the 429 path. Bumps PROTOCOL_VERSION 6 → 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant