ai 5.0.0-alpha.1 → 5.0.0-alpha.11
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.
- package/CHANGELOG.md +159 -0
- package/dist/index.d.mts +441 -563
- package/dist/index.d.ts +441 -563
- package/dist/index.js +1534 -1490
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1410 -1355
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +25 -5
- package/dist/internal/index.d.ts +25 -5
- package/dist/mcp-stdio/index.js.map +1 -1
- package/dist/mcp-stdio/index.mjs.map +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,164 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
+
## 5.0.0-alpha.11
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- e8324c5: feat (ai): add args callbacks to tools
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- Updated dependencies [c1e6647]
|
12
|
+
- @ai-sdk/provider@2.0.0-alpha.11
|
13
|
+
- @ai-sdk/gateway@1.0.0-alpha.11
|
14
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.11
|
15
|
+
|
16
|
+
## 5.0.0-alpha.10
|
17
|
+
|
18
|
+
### Major Changes
|
19
|
+
|
20
|
+
- 98f25e5: chore (ui): remove managed chat inputs
|
21
|
+
- 7bb58d4: chore (ai): restructure prepareRequest
|
22
|
+
|
23
|
+
### Patch Changes
|
24
|
+
|
25
|
+
- Updated dependencies [c4df419]
|
26
|
+
- @ai-sdk/provider@2.0.0-alpha.10
|
27
|
+
- @ai-sdk/gateway@1.0.0-alpha.10
|
28
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.10
|
29
|
+
|
30
|
+
## 5.0.0-alpha.9
|
31
|
+
|
32
|
+
### Major Changes
|
33
|
+
|
34
|
+
- 9ae327d: chore (ui): replace chat store concept with chat instances
|
35
|
+
|
36
|
+
### Patch Changes
|
37
|
+
|
38
|
+
- 8255639: ### Fix use with Google APIs + zod v4's `.literal()` schema
|
39
|
+
|
40
|
+
Before [zod@3.25.49](https://github.com/colinhacks/zod/releases/tag/v3.25.49), requests to Google's APIs failed due to a missing `type` in the provided schema. The problem has been resolved for the `ai` SDK by bumping our `zod` peer dependencies to `^3.25.49`.
|
41
|
+
|
42
|
+
pull request: https://github.com/vercel/ai/pull/6609
|
43
|
+
|
44
|
+
- Updated dependencies [26b6dd0]
|
45
|
+
- Updated dependencies [811dff3]
|
46
|
+
- @ai-sdk/gateway@1.0.0-alpha.9
|
47
|
+
- @ai-sdk/provider@2.0.0-alpha.9
|
48
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.9
|
49
|
+
|
50
|
+
## 5.0.0-alpha.8
|
51
|
+
|
52
|
+
### Major Changes
|
53
|
+
|
54
|
+
- c25cbce: feat (ai): use console.error as default error handler for streamText and streamObject
|
55
|
+
|
56
|
+
### Patch Changes
|
57
|
+
|
58
|
+
- 4fef487: feat: support for zod v4 for schema validation
|
59
|
+
|
60
|
+
All these methods now accept both a zod v4 and zod v3 schemas for validation:
|
61
|
+
|
62
|
+
- `generateObject()`
|
63
|
+
- `streamObject()`
|
64
|
+
- `generateText()`
|
65
|
+
- `experimental_useObject()` from `@ai-sdk/react`
|
66
|
+
- `streamUI()` from `@ai-sdk/rsc`
|
67
|
+
|
68
|
+
- 6b1c55c: feat (ai): introduce GLOBAL_DEFAULT_PROVIDER
|
69
|
+
- 2e4f9e4: feat (ai): improved error messages when using gateway
|
70
|
+
- Updated dependencies [4fef487]
|
71
|
+
- Updated dependencies [9222aeb]
|
72
|
+
- Updated dependencies [3cbcbb7]
|
73
|
+
- Updated dependencies [989ac75]
|
74
|
+
- Updated dependencies [7742ba3]
|
75
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.8
|
76
|
+
- @ai-sdk/provider@2.0.0-alpha.8
|
77
|
+
- @ai-sdk/gateway@1.0.0-alpha.8
|
78
|
+
|
79
|
+
## 5.0.0-alpha.7
|
80
|
+
|
81
|
+
### Major Changes
|
82
|
+
|
83
|
+
- db345da: chore (ai): remove exports of internal ui functions
|
84
|
+
- 247ee0c: chore (ai): remove steps from tool invocation ui parts
|
85
|
+
|
86
|
+
### Patch Changes
|
87
|
+
|
88
|
+
- 9b0da33: fix (ai): do not send id with start unless specified
|
89
|
+
- Updated dependencies [5c56081]
|
90
|
+
- @ai-sdk/provider@2.0.0-alpha.7
|
91
|
+
- @ai-sdk/gateway@1.0.0-alpha.7
|
92
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.7
|
93
|
+
|
94
|
+
## 5.0.0-alpha.6
|
95
|
+
|
96
|
+
### Patch Changes
|
97
|
+
|
98
|
+
- 0d2c085: feat (ai): support string model ids through gateway
|
99
|
+
- 48a7606: feat (ai): support changing the system prompt in prepareSteps
|
100
|
+
- Updated dependencies [0d2c085]
|
101
|
+
- Updated dependencies [6c2c708]
|
102
|
+
- @ai-sdk/provider@2.0.0-alpha.6
|
103
|
+
- @ai-sdk/gateway@1.0.0-alpha.6
|
104
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.6
|
105
|
+
|
106
|
+
## 5.0.0-alpha.5
|
107
|
+
|
108
|
+
### Major Changes
|
109
|
+
|
110
|
+
- ef256ed: chore (ai): refactor and use chatstore in svelte
|
111
|
+
- 1ed0287: chore (ai): stable sendStart/sendFinish options
|
112
|
+
|
113
|
+
### Patch Changes
|
114
|
+
|
115
|
+
- 655cf3c: feat (ui): add onFinish to createUIMessageStream
|
116
|
+
- 1675396: fix: avoid job executor deadlock when adding tool result
|
117
|
+
- cf9af6e: feat (ai): allow sync prepareStep
|
118
|
+
- 825e8d7: release alpha.5
|
119
|
+
- 7324c21: fix (ai/telemetry): Avoid JSON.stringify on Uint8Arrays for telemetry
|
120
|
+
|
121
|
+
## 5.0.0-alpha.4
|
122
|
+
|
123
|
+
### Major Changes
|
124
|
+
|
125
|
+
- 72d7d72: chore (ai): stable activeTools
|
126
|
+
- 9315076: chore (ai): rename continueUntil to stopWhen. Rename maxSteps stop condition to stepCountIs.
|
127
|
+
|
128
|
+
### Patch Changes
|
129
|
+
|
130
|
+
- b32c141: feat (ai): add array support to stopWhen
|
131
|
+
- 7d97ab6: release alpha.4
|
132
|
+
- 37a916d: feat (ai): add prepareSteps to streamText
|
133
|
+
- 5f2b3d4: chore (ai): stable prepareStep
|
134
|
+
- Updated dependencies [dc714f3]
|
135
|
+
- @ai-sdk/provider@2.0.0-alpha.4
|
136
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.4
|
137
|
+
|
138
|
+
## 5.0.0-alpha.3
|
139
|
+
|
140
|
+
### Major Changes
|
141
|
+
|
142
|
+
- ab7ccef: chore (ai): change source ui message parts to source-url
|
143
|
+
- 257224b: chore (ai): separate TextStreamChatTransport
|
144
|
+
- 0463011: fix (ai): update source url stream part
|
145
|
+
- d306260: feat (ai): replace maxSteps with continueUntil (streamText)
|
146
|
+
|
147
|
+
### Patch Changes
|
148
|
+
|
149
|
+
- Updated dependencies [6b98118]
|
150
|
+
- @ai-sdk/provider@2.0.0-alpha.3
|
151
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.3
|
152
|
+
|
153
|
+
## 5.0.0-alpha.2
|
154
|
+
|
155
|
+
### Patch Changes
|
156
|
+
|
157
|
+
- 82aa95d: fix (ai): merge data ui stream parts correctly
|
158
|
+
- Updated dependencies [26535e0]
|
159
|
+
- @ai-sdk/provider@2.0.0-alpha.2
|
160
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.2
|
161
|
+
|
3
162
|
## 5.0.0-alpha.1
|
4
163
|
|
5
164
|
### Major Changes
|