You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there 👋,
I'm trying to use the "streamObject" in a Hono API from a React App.
Most examples (express, Next.js) make use of the "toTextStreamResponse()" that directly works along the "useObject" React hook. Any guidance on how to make this work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there 👋,
I'm trying to use the "streamObject" in a Hono API from a React App.
Most examples (express, Next.js) make use of the "toTextStreamResponse()" that directly works along the "useObject" React hook.
Any guidance on how to make this work?
Docs:
https://sdk.vercel.ai/examples/next/basics/streaming-object-generation
Here's a working repo in Next.js:
https://github.com/vercel-labs/ai-sdk-preview-array-output-mode/blob/main/app/(preview)/api/array/route.ts
Thanks so much in advance ❤️
Beta Was this translation helpful? Give feedback.
All reactions