Go to file
Henrik Jess Nielsen bf5439f7ad fix(offers): survive Claude rate limits (429)
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
2026-10-30 12:07:01 +01:00
2026-06-06 00:55:31 +02:00
2026-06-06 00:55:31 +02:00
2026-06-06 00:28:17 +02:00
Description
No description provided
Readme 596 KiB
Languages
HTML 70.4%
Python 24.4%
JavaScript 3.2%
HCL 1.5%
Dockerfile 0.4%
Other 0.1%