OpenAI max_retries=2 Turned 6 Attempts Into 18 Requests
This story is from 2026-11-16. It is preserved in the archive; the latest stories are on the live feed.
The openai Python SDK already retries a 429 twice by default, so the tenacity decorator from OpenAI's own rate-limit cookbook, stop_after_attempt(6) , sent 18 requests per call to my test server, not 6. Pick one retry layer: either OpenAI(max_retries=0) under a tenacity policy that only retries err…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-16 05:41 · DEV Community — AI
OpenAI max_retries=2 Turned 6 Attempts Into 18 Requests