@ai-sdk/alibaba 0.0.0-6b196531-20260710185421
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 +775 -0
- package/LICENSE +13 -0
- package/README.md +151 -0
- package/dist/index.d.ts +171 -0
- package/dist/index.js +1380 -0
- package/dist/index.js.map +1 -0
- package/package.json +76 -0
- package/src/alibaba-chat-language-model-options.ts +56 -0
- package/src/alibaba-chat-language-model.ts +568 -0
- package/src/alibaba-chat-prompt.ts +67 -0
- package/src/alibaba-config.ts +9 -0
- package/src/alibaba-embedding-model-options.ts +33 -0
- package/src/alibaba-embedding-model.ts +178 -0
- package/src/alibaba-error.ts +17 -0
- package/src/alibaba-provider.ts +187 -0
- package/src/alibaba-video-model-options.ts +77 -0
- package/src/alibaba-video-model.ts +587 -0
- package/src/alibaba-video-settings.ts +16 -0
- package/src/convert-alibaba-usage.ts +37 -0
- package/src/convert-to-alibaba-chat-messages.ts +220 -0
- package/src/get-cache-control.ts +49 -0
- package/src/index.ts +27 -0
- package/src/version.ts +6 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,775 @@
|
|
|
1
|
+
# @ai-sdk/alibaba
|
|
2
|
+
|
|
3
|
+
## 0.0.0-6b196531-20260710185421
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [036463b]
|
|
8
|
+
- Updated dependencies [9988975]
|
|
9
|
+
- @ai-sdk/provider-utils@0.0.0-6b196531-20260710185421
|
|
10
|
+
- @ai-sdk/openai-compatible@0.0.0-6b196531-20260710185421
|
|
11
|
+
|
|
12
|
+
## 2.0.9
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 0f93c57: feat (video): support video (not just image) reference inputs in `inputReferences` for reference-to-video generation
|
|
17
|
+
- Updated dependencies [0f93c57]
|
|
18
|
+
- @ai-sdk/provider@4.0.3
|
|
19
|
+
- @ai-sdk/openai-compatible@3.0.7
|
|
20
|
+
- @ai-sdk/provider-utils@5.0.7
|
|
21
|
+
|
|
22
|
+
## 2.0.8
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- ac306ed: Fix `StreamingToolCallTracker` finalizing streaming tool calls on parsable partial JSON. Tool calls now only finalize during stream flush, restoring the behavior of #13137: a parsable argument buffer can still be the prefix of a longer argument string, so finalizing early could act on truncated tool inputs.
|
|
27
|
+
- Updated dependencies [ac306ed]
|
|
28
|
+
- @ai-sdk/provider-utils@5.0.6
|
|
29
|
+
- @ai-sdk/openai-compatible@3.0.6
|
|
30
|
+
|
|
31
|
+
## 2.0.7
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- 0c3c7e4: feat(alibaba): support wan2.7 text-to-video and reference-to-video models with the new protocol (`input.media`, `resolution` + `ratio`)
|
|
36
|
+
|
|
37
|
+
## 2.0.6
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- 5c5c0f5: Add experimental streaming transcription support for transcription models, including OpenAI `gpt-realtime-whisper` and xAI WebSocket STT.
|
|
42
|
+
- Updated dependencies [5c5c0f5]
|
|
43
|
+
- @ai-sdk/provider@4.0.2
|
|
44
|
+
- @ai-sdk/provider-utils@5.0.5
|
|
45
|
+
- @ai-sdk/openai-compatible@3.0.5
|
|
46
|
+
|
|
47
|
+
## 2.0.5
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [c6f5e62]
|
|
52
|
+
- @ai-sdk/provider-utils@5.0.4
|
|
53
|
+
- @ai-sdk/openai-compatible@3.0.4
|
|
54
|
+
|
|
55
|
+
## 2.0.4
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- Updated dependencies [8c616f0]
|
|
60
|
+
- @ai-sdk/provider-utils@5.0.3
|
|
61
|
+
- @ai-sdk/openai-compatible@3.0.3
|
|
62
|
+
|
|
63
|
+
## 2.0.3
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- 0274f34: feat (video): add first-class `frameImages` and `inputReferences` call options for video generation
|
|
68
|
+
- Updated dependencies [0274f34]
|
|
69
|
+
- @ai-sdk/provider@4.0.1
|
|
70
|
+
- @ai-sdk/openai-compatible@3.0.2
|
|
71
|
+
- @ai-sdk/provider-utils@5.0.2
|
|
72
|
+
|
|
73
|
+
## 2.0.2
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- Updated dependencies [6a436e3]
|
|
78
|
+
- @ai-sdk/provider-utils@5.0.1
|
|
79
|
+
- @ai-sdk/openai-compatible@3.0.1
|
|
80
|
+
|
|
81
|
+
## 2.0.1
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- ba6d510: chore: fix deprecated use of zod `.passthrough()`
|
|
86
|
+
|
|
87
|
+
## 2.0.0
|
|
88
|
+
|
|
89
|
+
### Major Changes
|
|
90
|
+
|
|
91
|
+
- ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
|
|
92
|
+
- c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
|
|
93
|
+
- 8359612: Start v7 pre-release
|
|
94
|
+
- 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
|
|
95
|
+
|
|
96
|
+
For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
|
|
97
|
+
|
|
98
|
+
### Patch Changes
|
|
99
|
+
|
|
100
|
+
- 94c6edc: Add `qwen3.7-max` model ID to Alibaba and AI Gateway.
|
|
101
|
+
- 38fc777: Add AI Gateway hint to provider READMEs
|
|
102
|
+
- 74d520f: feat: migrate providers to support new top-level `reasoning` parameter
|
|
103
|
+
- 45b3d76: fix(security): prevent streaming tool calls from finalizing on parsable partial JSON
|
|
104
|
+
|
|
105
|
+
Streaming tool call arguments were finalized using `isParsableJson()` as a heuristic for completion. If partial accumulated JSON happened to be valid JSON before all chunks arrived, the tool call would be executed with incomplete arguments. Tool call finalization now only occurs in `flush()` after the stream is fully consumed.
|
|
106
|
+
|
|
107
|
+
- 811cd8e: fix(provider/alibaba): handle single-item content array cache control
|
|
108
|
+
- 9f0e36c: trigger release for all packages after provenance setup
|
|
109
|
+
- 58a2ad7: fix: more precise default message for tool execution denial
|
|
110
|
+
- f7295cb: revert incorrect fix https://github.com/vercel/ai/pull/13172
|
|
111
|
+
- 4ab27b9: chore(alibaba): update v3 specs to v4
|
|
112
|
+
- 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
|
|
113
|
+
- f807e45: Extract shared `StreamingToolCallTracker` class into `@ai-sdk/provider-utils` to deduplicate streaming tool call handling across OpenAI-compatible providers. Also adds missing `generateId()` fallback for `toolCallId` in Alibaba's `doGenerate` path and ensures all providers finalize unfinished tool calls during stream flush.
|
|
114
|
+
- 0c4c275: trigger initial canary release
|
|
115
|
+
- 616bb31: feat(aliababa): add embedding model support
|
|
116
|
+
- 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
|
|
117
|
+
- 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
|
|
118
|
+
- b8396f0: trigger initial beta release
|
|
119
|
+
- 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
|
|
120
|
+
- 0416e3e: feat (video): add first-class `generateAudio` call option
|
|
121
|
+
- b3976a2: Add workflow serialization support to all provider models.
|
|
122
|
+
|
|
123
|
+
**`@ai-sdk/provider-utils`:** New `serializeModel()` helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.
|
|
124
|
+
|
|
125
|
+
**All providers:** `headers` is now optional in provider config types. This is non-breaking — existing code that passes `headers` continues to work. Custom provider implementations that construct model configs manually can now omit `headers`, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.
|
|
126
|
+
|
|
127
|
+
All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
|
|
128
|
+
|
|
129
|
+
## 2.0.0-beta.61
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- 0416e3e: feat (video): add first-class `generateAudio` call option
|
|
134
|
+
- Updated dependencies [0416e3e]
|
|
135
|
+
- @ai-sdk/provider@4.0.0-beta.20
|
|
136
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.58
|
|
137
|
+
- @ai-sdk/provider-utils@5.0.0-beta.50
|
|
138
|
+
|
|
139
|
+
## 2.0.0-beta.60
|
|
140
|
+
|
|
141
|
+
### Patch Changes
|
|
142
|
+
|
|
143
|
+
- b8396f0: trigger initial beta release
|
|
144
|
+
- Updated dependencies [b8396f0]
|
|
145
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.57
|
|
146
|
+
- @ai-sdk/provider-utils@5.0.0-beta.49
|
|
147
|
+
- @ai-sdk/provider@4.0.0-beta.19
|
|
148
|
+
|
|
149
|
+
## 2.0.0-canary.59
|
|
150
|
+
|
|
151
|
+
### Patch Changes
|
|
152
|
+
|
|
153
|
+
- Updated dependencies [aeda373]
|
|
154
|
+
- Updated dependencies [375fdd7]
|
|
155
|
+
- Updated dependencies [b4507d5]
|
|
156
|
+
- @ai-sdk/provider-utils@5.0.0-canary.48
|
|
157
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.56
|
|
158
|
+
|
|
159
|
+
## 2.0.0-canary.58
|
|
160
|
+
|
|
161
|
+
### Patch Changes
|
|
162
|
+
|
|
163
|
+
- Updated dependencies [bae5e2b]
|
|
164
|
+
- @ai-sdk/provider-utils@5.0.0-canary.47
|
|
165
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.55
|
|
166
|
+
|
|
167
|
+
## 2.0.0-canary.57
|
|
168
|
+
|
|
169
|
+
### Patch Changes
|
|
170
|
+
|
|
171
|
+
- Updated dependencies [ce769dd]
|
|
172
|
+
- @ai-sdk/provider@4.0.0-canary.18
|
|
173
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.54
|
|
174
|
+
- @ai-sdk/provider-utils@5.0.0-canary.46
|
|
175
|
+
|
|
176
|
+
## 2.0.0-canary.56
|
|
177
|
+
|
|
178
|
+
### Patch Changes
|
|
179
|
+
|
|
180
|
+
- 616bb31: feat(aliababa): add embedding model support
|
|
181
|
+
- Updated dependencies [ee798eb]
|
|
182
|
+
- Updated dependencies [daf6637]
|
|
183
|
+
- @ai-sdk/provider-utils@5.0.0-canary.45
|
|
184
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.53
|
|
185
|
+
|
|
186
|
+
## 2.0.0-canary.55
|
|
187
|
+
|
|
188
|
+
### Patch Changes
|
|
189
|
+
|
|
190
|
+
- Updated dependencies [6c93e36]
|
|
191
|
+
- Updated dependencies [f617ac2]
|
|
192
|
+
- @ai-sdk/provider-utils@5.0.0-canary.44
|
|
193
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.52
|
|
194
|
+
|
|
195
|
+
## 2.0.0-canary.54
|
|
196
|
+
|
|
197
|
+
### Patch Changes
|
|
198
|
+
|
|
199
|
+
- Updated dependencies [9f1e1ba]
|
|
200
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.51
|
|
201
|
+
|
|
202
|
+
## 2.0.0-canary.53
|
|
203
|
+
|
|
204
|
+
### Patch Changes
|
|
205
|
+
|
|
206
|
+
- 94c6edc: Add `qwen3.7-max` model ID to Alibaba and AI Gateway.
|
|
207
|
+
|
|
208
|
+
## 2.0.0-canary.52
|
|
209
|
+
|
|
210
|
+
### Patch Changes
|
|
211
|
+
|
|
212
|
+
- 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
|
|
213
|
+
- Updated dependencies [7fc6bd6]
|
|
214
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.50
|
|
215
|
+
- @ai-sdk/provider-utils@5.0.0-canary.43
|
|
216
|
+
- @ai-sdk/provider@4.0.0-canary.17
|
|
217
|
+
|
|
218
|
+
## 2.0.0-canary.51
|
|
219
|
+
|
|
220
|
+
### Patch Changes
|
|
221
|
+
|
|
222
|
+
- Updated dependencies [a6617c5]
|
|
223
|
+
- @ai-sdk/provider-utils@5.0.0-canary.42
|
|
224
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.49
|
|
225
|
+
|
|
226
|
+
## 2.0.0-canary.50
|
|
227
|
+
|
|
228
|
+
### Patch Changes
|
|
229
|
+
|
|
230
|
+
- Updated dependencies [28dfa06]
|
|
231
|
+
- Updated dependencies [e93fa91]
|
|
232
|
+
- @ai-sdk/provider-utils@5.0.0-canary.41
|
|
233
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.48
|
|
234
|
+
|
|
235
|
+
## 2.0.0-canary.49
|
|
236
|
+
|
|
237
|
+
### Patch Changes
|
|
238
|
+
|
|
239
|
+
- Updated dependencies [a7de9c9]
|
|
240
|
+
- @ai-sdk/provider-utils@5.0.0-canary.40
|
|
241
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.47
|
|
242
|
+
|
|
243
|
+
## 2.0.0-canary.48
|
|
244
|
+
|
|
245
|
+
### Patch Changes
|
|
246
|
+
|
|
247
|
+
- Updated dependencies [105f95b]
|
|
248
|
+
- @ai-sdk/provider-utils@5.0.0-canary.39
|
|
249
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.46
|
|
250
|
+
|
|
251
|
+
## 2.0.0-canary.47
|
|
252
|
+
|
|
253
|
+
### Patch Changes
|
|
254
|
+
|
|
255
|
+
- Updated dependencies [ca446f8]
|
|
256
|
+
- @ai-sdk/provider-utils@5.0.0-canary.38
|
|
257
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.45
|
|
258
|
+
|
|
259
|
+
## 2.0.0-canary.46
|
|
260
|
+
|
|
261
|
+
### Patch Changes
|
|
262
|
+
|
|
263
|
+
- Updated dependencies [d848405]
|
|
264
|
+
- @ai-sdk/provider-utils@5.0.0-canary.37
|
|
265
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.44
|
|
266
|
+
|
|
267
|
+
## 2.0.0-canary.45
|
|
268
|
+
|
|
269
|
+
### Patch Changes
|
|
270
|
+
|
|
271
|
+
- Updated dependencies [ca39020]
|
|
272
|
+
- @ai-sdk/provider-utils@5.0.0-canary.36
|
|
273
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.43
|
|
274
|
+
|
|
275
|
+
## 2.0.0-canary.44
|
|
276
|
+
|
|
277
|
+
### Patch Changes
|
|
278
|
+
|
|
279
|
+
- Updated dependencies [f634bac]
|
|
280
|
+
- @ai-sdk/provider-utils@5.0.0-canary.35
|
|
281
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.42
|
|
282
|
+
|
|
283
|
+
## 2.0.0-canary.43
|
|
284
|
+
|
|
285
|
+
### Patch Changes
|
|
286
|
+
|
|
287
|
+
- Updated dependencies [69254e0]
|
|
288
|
+
- Updated dependencies [3015fc3]
|
|
289
|
+
- @ai-sdk/provider-utils@5.0.0-canary.34
|
|
290
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.41
|
|
291
|
+
|
|
292
|
+
## 2.0.0-canary.42
|
|
293
|
+
|
|
294
|
+
### Patch Changes
|
|
295
|
+
|
|
296
|
+
- Updated dependencies [2427d88]
|
|
297
|
+
- @ai-sdk/provider-utils@5.0.0-canary.33
|
|
298
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.40
|
|
299
|
+
|
|
300
|
+
## 2.0.0-canary.41
|
|
301
|
+
|
|
302
|
+
### Patch Changes
|
|
303
|
+
|
|
304
|
+
- Updated dependencies [5463d0d]
|
|
305
|
+
- @ai-sdk/provider-utils@5.0.0-canary.32
|
|
306
|
+
- @ai-sdk/provider@4.0.0-canary.16
|
|
307
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.39
|
|
308
|
+
|
|
309
|
+
## 2.0.0-canary.40
|
|
310
|
+
|
|
311
|
+
### Patch Changes
|
|
312
|
+
|
|
313
|
+
- Updated dependencies [cd9c311]
|
|
314
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.38
|
|
315
|
+
|
|
316
|
+
## 2.0.0-canary.39
|
|
317
|
+
|
|
318
|
+
### Patch Changes
|
|
319
|
+
|
|
320
|
+
- 0c4c275: trigger initial canary release
|
|
321
|
+
- Updated dependencies [0c4c275]
|
|
322
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.37
|
|
323
|
+
- @ai-sdk/provider-utils@5.0.0-canary.31
|
|
324
|
+
- @ai-sdk/provider@4.0.0-canary.15
|
|
325
|
+
|
|
326
|
+
## 2.0.0-beta.38
|
|
327
|
+
|
|
328
|
+
### Patch Changes
|
|
329
|
+
|
|
330
|
+
- Updated dependencies [e59c955]
|
|
331
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.36
|
|
332
|
+
|
|
333
|
+
## 2.0.0-beta.37
|
|
334
|
+
|
|
335
|
+
### Major Changes
|
|
336
|
+
|
|
337
|
+
- 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
|
|
338
|
+
|
|
339
|
+
For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
|
|
340
|
+
|
|
341
|
+
### Patch Changes
|
|
342
|
+
|
|
343
|
+
- Updated dependencies [08d2129]
|
|
344
|
+
- Updated dependencies [04e9009]
|
|
345
|
+
- @ai-sdk/provider-utils@5.0.0-beta.30
|
|
346
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.35
|
|
347
|
+
|
|
348
|
+
## 2.0.0-beta.36
|
|
349
|
+
|
|
350
|
+
### Patch Changes
|
|
351
|
+
|
|
352
|
+
- 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
|
|
353
|
+
- 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
|
|
354
|
+
- Updated dependencies [9bd6512]
|
|
355
|
+
- Updated dependencies [258c093]
|
|
356
|
+
- Updated dependencies [b6783da]
|
|
357
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.34
|
|
358
|
+
- @ai-sdk/provider-utils@5.0.0-beta.29
|
|
359
|
+
- @ai-sdk/provider@4.0.0-beta.14
|
|
360
|
+
|
|
361
|
+
## 2.0.0-beta.35
|
|
362
|
+
|
|
363
|
+
### Patch Changes
|
|
364
|
+
|
|
365
|
+
- 9f0e36c: trigger release for all packages after provenance setup
|
|
366
|
+
- Updated dependencies [9f0e36c]
|
|
367
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.33
|
|
368
|
+
- @ai-sdk/provider@4.0.0-beta.13
|
|
369
|
+
- @ai-sdk/provider-utils@5.0.0-beta.28
|
|
370
|
+
|
|
371
|
+
## 2.0.0-beta.34
|
|
372
|
+
|
|
373
|
+
### Patch Changes
|
|
374
|
+
|
|
375
|
+
- 58a2ad7: fix: more precise default message for tool execution denial
|
|
376
|
+
- Updated dependencies [ab81968]
|
|
377
|
+
- Updated dependencies [785fe16]
|
|
378
|
+
- Updated dependencies [67df0a0]
|
|
379
|
+
- Updated dependencies [befb78c]
|
|
380
|
+
- Updated dependencies [0458559]
|
|
381
|
+
- Updated dependencies [58a2ad7]
|
|
382
|
+
- Updated dependencies [5852c0a]
|
|
383
|
+
- Updated dependencies [fc92055]
|
|
384
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.32
|
|
385
|
+
- @ai-sdk/provider-utils@5.0.0-beta.27
|
|
386
|
+
|
|
387
|
+
## 2.0.0-beta.33
|
|
388
|
+
|
|
389
|
+
### Patch Changes
|
|
390
|
+
|
|
391
|
+
- Updated dependencies [2e98477]
|
|
392
|
+
- Updated dependencies [bfb756d]
|
|
393
|
+
- @ai-sdk/provider-utils@5.0.0-beta.26
|
|
394
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.31
|
|
395
|
+
|
|
396
|
+
## 2.0.0-beta.32
|
|
397
|
+
|
|
398
|
+
### Patch Changes
|
|
399
|
+
|
|
400
|
+
- Updated dependencies [eea8d98]
|
|
401
|
+
- @ai-sdk/provider-utils@5.0.0-beta.25
|
|
402
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.30
|
|
403
|
+
|
|
404
|
+
## 2.0.0-beta.31
|
|
405
|
+
|
|
406
|
+
### Patch Changes
|
|
407
|
+
|
|
408
|
+
- f807e45: Extract shared `StreamingToolCallTracker` class into `@ai-sdk/provider-utils` to deduplicate streaming tool call handling across OpenAI-compatible providers. Also adds missing `generateId()` fallback for `toolCallId` in Alibaba's `doGenerate` path and ensures all providers finalize unfinished tool calls during stream flush.
|
|
409
|
+
- Updated dependencies [f807e45]
|
|
410
|
+
- @ai-sdk/provider-utils@5.0.0-beta.24
|
|
411
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.29
|
|
412
|
+
|
|
413
|
+
## 2.0.0-beta.30
|
|
414
|
+
|
|
415
|
+
### Patch Changes
|
|
416
|
+
|
|
417
|
+
- Updated dependencies [350ea38]
|
|
418
|
+
- @ai-sdk/provider-utils@5.0.0-beta.23
|
|
419
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.28
|
|
420
|
+
|
|
421
|
+
## 2.0.0-beta.29
|
|
422
|
+
|
|
423
|
+
### Patch Changes
|
|
424
|
+
|
|
425
|
+
- Updated dependencies [083947b]
|
|
426
|
+
- @ai-sdk/provider-utils@5.0.0-beta.22
|
|
427
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.27
|
|
428
|
+
|
|
429
|
+
## 2.0.0-beta.28
|
|
430
|
+
|
|
431
|
+
### Patch Changes
|
|
432
|
+
|
|
433
|
+
- Updated dependencies [add1126]
|
|
434
|
+
- @ai-sdk/provider-utils@5.0.0-beta.21
|
|
435
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.26
|
|
436
|
+
|
|
437
|
+
## 2.0.0-beta.27
|
|
438
|
+
|
|
439
|
+
### Patch Changes
|
|
440
|
+
|
|
441
|
+
- b3976a2: Add workflow serialization support to all provider models.
|
|
442
|
+
|
|
443
|
+
**`@ai-sdk/provider-utils`:** New `serializeModel()` helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.
|
|
444
|
+
|
|
445
|
+
**All providers:** `headers` is now optional in provider config types. This is non-breaking — existing code that passes `headers` continues to work. Custom provider implementations that construct model configs manually can now omit `headers`, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.
|
|
446
|
+
|
|
447
|
+
All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
|
|
448
|
+
|
|
449
|
+
- Updated dependencies [b3976a2]
|
|
450
|
+
- Updated dependencies [ff5eba1]
|
|
451
|
+
- @ai-sdk/provider-utils@5.0.0-beta.20
|
|
452
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.25
|
|
453
|
+
- @ai-sdk/provider@4.0.0-beta.12
|
|
454
|
+
|
|
455
|
+
## 2.0.0-beta.26
|
|
456
|
+
|
|
457
|
+
### Major Changes
|
|
458
|
+
|
|
459
|
+
- ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
|
|
460
|
+
|
|
461
|
+
### Patch Changes
|
|
462
|
+
|
|
463
|
+
- Updated dependencies [ef992f8]
|
|
464
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.24
|
|
465
|
+
- @ai-sdk/provider@4.0.0-beta.11
|
|
466
|
+
- @ai-sdk/provider-utils@5.0.0-beta.19
|
|
467
|
+
|
|
468
|
+
## 2.0.0-beta.25
|
|
469
|
+
|
|
470
|
+
### Patch Changes
|
|
471
|
+
|
|
472
|
+
- 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
|
|
473
|
+
- Updated dependencies [90e2d8a]
|
|
474
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.23
|
|
475
|
+
- @ai-sdk/provider-utils@5.0.0-beta.18
|
|
476
|
+
|
|
477
|
+
## 2.0.0-beta.24
|
|
478
|
+
|
|
479
|
+
### Patch Changes
|
|
480
|
+
|
|
481
|
+
- Updated dependencies [3ae1786]
|
|
482
|
+
- @ai-sdk/provider-utils@5.0.0-beta.17
|
|
483
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.22
|
|
484
|
+
|
|
485
|
+
## 2.0.0-beta.23
|
|
486
|
+
|
|
487
|
+
### Patch Changes
|
|
488
|
+
|
|
489
|
+
- Updated dependencies [176466a]
|
|
490
|
+
- @ai-sdk/provider@4.0.0-beta.10
|
|
491
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.21
|
|
492
|
+
- @ai-sdk/provider-utils@5.0.0-beta.16
|
|
493
|
+
|
|
494
|
+
## 2.0.0-beta.22
|
|
495
|
+
|
|
496
|
+
### Patch Changes
|
|
497
|
+
|
|
498
|
+
- Updated dependencies [e311194]
|
|
499
|
+
- @ai-sdk/provider@4.0.0-beta.9
|
|
500
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.20
|
|
501
|
+
- @ai-sdk/provider-utils@5.0.0-beta.15
|
|
502
|
+
|
|
503
|
+
## 2.0.0-beta.21
|
|
504
|
+
|
|
505
|
+
### Patch Changes
|
|
506
|
+
|
|
507
|
+
- Updated dependencies [34bd95d]
|
|
508
|
+
- Updated dependencies [008271d]
|
|
509
|
+
- @ai-sdk/provider@4.0.0-beta.8
|
|
510
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.19
|
|
511
|
+
- @ai-sdk/provider-utils@5.0.0-beta.14
|
|
512
|
+
|
|
513
|
+
## 2.0.0-beta.20
|
|
514
|
+
|
|
515
|
+
### Patch Changes
|
|
516
|
+
|
|
517
|
+
- Updated dependencies [b0c2869]
|
|
518
|
+
- Updated dependencies [7e26e81]
|
|
519
|
+
- @ai-sdk/provider-utils@5.0.0-beta.13
|
|
520
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.18
|
|
521
|
+
|
|
522
|
+
## 2.0.0-beta.19
|
|
523
|
+
|
|
524
|
+
### Patch Changes
|
|
525
|
+
|
|
526
|
+
- Updated dependencies [816ff67]
|
|
527
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.17
|
|
528
|
+
|
|
529
|
+
## 2.0.0-beta.18
|
|
530
|
+
|
|
531
|
+
### Patch Changes
|
|
532
|
+
|
|
533
|
+
- Updated dependencies [46d1149]
|
|
534
|
+
- @ai-sdk/provider-utils@5.0.0-beta.12
|
|
535
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.16
|
|
536
|
+
|
|
537
|
+
## 2.0.0-beta.17
|
|
538
|
+
|
|
539
|
+
### Patch Changes
|
|
540
|
+
|
|
541
|
+
- Updated dependencies [6fd51c0]
|
|
542
|
+
- @ai-sdk/provider-utils@5.0.0-beta.11
|
|
543
|
+
- @ai-sdk/provider@4.0.0-beta.7
|
|
544
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.15
|
|
545
|
+
|
|
546
|
+
## 2.0.0-beta.16
|
|
547
|
+
|
|
548
|
+
### Patch Changes
|
|
549
|
+
|
|
550
|
+
- c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
|
|
551
|
+
- Updated dependencies [c29a26f]
|
|
552
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.14
|
|
553
|
+
- @ai-sdk/provider-utils@5.0.0-beta.10
|
|
554
|
+
- @ai-sdk/provider@4.0.0-beta.6
|
|
555
|
+
|
|
556
|
+
## 2.0.0-beta.15
|
|
557
|
+
|
|
558
|
+
### Patch Changes
|
|
559
|
+
|
|
560
|
+
- 38fc777: Add AI Gateway hint to provider READMEs
|
|
561
|
+
- Updated dependencies [38fc777]
|
|
562
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.13
|
|
563
|
+
|
|
564
|
+
## 2.0.0-beta.14
|
|
565
|
+
|
|
566
|
+
### Patch Changes
|
|
567
|
+
|
|
568
|
+
- Updated dependencies [2e17091]
|
|
569
|
+
- @ai-sdk/provider-utils@5.0.0-beta.9
|
|
570
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.12
|
|
571
|
+
|
|
572
|
+
## 2.0.0-beta.13
|
|
573
|
+
|
|
574
|
+
### Patch Changes
|
|
575
|
+
|
|
576
|
+
- Updated dependencies [986c6fd]
|
|
577
|
+
- Updated dependencies [493295c]
|
|
578
|
+
- @ai-sdk/provider-utils@5.0.0-beta.8
|
|
579
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.11
|
|
580
|
+
|
|
581
|
+
## 2.0.0-beta.12
|
|
582
|
+
|
|
583
|
+
### Patch Changes
|
|
584
|
+
|
|
585
|
+
- Updated dependencies [1f509d4]
|
|
586
|
+
- @ai-sdk/provider-utils@5.0.0-beta.7
|
|
587
|
+
- @ai-sdk/provider@4.0.0-beta.5
|
|
588
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.10
|
|
589
|
+
|
|
590
|
+
## 2.0.0-beta.11
|
|
591
|
+
|
|
592
|
+
### Patch Changes
|
|
593
|
+
|
|
594
|
+
- 74d520f: feat: migrate providers to support new top-level `reasoning` parameter
|
|
595
|
+
- Updated dependencies [74d520f]
|
|
596
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.9
|
|
597
|
+
|
|
598
|
+
## 2.0.0-beta.10
|
|
599
|
+
|
|
600
|
+
### Patch Changes
|
|
601
|
+
|
|
602
|
+
- Updated dependencies [3887c70]
|
|
603
|
+
- @ai-sdk/provider-utils@5.0.0-beta.6
|
|
604
|
+
- @ai-sdk/provider@4.0.0-beta.4
|
|
605
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.8
|
|
606
|
+
|
|
607
|
+
## 2.0.0-beta.9
|
|
608
|
+
|
|
609
|
+
### Patch Changes
|
|
610
|
+
|
|
611
|
+
- Updated dependencies [776b617]
|
|
612
|
+
- @ai-sdk/provider-utils@5.0.0-beta.5
|
|
613
|
+
- @ai-sdk/provider@4.0.0-beta.3
|
|
614
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.7
|
|
615
|
+
|
|
616
|
+
## 2.0.0-beta.8
|
|
617
|
+
|
|
618
|
+
### Patch Changes
|
|
619
|
+
|
|
620
|
+
- Updated dependencies [61753c3]
|
|
621
|
+
- @ai-sdk/provider-utils@5.0.0-beta.4
|
|
622
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.6
|
|
623
|
+
|
|
624
|
+
## 2.0.0-beta.7
|
|
625
|
+
|
|
626
|
+
### Patch Changes
|
|
627
|
+
|
|
628
|
+
- 811cd8e: fix(provider/alibaba): handle single-item content array cache control
|
|
629
|
+
|
|
630
|
+
## 2.0.0-beta.6
|
|
631
|
+
|
|
632
|
+
### Patch Changes
|
|
633
|
+
|
|
634
|
+
- Updated dependencies [f7d4f01]
|
|
635
|
+
- @ai-sdk/provider-utils@5.0.0-beta.3
|
|
636
|
+
- @ai-sdk/provider@4.0.0-beta.2
|
|
637
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.5
|
|
638
|
+
|
|
639
|
+
## 2.0.0-beta.5
|
|
640
|
+
|
|
641
|
+
### Patch Changes
|
|
642
|
+
|
|
643
|
+
- Updated dependencies [5c2a5a2]
|
|
644
|
+
- @ai-sdk/provider@4.0.0-beta.1
|
|
645
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.4
|
|
646
|
+
- @ai-sdk/provider-utils@5.0.0-beta.2
|
|
647
|
+
|
|
648
|
+
## 2.0.0-beta.4
|
|
649
|
+
|
|
650
|
+
### Patch Changes
|
|
651
|
+
|
|
652
|
+
- Updated dependencies [8f3e1da]
|
|
653
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.3
|
|
654
|
+
|
|
655
|
+
## 2.0.0-beta.3
|
|
656
|
+
|
|
657
|
+
### Patch Changes
|
|
658
|
+
|
|
659
|
+
- 4ab27b9: chore(alibaba): update v3 specs to v4
|
|
660
|
+
|
|
661
|
+
## 2.0.0-beta.2
|
|
662
|
+
|
|
663
|
+
### Patch Changes
|
|
664
|
+
|
|
665
|
+
- 45b3d76: fix(security): prevent streaming tool calls from finalizing on parsable partial JSON
|
|
666
|
+
|
|
667
|
+
Streaming tool call arguments were finalized using `isParsableJson()` as a heuristic for completion. If partial accumulated JSON happened to be valid JSON before all chunks arrived, the tool call would be executed with incomplete arguments. Tool call finalization now only occurs in `flush()` after the stream is fully consumed.
|
|
668
|
+
|
|
669
|
+
- f7295cb: revert incorrect fix https://github.com/vercel/ai/pull/13172
|
|
670
|
+
- Updated dependencies [45b3d76]
|
|
671
|
+
- Updated dependencies [f7295cb]
|
|
672
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.2
|
|
673
|
+
|
|
674
|
+
## 2.0.0-beta.1
|
|
675
|
+
|
|
676
|
+
### Patch Changes
|
|
677
|
+
|
|
678
|
+
- Updated dependencies [531251e]
|
|
679
|
+
- @ai-sdk/provider-utils@5.0.0-beta.1
|
|
680
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.1
|
|
681
|
+
|
|
682
|
+
## 2.0.0-beta.0
|
|
683
|
+
|
|
684
|
+
### Major Changes
|
|
685
|
+
|
|
686
|
+
- 8359612: Start v7 pre-release
|
|
687
|
+
|
|
688
|
+
### Patch Changes
|
|
689
|
+
|
|
690
|
+
- Updated dependencies [8359612]
|
|
691
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.0
|
|
692
|
+
- @ai-sdk/provider@4.0.0-beta.0
|
|
693
|
+
- @ai-sdk/provider-utils@5.0.0-beta.0
|
|
694
|
+
|
|
695
|
+
## 1.0.10
|
|
696
|
+
|
|
697
|
+
### Patch Changes
|
|
698
|
+
|
|
699
|
+
- Updated dependencies [ad4cfc2]
|
|
700
|
+
- @ai-sdk/provider-utils@4.0.19
|
|
701
|
+
- @ai-sdk/openai-compatible@2.0.35
|
|
702
|
+
|
|
703
|
+
## 1.0.9
|
|
704
|
+
|
|
705
|
+
### Patch Changes
|
|
706
|
+
|
|
707
|
+
- Updated dependencies [824b295]
|
|
708
|
+
- @ai-sdk/provider-utils@4.0.18
|
|
709
|
+
- @ai-sdk/openai-compatible@2.0.34
|
|
710
|
+
|
|
711
|
+
## 1.0.8
|
|
712
|
+
|
|
713
|
+
### Patch Changes
|
|
714
|
+
|
|
715
|
+
- Updated dependencies [89caf28]
|
|
716
|
+
- @ai-sdk/openai-compatible@2.0.33
|
|
717
|
+
|
|
718
|
+
## 1.0.7
|
|
719
|
+
|
|
720
|
+
### Patch Changes
|
|
721
|
+
|
|
722
|
+
- Updated dependencies [08336f1]
|
|
723
|
+
- @ai-sdk/provider-utils@4.0.17
|
|
724
|
+
- @ai-sdk/openai-compatible@2.0.32
|
|
725
|
+
|
|
726
|
+
## 1.0.6
|
|
727
|
+
|
|
728
|
+
### Patch Changes
|
|
729
|
+
|
|
730
|
+
- Updated dependencies [58bc42d]
|
|
731
|
+
- @ai-sdk/provider-utils@4.0.16
|
|
732
|
+
- @ai-sdk/openai-compatible@2.0.31
|
|
733
|
+
|
|
734
|
+
## 1.0.5
|
|
735
|
+
|
|
736
|
+
### Patch Changes
|
|
737
|
+
|
|
738
|
+
- 6fe0630: fix(provider/alibaba): fix cache control for non-system messages
|
|
739
|
+
|
|
740
|
+
## 1.0.4
|
|
741
|
+
|
|
742
|
+
### Patch Changes
|
|
743
|
+
|
|
744
|
+
- Updated dependencies [4024a3a]
|
|
745
|
+
- @ai-sdk/provider-utils@4.0.15
|
|
746
|
+
- @ai-sdk/openai-compatible@2.0.30
|
|
747
|
+
|
|
748
|
+
## 1.0.3
|
|
749
|
+
|
|
750
|
+
### Patch Changes
|
|
751
|
+
|
|
752
|
+
- 99fbed8: feat: normalize provider specific model options type names and ensure they are exported
|
|
753
|
+
- Updated dependencies [99fbed8]
|
|
754
|
+
- @ai-sdk/openai-compatible@2.0.29
|
|
755
|
+
|
|
756
|
+
## 1.0.2
|
|
757
|
+
|
|
758
|
+
### Patch Changes
|
|
759
|
+
|
|
760
|
+
- 4d8c6b9: feat (provider/alibaba): add video generation support
|
|
761
|
+
|
|
762
|
+
## 1.0.1
|
|
763
|
+
|
|
764
|
+
### Patch Changes
|
|
765
|
+
|
|
766
|
+
- Updated dependencies [7168375]
|
|
767
|
+
- @ai-sdk/provider@3.0.8
|
|
768
|
+
- @ai-sdk/openai-compatible@2.0.28
|
|
769
|
+
- @ai-sdk/provider-utils@4.0.14
|
|
770
|
+
|
|
771
|
+
## 1.0.0
|
|
772
|
+
|
|
773
|
+
### Major Changes
|
|
774
|
+
|
|
775
|
+
- aa924c7: feat(provider/alibaba): initial alibaba provider
|