Closed mjtechguy closed 9 months ago
I think you have to replace the base64 encoding logic!
See pointer below:
Thanks. Not sure what to modify as I am not a dev. But I will ask ChatGPT. 😆
Any ideas?
Thank you for pointing this out.
It seems that current version can not be "just pasted", because it depends on wrangler.toml
option:
But you can use this branch instead: https://github.com/PublicAffairs/openai-gemini/blob/resize-images/src/worker.mjs
Worked perfectly. It is responding as expected. Thanks so much for this!
Looks like a very cool project. Thanks for creating this.
Question about Cloudflare.
I pasted the contents of worker.mjs into the index.js in the cloudflare worker. I get this error when I try to deploy.
Uncaught Error: No such module "node:buffer". imported from "index.js" (Code: 10021)
Any ideas?