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

Support OpenAI (or similar) Batch API like functionality #622

Open
nitinsurya opened this issue Feb 12, 2025 · 1 comment
Open

Support OpenAI (or similar) Batch API like functionality #622

nitinsurya opened this issue Feb 12, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@nitinsurya
Copy link

Is your feature request related to a problem? Please describe.
With agents, we might not necessarily need responses instantaneously, to reduce costs, by half atleast, supporting batch/async processing functionality might help.

Describe the solution you'd like
Not fully flushed yet, but lets say we want OpenAI chat completions, instead of calling the API directly, we can call the https://platform.openai.com/docs/guides/batch API option. Any parallel non dependent tasks could carry on, while this pipeline waits for the response to come up. Once the response is available, the followup tasks continue.

Is this not possible with the current options.
From looking up at code in some places, I do not see it implemented.

Describe alternatives you've considered
this is a functionality addition, a nice to have, not necessarily a must have probably, hence not a feature yet?

Additional context
https://platform.openai.com/docs/guides/batch support for these options.

@nitinsurya nitinsurya added the enhancement New feature or request label Feb 12, 2025
@skown
Copy link

skown commented Feb 20, 2025

That would be good. Can you consider supporting the Batch API?

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