Has anyone gotten Vercel AI Package

Has anyone gotten Vercel AI Package working with streamText and Cloudflare AI models? I am getting the following error and it's only when I am streaming (generateText works fine). I will note I am using a modified baseURL in an OpenAI provider to make CF AI work with Vercel AI package. "Error message: [ { "code": "invalid_union", "unionErrors": [ { "issues": [ { "code": "invalid_type", "expected": "number", "received": "undefined", "path": [ "choices", 0, "index" ], "message": "Required" } ], "name": "ZodError" }, { "issues": [ { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "error" ], "message": "Required" } ], "name": "ZodError" } ], "path": [], "message": "Invalid input" } ]"
4 Replies
someguy
someguyOP2mo ago
Anyone from @Cloudflare seen this error before?
Isaac McFadyen
Isaac McFadyen2mo ago
Aside from the fact that it didn't work (because that's a bot), please avoid pinging groups in general.
someguy
someguyOP2mo ago
Ah sorry Isaac, is there a dev ping that is possible or a way to make a more formal ticket?
Isaac McFadyen
Isaac McFadyen2mo ago
If you need to make a ticket you can try creating one through the Cloudflare dashboard, but in general this community is all made up of volunteers and you're not entitled to support. If someone knows they might help out, but pinging isn't allowed.
Want results from more Discord servers?
Add your server