Asyncopenai Concurrency Httpx Pool

Raise real concurrency in asyncio LLM batch scorers built on the OpenAI SDK (AsyncOpenAI, including OpenAI-compatible providers like DeepSeek). Use when: (1) raising an asyncio.Semaphore above ~100 produces no throughput gain, (2) a batch pipeline saturates near 100 in-flight requests despite a larger semaphore, (3) planning a high-concurrency campaign against a provider with no hard rate limit (DeepSeek v4-flash tolerates 2000+ in flight). Root cause: AsyncOpenAI's default httpx pool caps max_connections at 100, silently bottlenecking any larger semaphore — you must pass a custom http_client with httpx.Limits sized to the semaphore.

kennethkhoocy Updated

File contents

kennethkhoocy/applied-micro-skills/tree/main/plugins/applied-micro/skills/asyncopenai-concurrency-httpx-pool commit 9841324a61

Frequently asked questions

npx skillmds@latest add kennethkhoocy/asyncopenai-concurrency-httpx-pool