Support toDataStreamResponse from streamObject
villesau opened this issue · comments
Ville Saukkonen commented
Feature Description
Now streamObject only supports toTextStreamResponse, would be nice to also support toDataStreamResponse
Use Case
Would make it possible to use streamObject with useChat.
Additional context
Currently, useChat always returns empty message arrays if using streamObject & toTextStreamResponse in the backend. Even when streamProtocol: "text"
.
Lars Grammel commented
I tried useChat
with streamProtocol: "text"
and streamObject
. It works as expected.
However, there is a separate use case for useChat
with streamObject
and additional data.
Mish Ushakov commented
I need this too