Skip to content

chore(web): upgrade Vercel AI SDK from v5 to v6#969

Merged
brendan-kellam merged 3 commits intomainfrom
brendan/upgrade-vercel-ai-sdk-v6
Mar 1, 2026
Merged

chore(web): upgrade Vercel AI SDK from v5 to v6#969
brendan-kellam merged 3 commits intomainfrom
brendan/upgrade-vercel-ai-sdk-v6

Conversation

@brendan-kellam
Copy link
Contributor

@brendan-kellam brendan-kellam commented Mar 1, 2026

Summary

  • Update ai from ^5.0.121 to ^6.0.105
  • Update all @ai-sdk/* provider packages to their latest major versions compatible with v6
  • Update @openrouter/ai-sdk-provider from ^1.5.4 to ^2.2.3
  • Rename LanguageModelV2LanguageModelV3 per the v6 API changes
  • Fix Google Vertex thinking config provider options key (googlevertex)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Upgraded to Vercel AI SDK v6 with coordinated major version updates across all AI provider packages—including Amazon Bedrock, Anthropic, Azure, Deepseek, Google, Google Vertex, Mistral, OpenAI, OpenRouter, and XAI—to maintain compatibility and ensure stable performance.

- Update `ai` from ^5.0.121 to ^6.0.105
- Update all @ai-sdk/* provider packages to their latest major versions
- Update @openrouter/ai-sdk-provider from ^1.5.4 to ^2.2.3
- Rename LanguageModelV2 -> LanguageModelV3 per v6 API changes
- Fix google-vertex thinking config provider options key (google -> vertex)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

This comment has been minimized.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 1, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7ea12a0 and ba75ef9.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (4)
  • CHANGELOG.md
  • packages/web/package.json
  • packages/web/src/app/api/(server)/chat/route.ts
  • packages/web/src/features/chat/actions.ts

Walkthrough

Upgrades Vercel AI SDK and related provider packages (ai v5→v6, multiple @ai-sdk/* major bumps), updates code types from LanguageModelV2→LanguageModelV3, and renames the google-vertex providerOptions key from "google" to "vertex".

Changes

Cohort / File(s) Summary
Changelog & Manifest
CHANGELOG.md, packages/web/package.json
Added unreleased changelog entry; bumped multiple AI SDK dependencies including ai (v5→v6), @ai-sdk/* provider packages, and @openrouter/ai-sdk-provider.
Server API Route
packages/web/src/app/api/(server)/chat/route.ts
Replaced import/type LanguageModelV2LanguageModelV3; updated CreateMessageStreamResponseProps.model type accordingly.
Chat Actions
packages/web/src/features/chat/actions.ts
Updated _getAISDKLanguageModelAndOptions return types from AISDKLanguageModelV2 → AISDKLanguageModelV3 and renamed providerOptions key googlevertex for the google-vertex path.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • msukkari
✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch brendan/upgrade-vercel-ai-sdk-v6

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

brendan-kellam and others added 2 commits February 28, 2026 16:30
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@brendan-kellam brendan-kellam merged commit 763752f into main Mar 1, 2026
6 checks passed
@brendan-kellam brendan-kellam deleted the brendan/upgrade-vercel-ai-sdk-v6 branch March 1, 2026 00:31
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.

1 participant