Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] OpenAI Batch API support #319

Open
zigzag312 opened this issue May 24, 2024 Discussed in #318 · 0 comments
Open

[Feature Request] OpenAI Batch API support #319

zigzag312 opened this issue May 24, 2024 Discussed in #318 · 0 comments
Labels
enhancement New feature or request

Comments

@zigzag312
Copy link

Hi!

OpenAI offers special batch API that is 50% cheaper than the normal (synchronous) API.

With batch API all requests are combined into a single jsonl (where json requests are newline-delimited). The reason batch API is cheaper is that the response is not immediate. It can take up to 24h to process the batch.

https://platform.openai.com/docs/guides/batch
https://platform.openai.com/docs/api-reference/batch

Book translations seems to be a perfect fit for the batch API. Very high token counts and results usually do not need to be immediate.

Single batch can contain up to 50'000 requests or up to 100MB.

Discussed in #318

@bookfere bookfere added the enhancement New feature or request label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants