-
Notifications
You must be signed in to change notification settings - Fork 4.3k
-
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!!
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment