autobatcher
What is autobatcher?
autobatcher is a Python client that automatically converts your individual API calls into batched requests. You write normal async code using the familiar OpenAI interface, and autobatcher handles the batching complexity behind the scenes based on timing and volume to get you cost savings!
Installation
pip install autobatcherHow It Works
- Requests are collected over a configurable time window or batch size (default: 1 second)
- When the window closes or batch size is reached, requests are submitted as a batch
- Results are polled and returned to waiting callers as they complete
- Your code sees normal ChatCompletion responses