Stream HelpersstreamData
streamData
Allows you to stream additional data to the client.
Import
React
import { streamData } from "ai"
Parameters
value:
Any data
Returns
stream:
A special value that can be streamed to the client. It can be accessed through the data field in useChat and useCompletion hooks.