@v0-sdk/ai-tools 3.0.13 → 4.0.1-canary.22eb71b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -7,6 +7,18 @@ checked-in SDK copy of the v0 repo's `api/openapi-v2.json` spec. This is the
7
7
  same OpenAPI document used to generate the `v0` SDK. Every OpenAPI operation is
8
8
  exposed with a canonical key derived from its full `operationId`.
9
9
 
10
+ ## Requirements
11
+
12
+ - `ai` 6.x or 7.x as a peer dependency. AI SDK 5 is no longer supported
13
+ because AI Gateway is removing support for it.
14
+ - Node.js 22 or newer if you use AI SDK 7.
15
+
16
+ If you are still on `ai@5`, upgrade it alongside this package:
17
+
18
+ ```sh
19
+ npm install ai@^7 @v0-sdk/ai-tools@latest
20
+ ```
21
+
10
22
  ```ts
11
23
  import { generateText } from 'ai'
12
24
  import { openai } from '@ai-sdk/openai'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v0-sdk/ai-tools",
3
- "version": "3.0.13",
3
+ "version": "4.0.1-canary.22eb71b",
4
4
  "description": "AI SDK tools for the v0 Platform API",
5
5
  "keywords": [
6
6
  "ai",
@@ -38,17 +38,17 @@
38
38
  "prepublishOnly": "bun run generate && bun run build"
39
39
  },
40
40
  "dependencies": {
41
- "v0": "3.0.13",
41
+ "v0": "4.0.1-canary.22eb71b",
42
42
  "zod": "^4.1.11"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@tsconfig/strictest": "^2.0.8",
46
46
  "@types/bun": "latest",
47
- "ai": "^5.0.0",
47
+ "ai": "^7.0.166",
48
48
  "tsdown": "^0.21.4",
49
49
  "typescript": "^5.9.3"
50
50
  },
51
51
  "peerDependencies": {
52
- "ai": "^5.0.0"
52
+ "ai": ">=6.0.0"
53
53
  }
54
54
  }