Test openai-python Retries with HTTPX MockTransport
To measure how many requests openai-python really sends, inject an httpx.Client backed by MockTransport, count handler calls, and return a synthetic 429. With openai==2.49.0, the default max_retries=2
ai-router.hashnode.dev7 min read