Skip to content

Conversation

@nicoalbanese
Copy link
Collaborator

Background

Many have struggled with the migration from AI SDK 4 to AI SDK 5. Particularly, migrating existing messages is non-trivial.

Summary

This PR introduces a guide that walks users through a safe migration.

Manual Verification

I have followed the instructions on my own repo.

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)
  • I have reviewed this pull request (self-review)

Future Work

JSON data migration guide.

@nicoalbanese nicoalbanese merged commit 276ebc2 into main Oct 10, 2025
10 checks passed
@nicoalbanese nicoalbanese deleted the na/5ef3a81d branch October 10, 2025 09:24
vercel-ai-sdk bot pushed a commit that referenced this pull request Oct 10, 2025
## Background

Many have struggled with the migration from AI SDK 4 to AI SDK 5.
Particularly, migrating existing messages is non-trivial.

## Summary

This PR introduces a guide that walks users through a safe migration.

## Manual Verification

I have followed the instructions on my own repo.

## Checklist

- [ ] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] Formatting issues have been fixed (run `pnpm prettier-fix` in the
project root)
- [ ] I have reviewed this pull request (self-review)

## Future Work

JSON data migration guide.
@vercel-ai-sdk vercel-ai-sdk bot removed the backport label Oct 10, 2025
@vercel-ai-sdk
Copy link
Contributor

vercel-ai-sdk bot commented Oct 10, 2025

✅ Backport PR created: #9366

nicoalbanese added a commit that referenced this pull request Oct 10, 2025
This is an automated backport of #9352 to the release-v5.0 branch.

Co-authored-by: Nico Albanese <[email protected]>
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