puter
puter copied to clipboard
`me.puter.ai.txt2img` hangs on workers
hi team, I got this error when running txt2img (as me.puter) in workers
repro worker: https://rey-txt2img.puter.work/txt2img
the code
router.get('/txt2img', async ({request}) => {
try {
const data = JSON.stringify(await me.puter.ai.txt2img('A picture of a cat.', true));
return 'result: ' + data;
} catch (error) {
return 'error: ' + error;
}
});
I suspect it's detecting how long a request is taking (?) although in this case i'm using the testMode
fyi this also happens for txt2vid and txt2speech
this is because no dom api I think, txt2img is weird