SD is bad at text, Should be better when CF support FLUX i think π€
SD is bad at text, Should be better when CF support FLUX i think 
llama-2 , CF ai seem to be useless to me atm.create me an image that is 512x512, with text that says "my text here" and a red background, with yellow textred background, text saying "my text here", arial font, yellow color
New blob([res]) returns a blob with raw content of [object Object]?{}{"0":0}, but when i log the response from ai.run it's just {}console.log(res instanceof Uint8Array) logs "false", soconst resp = await this.ai.run(model, input); it is returning a ReadableStream<Uint8Array> rather than a Uint8Array like the types are saying. I'm having to coerce it into the correct type before being able to manipulate itfromUint8Array(buffer) is from js-base64const buffer = await new Response(resp).arrayBuffer();.


@cf/qwen/qwen1.5-14b-chat-awq still isnt working with functions, is there any ETA on this?
const input: TTIInput = {
prompt: prompt,
strength: strength,
};
const res = await env.AI.run("@cf/stabilityai/stable-diffusion-xl-base-1.0", input);
const blob = new Blob([res]);
console.log(await blob.text());let a = new Uint8Array(1)
console.log(JSON.stringify(a)) const resp = (await this.ai.run(model, input)) as unknown;
let buffer: Uint8Array;
if (resp instanceof ReadableStream) {
const chunks: Uint8Array[] = [];
// eslint-disable-next-line no-restricted-syntax
for await (const chunk of resp as ReadableStream<Uint8Array>) {
chunks.push(chunk);
}
buffer = new Uint8Array(chunks.reduce((acc, chunk) => acc + chunk.length, 0));
let offset = 0;
// eslint-disable-next-line no-restricted-syntax
for (const chunk of chunks) {
buffer.set(chunk, offset);
offset += chunk.length;
}
}
else if (resp instanceof Uint8Array) {
buffer = resp;
}
else {
throw new Error("Unknown return type for the ai run");
}
const base64Image = fromUint8Array(buffer);