You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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