fix(offers): survive Claude rate limits (429) #6

Merged
hjess merged 1 commits from worktree-citti-arkiver-tur into main 2026-10-30 12:09:37 +01:00
Owner

The OAuth token works (429 = authenticated but throttled); subscription
tokens have a tight output-tokens/min limit and the API reserves max_tokens
against it, so the big translate calls 429'd and the error surfaced as a
failed refresh.

  • Smaller requests: translate max_tokens 16000->4000, batch 250->100; match
    max_tokens 8000->2000 (less reserved OTPM per call)
  • Client max_retries=8 so the SDK waits out 429s (respects retry-after)
  • Pace 1.5s between translate batches
  • Matching no longer fails the whole refresh on a 429 — it keeps the existing
    matches; translations are cached per batch, so progress persists and the
    next refresh finishes the rest
The OAuth token works (429 = authenticated but throttled); subscription tokens have a tight output-tokens/min limit and the API reserves max_tokens against it, so the big translate calls 429'd and the error surfaced as a failed refresh. - Smaller requests: translate max_tokens 16000->4000, batch 250->100; match max_tokens 8000->2000 (less reserved OTPM per call) - Client max_retries=8 so the SDK waits out 429s (respects retry-after) - Pace 1.5s between translate batches - Matching no longer fails the whole refresh on a 429 — it keeps the existing matches; translations are cached per batch, so progress persists and the next refresh finishes the rest
hjess added 1 commit 2026-10-30 12:09:29 +01:00
The OAuth token works (429 = authenticated but throttled); subscription
tokens have a tight output-tokens/min limit and the API reserves max_tokens
against it, so the big translate calls 429'd and the error surfaced as a
failed refresh.

- Smaller requests: translate max_tokens 16000->4000, batch 250->100; match
  max_tokens 8000->2000 (less reserved OTPM per call)
- Client max_retries=8 so the SDK waits out 429s (respects retry-after)
- Pace 1.5s between translate batches
- Matching no longer fails the whole refresh on a 429 — it keeps the existing
  matches; translations are cached per batch, so progress persists and the
  next refresh finishes the rest
hjess merged commit 90ed399cd9 into main 2026-10-30 12:09:37 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hjess/ti#6