Skip to Content

createVercelAiTextStreamResponse()

function createVercelAiTextStreamResponse(textStream, init?): Response;

Plain-text response compatible with AI SDK 6 and 7 TextStreamChatTransport.

Parameters

textStream

ReadableStream<string>

init?

ResponseInit

Workflow guides

Last updated on