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

Async support #197

Open
bradyneal opened this issue Mar 24, 2023 · 1 comment
Open

Async support #197

bradyneal opened this issue Mar 24, 2023 · 1 comment

Comments

@bradyneal
Copy link

I (and probably many other devs) desperately need this SDK to support async. This is why https://github.com/itayzit/openai-async was made and why OpenAI later added it to their API (see bottom of https://pypi.org/project/openai/).

Any chance there are plans to support async or there are alternative (forks) that support it?

@palp
Copy link
Member

palp commented Apr 4, 2023

As the underlying gRPC library only provides a blocking iterator for response streaming methods (see here), we can't really provide an async native library like that. The best option for async will likely be through the REST API, which we are targeting to add SDK support for in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants