Closed baptisteArno closed 5 months ago
fullStream
is not intended to be used that way. Please use .toAIStreamResponse()
instead:
const result = await streamText({
/**/
});
return result.toAIStreamResponse( {
headers: responseHeaders,
});
}
Description
I am failing to send
fullStream
in a Next.js function response. This throws a server error:Code example
Additional context
Tried with
@ai-sdk/mistral
version 0.0.11.ai
is version 3.1.9