Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Can AsyncOpenAI generate dall-e-2 images concurrently? #2140

Unanswered
cjemzl asked this question in Q&A
Discussion options

I know that one can use AsyncOpenAI for concurrent queries to GPT/chat models, but does it also work for concurrent image generation?

I'm trying to use the following within an async function for generating multiple images concurrently (and called by another async looper to run multiple of these concurrently):
await dalleclient.images.generate() # where dalleclient is an AsyncOpenAI()

But I notice the image requests seem to be getting sent and processed sequentially, i.e. each image is only initiated when the previous one is completed.

Am I doing something wrong, or is AsyncOpenAI only meant for concurrent GPT/chat use?

Thanks!!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.