upgrade to ai-sdk 5

This commit is contained in:
dayuan.jiang
2025-08-31 12:54:14 +09:00
parent 1da5976235
commit 44ec398f30
7 changed files with 416 additions and 1002 deletions

View File

@@ -9,9 +9,10 @@
"lint": "next lint"
},
"dependencies": {
"@ai-sdk/amazon-bedrock": "^2.2.9",
"@ai-sdk/google": "^1.2.22",
"@ai-sdk/openai": "^1.3.24",
"@ai-sdk/amazon-bedrock": "^2.0.0",
"@ai-sdk/google": "^2.0.0",
"@ai-sdk/openai": "^2.0.19",
"@ai-sdk/react": "^2.0.22",
"@openrouter/ai-sdk-provider": "^0.4.6",
"@radix-ui/react-dialog": "^1.1.6",
"@radix-ui/react-scroll-area": "^1.2.3",
@@ -19,7 +20,7 @@
"@radix-ui/react-tooltip": "^1.1.8",
"@vercel/analytics": "^1.5.0",
"@xmldom/xmldom": "^0.9.8",
"ai": "^4.3.16",
"ai": "^5.0.22",
"base-64": "^1.0.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
@@ -33,7 +34,8 @@
"react-icons": "^5.5.0",
"remark-gfm": "^4.0.1",
"tailwind-merge": "^3.0.2",
"tailwindcss-animate": "^1.0.7"
"tailwindcss-animate": "^1.0.7",
"zod": "^3.25.76"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",