Need help with vercel ai package and pages router from streaming
Unanswered
Yellow-billed Magpie posted this in #help-forum
Yellow-billed MagpieOP
Hi guys, I am working on a rich text editor, and I was using the starter t3 template as I am new to nextjs , I need help . The documentation says stream does not work on pages router but it has some examples which is confusing : https://sdk.vercel.ai/docs/guides/frameworks/nextjs-pages. The call is being made to the replicate api and the stream outputs, but I can't get anything using useCompletion .
Here's my code : https://pastebin.com/enA7yPvB . Thanks in advance
Here's my code : https://pastebin.com/enA7yPvB . Thanks in advance