What ever I try I am unable to get the image generation to work.
Always receive the following error
{"error":"Provided readable stream must have a known length (request/response body or readable half of FixedLengthStream)"}
R2 bucket has been created.
I am using curl to make the request and took the OpenAI image generation as an example.
Example used with redacted info
curl -L https://openai-cf.example.workers.dev/v1/images/generations \ -H "Content-Type: application/json" \ -H "Authorization: Bearer xxxxxxxxxxxxxxxx" \ -d '{ "model": "@cf/stabilityai/stable-diffusion-xl-base-1.0", "prompt": "A cute baby sea otter", "n": 1, "size": "1024x1024" }'
Hi
What ever I try I am unable to get the image generation to work.
Always receive the following error
{"error":"Provided readable stream must have a known length (request/response body or readable half of FixedLengthStream)"}
R2 bucket has been created. I am using curl to make the request and took the OpenAI image generation as an example. Example used with redacted infocurl -L https://openai-cf.example.workers.dev/v1/images/generations \ -H "Content-Type: application/json" \ -H "Authorization: Bearer xxxxxxxxxxxxxxxx" \ -d '{ "model": "@cf/stabilityai/stable-diffusion-xl-base-1.0", "prompt": "A cute baby sea otter", "n": 1, "size": "1024x1024" }'
Any and all help is appreciated! Thanks!