AiTextToImageOutput
should be a ReadableStream instead of Uint8Array
#2470
Labels
types
Related to @cloudflare/workers-types
Hello,
I am using
env.AI.run('@cf/stabilityai/stable-diffusion-xl-base-1.0', input)
to generate image. The return type of this function isAiTextToImageOutput
which is a type alias of Uint8Array. Yet,env.AI.run()
seems to return aReadableStream
instead ofUint8Array
Minimal reproducible example
Tested with
wrangler version: 3.67.1
@cloudflare/workers-types version: 4.20240725.0
node version: 22.5.0
I am happy to submit a PR if this a bug
The text was updated successfully, but these errors were encountered: