Skip to content

Commit 8d351f1

Browse files
os-zhuangclaude
andauthored
chore(chatbot): upgrade to Vercel AI SDK v7 / @ai-sdk/react v4 (#2101)
Bump `ai` ^6 -> ^7 and `@ai-sdk/react` ^3 -> ^4 in @object-ui/plugin-chatbot. useChat / DefaultChatTransport / UIMessage usage is source-compatible with v7 — no code changes needed. Type-check clean, build green, 183/183 tests pass. Part of the AI SDK v6->v7 upgrade (framework#2464, cloud#710). Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent be5563d commit 8d351f1

3 files changed

Lines changed: 100 additions & 13 deletions

File tree

.changeset/ai-sdk-v7-chatbot.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/plugin-chatbot': minor
3+
---
4+
5+
chore(chatbot): upgrade to Vercel AI SDK v7 / @ai-sdk/react v4
6+
7+
Bump `ai` ^6 -> ^7 and `@ai-sdk/react` ^3 -> ^4. The chatbot's `useChat`,
8+
`DefaultChatTransport`, `UIMessage`/`ChatStatus` usage and the `mapMessages`
9+
parts adapter are all source-compatible with v7 — no code changes required.
10+
11+
Verified: type-check clean, build green, 183/183 unit tests pass on v7.
12+
13+
Part of the org-wide AI SDK v6->v7 / providers v3->v4 upgrade (framework#2464,
14+
cloud#710).

packages/plugin-chatbot/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
"lint": "eslint ."
3232
},
3333
"dependencies": {
34-
"@ai-sdk/react": "^3.0.216",
34+
"@ai-sdk/react": "^4.0.5",
3535
"@object-ui/components": "workspace:*",
3636
"@object-ui/core": "workspace:*",
3737
"@object-ui/react": "workspace:*",
3838
"@object-ui/types": "workspace:*",
3939
"@radix-ui/react-slot": "^1.3.0",
4040
"@radix-ui/react-use-controllable-state": "^1.2.3",
41-
"ai": "^6.0.214",
41+
"ai": "^7.0.4",
4242
"class-variance-authority": "^0.7.1",
4343
"lucide-react": "^1.22.0",
4444
"motion": "^12.42.0",

pnpm-lock.yaml

Lines changed: 84 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)