Skip to content

fix (examples): avoid mixed message types in use-chat-streamdata-multistep #5824

New issue

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

Merged
merged 4 commits into from
Apr 17, 2025

Conversation

iteratetograceness
Copy link
Collaborator

Background

Example was broken due to mixing Core + UI messages in the second streamText call

Summary

Convert UI messages (from hook) to Core Message before merging with assistant messages from first streamText call

Tasks

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • If required, a patch changeset for relevant packages has been added
  • You've run pnpm prettier-fix to fix any formatting issues

Future Work

@lgrammel
Copy link
Collaborator

great find! please also update content/cookbook/01-next/24-stream-text-multistep.mdx

@iteratetograceness iteratetograceness merged commit 7206b1f into vercel:main Apr 17, 2025
6 of 7 checks passed
samdenty pushed a commit that referenced this pull request Apr 22, 2025
samdenty added a commit that referenced this pull request Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants