Skip to content

Conversation

@blacksheep-git
Copy link
Contributor

@blacksheep-git blacksheep-git commented Dec 23, 2025

Summary

Upgrades the project to AI SDK 6 stable release with all breaking changes resolved.

Changes

Dependencies Updated

  • ai: 6.0.0-beta.159 → 6.0.1 (stable)
  • @ai-sdk/react: 3.0.0-beta.162 → 3.0.1 (stable)
  • @ai-sdk/gateway: 2.0.0-beta.85 → 3.0.0 (stable)
  • @ai-sdk/provider: 3.0.0-beta.27 → 3.0.0 (stable)

Breaking Changes Resolved

  1. LanguageModelV3FinishReason Type Change

  2. Type Renames

Fixes #1366

- Upgraded ai from 6.0.0-beta.159 to 6.0.1 (stable)
- Upgraded @ai-sdk/react from 3.0.0-beta.162 to 3.0.1 (stable)
- Upgraded @ai-sdk/gateway from 2.0.0-beta.85 to 3.0.0 (stable)
- Upgraded @ai-sdk/provider from 3.0.0-beta.27 to 3.0.0 (stable)

Breaking changes resolved:
- Updated LanguageModelV3FinishReason from string to structured object
- Renamed Experimental_GeneratedImage to GeneratedFile

Fixes vercel#1366
Copilot AI review requested due to automatic review settings December 23, 2025 04:24
@vercel
Copy link
Contributor

vercel bot commented Dec 23, 2025

@blacksheep-git is attempting to deploy a commit to the v0-evals-vtest314 Team on Vercel.

A member of the Team first needs to authorize it.

@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​ai-sdk/​react@​3.0.0-beta.162 ⏵ 3.0.199 +110073 +198100
Updated@​ai-sdk/​provider@​3.0.0-beta.27 ⏵ 3.0.0100 +110074 +198 +2100
Updated@​ai-sdk/​gateway@​2.0.0-beta.85 ⏵ 3.0.0100 +110083 +198100
Updatedai@​6.0.0-beta.159 ⏵ 6.0.199100100 +1100100

View full report

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the project from AI SDK 6 beta to the stable 6.0.1 release, resolving all breaking changes introduced in the stable version.

  • Updated four AI SDK packages from beta to stable versions (6.0.1 for core ai package, 3.0.1 for @ai-sdk/react, and 3.0.0 for @ai-sdk/gateway and @ai-sdk/provider)
  • Migrated finishReason from string type to structured object with unified and raw properties
  • Renamed Experimental_GeneratedImage to GeneratedFile (now stable API)

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
package.json Updated AI SDK dependencies from beta to stable versions
pnpm-lock.yaml Lockfile updates reflecting the stable dependency versions and their transitive dependencies
lib/ai/models.test.ts Updated mock model finishReason values to use new object structure in test models
tests/prompts/utils.ts Updated finishReason in test utility to use new object structure with unified and raw properties
components/elements/image.tsx Renamed type import from Experimental_GeneratedImage to stable GeneratedFile
components/ai-elements/image.tsx Renamed type import from Experimental_GeneratedImage to stable GeneratedFile
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Upgrade to AI SDK 6

1 participant