We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm merging data streams of individual streamTexts to enable a multi-step workflow. https://x.com/aisdk/status/1896946680081302007
Right now, the behavior of processChatResponse is to accumulate the text parts and reasoning text parts of separate streams into the same part.
processChatResponse
So for multiple streams, parts would always be [TextPart, ToolCallPart, ToolCallPart].
What I'm looking for is, [TextPart, ToolCallPart, TextPart, ToolCallPart].
With merged streams, we want to keep the text interweaved and not accumulate.
Before
After
No response
The text was updated successfully, but these errors were encountered:
Turns out latest version of vercel ai already has this implemented here: https://github.com/vercel/ai/blame/4dece70cbc9606ea0c0c7921b10f43b8cce96791/packages/ui-utils/src/process-chat-response.ts#L361-L364
Sorry, something went wrong.
No branches or pull requests
Feature Description
I'm merging data streams of individual streamTexts to enable a multi-step workflow.
https://x.com/aisdk/status/1896946680081302007
Right now, the behavior of
processChatResponse
is to accumulate the text parts and reasoning text parts of separate streams into the same part.So for multiple streams, parts would always be [TextPart, ToolCallPart, ToolCallPart].
What I'm looking for is, [TextPart, ToolCallPart, TextPart, ToolCallPart].
Use Cases
With merged streams, we want to keep the text interweaved and not accumulate.
Before
After
Additional context
No response
The text was updated successfully, but these errors were encountered: