{"errors":[{"message":"AiError: AiError: Invalid or incomplete input for the model: failed to decode JSON: Request is too large","code":3010}],"success":false,"result":{},"messages":[]}
We are wondered to know what are the limit request to this API endpoint?
So stoked you’ve had a good experience with Cloudflare so far!
Right now, we’re constantly updating (and improving!) some of our limits. Since they’re changing frequently they are not something we publish. In the coming months, as these limits become more consistent we’ll start sharing them in our docs.
Hello, @rrobinett , what’s the longest time so far? Right now Cloudflare Worker can’t use the OpenAI Whisper API, so we’re looking for other solutions. I look forward to hearing from you, thank you.
Hey @rrobinett do you know if there is an update on the worker limit?
Looks like the new AI unit pricing is set to start this coming Nov yet the current file size limit on the processing worker is a deal breaker for most applications.
Also, maybe you can recommend on a workaround until this is resolved?
Thanks!
When running it from within a worker and invoking the model directly via env.AI.run we get a weird internal error stack trace:
AiError: undefined: undefined
at Ai._parseError (cloudflare-internal:ai-api:76:20)
at async Ai.run (cloudflare-internal:ai-api:57:23)
at async Object.fetch (index.js:24:24)
Even though GROQ mentions a limit of 25MB for a file (not sure if it’s a model limit or just an infra limit on their end) it processes my 25.7MB file just fine:
Please, keep aware that the OpenAI Whisper model has a 25Mb file size limitation. That’s why other providers also inherit the same limitation.
As workarround, you can try convert the audio file to another format. I have see other Internet users claim 40Mb MP3 file compress to 8Mb in M4A format. Or try use Opus codec + OGG container.