@ai-sdk/alibaba 2.0.0-beta.9 → 2.0.0-canary.40

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 CHANGED
@@ -1,5 +1,303 @@
1
1
  # @ai-sdk/alibaba
2
2
 
3
+ ## 2.0.0-canary.40
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [cd9c311]
8
+ - @ai-sdk/openai-compatible@3.0.0-canary.38
9
+
10
+ ## 2.0.0-canary.39
11
+
12
+ ### Patch Changes
13
+
14
+ - 0c4c275: trigger initial canary release
15
+ - Updated dependencies [0c4c275]
16
+ - @ai-sdk/openai-compatible@3.0.0-canary.37
17
+ - @ai-sdk/provider-utils@5.0.0-canary.31
18
+ - @ai-sdk/provider@4.0.0-canary.15
19
+
20
+ ## 2.0.0-beta.38
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [e59c955]
25
+ - @ai-sdk/openai-compatible@3.0.0-beta.36
26
+
27
+ ## 2.0.0-beta.37
28
+
29
+ ### Major Changes
30
+
31
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
32
+
33
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [08d2129]
38
+ - Updated dependencies [04e9009]
39
+ - @ai-sdk/provider-utils@5.0.0-beta.30
40
+ - @ai-sdk/openai-compatible@3.0.0-beta.35
41
+
42
+ ## 2.0.0-beta.36
43
+
44
+ ### Patch Changes
45
+
46
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
47
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
48
+ - Updated dependencies [9bd6512]
49
+ - Updated dependencies [258c093]
50
+ - Updated dependencies [b6783da]
51
+ - @ai-sdk/openai-compatible@3.0.0-beta.34
52
+ - @ai-sdk/provider-utils@5.0.0-beta.29
53
+ - @ai-sdk/provider@4.0.0-beta.14
54
+
55
+ ## 2.0.0-beta.35
56
+
57
+ ### Patch Changes
58
+
59
+ - 9f0e36c: trigger release for all packages after provenance setup
60
+ - Updated dependencies [9f0e36c]
61
+ - @ai-sdk/openai-compatible@3.0.0-beta.33
62
+ - @ai-sdk/provider@4.0.0-beta.13
63
+ - @ai-sdk/provider-utils@5.0.0-beta.28
64
+
65
+ ## 2.0.0-beta.34
66
+
67
+ ### Patch Changes
68
+
69
+ - 58a2ad7: fix: more precise default message for tool execution denial
70
+ - Updated dependencies [ab81968]
71
+ - Updated dependencies [785fe16]
72
+ - Updated dependencies [67df0a0]
73
+ - Updated dependencies [befb78c]
74
+ - Updated dependencies [0458559]
75
+ - Updated dependencies [58a2ad7]
76
+ - Updated dependencies [5852c0a]
77
+ - Updated dependencies [fc92055]
78
+ - @ai-sdk/openai-compatible@3.0.0-beta.32
79
+ - @ai-sdk/provider-utils@5.0.0-beta.27
80
+
81
+ ## 2.0.0-beta.33
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [2e98477]
86
+ - Updated dependencies [bfb756d]
87
+ - @ai-sdk/provider-utils@5.0.0-beta.26
88
+ - @ai-sdk/openai-compatible@3.0.0-beta.31
89
+
90
+ ## 2.0.0-beta.32
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies [eea8d98]
95
+ - @ai-sdk/provider-utils@5.0.0-beta.25
96
+ - @ai-sdk/openai-compatible@3.0.0-beta.30
97
+
98
+ ## 2.0.0-beta.31
99
+
100
+ ### Patch Changes
101
+
102
+ - 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.
103
+ - Updated dependencies [f807e45]
104
+ - @ai-sdk/provider-utils@5.0.0-beta.24
105
+ - @ai-sdk/openai-compatible@3.0.0-beta.29
106
+
107
+ ## 2.0.0-beta.30
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies [350ea38]
112
+ - @ai-sdk/provider-utils@5.0.0-beta.23
113
+ - @ai-sdk/openai-compatible@3.0.0-beta.28
114
+
115
+ ## 2.0.0-beta.29
116
+
117
+ ### Patch Changes
118
+
119
+ - Updated dependencies [083947b]
120
+ - @ai-sdk/provider-utils@5.0.0-beta.22
121
+ - @ai-sdk/openai-compatible@3.0.0-beta.27
122
+
123
+ ## 2.0.0-beta.28
124
+
125
+ ### Patch Changes
126
+
127
+ - Updated dependencies [add1126]
128
+ - @ai-sdk/provider-utils@5.0.0-beta.21
129
+ - @ai-sdk/openai-compatible@3.0.0-beta.26
130
+
131
+ ## 2.0.0-beta.27
132
+
133
+ ### Patch Changes
134
+
135
+ - b3976a2: Add workflow serialization support to all provider models.
136
+
137
+ **`@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.
138
+
139
+ **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.
140
+
141
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
142
+
143
+ - Updated dependencies [b3976a2]
144
+ - Updated dependencies [ff5eba1]
145
+ - @ai-sdk/provider-utils@5.0.0-beta.20
146
+ - @ai-sdk/openai-compatible@3.0.0-beta.25
147
+ - @ai-sdk/provider@4.0.0-beta.12
148
+
149
+ ## 2.0.0-beta.26
150
+
151
+ ### Major Changes
152
+
153
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
154
+
155
+ ### Patch Changes
156
+
157
+ - Updated dependencies [ef992f8]
158
+ - @ai-sdk/openai-compatible@3.0.0-beta.24
159
+ - @ai-sdk/provider@4.0.0-beta.11
160
+ - @ai-sdk/provider-utils@5.0.0-beta.19
161
+
162
+ ## 2.0.0-beta.25
163
+
164
+ ### Patch Changes
165
+
166
+ - 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
167
+ - Updated dependencies [90e2d8a]
168
+ - @ai-sdk/openai-compatible@3.0.0-beta.23
169
+ - @ai-sdk/provider-utils@5.0.0-beta.18
170
+
171
+ ## 2.0.0-beta.24
172
+
173
+ ### Patch Changes
174
+
175
+ - Updated dependencies [3ae1786]
176
+ - @ai-sdk/provider-utils@5.0.0-beta.17
177
+ - @ai-sdk/openai-compatible@3.0.0-beta.22
178
+
179
+ ## 2.0.0-beta.23
180
+
181
+ ### Patch Changes
182
+
183
+ - Updated dependencies [176466a]
184
+ - @ai-sdk/provider@4.0.0-beta.10
185
+ - @ai-sdk/openai-compatible@3.0.0-beta.21
186
+ - @ai-sdk/provider-utils@5.0.0-beta.16
187
+
188
+ ## 2.0.0-beta.22
189
+
190
+ ### Patch Changes
191
+
192
+ - Updated dependencies [e311194]
193
+ - @ai-sdk/provider@4.0.0-beta.9
194
+ - @ai-sdk/openai-compatible@3.0.0-beta.20
195
+ - @ai-sdk/provider-utils@5.0.0-beta.15
196
+
197
+ ## 2.0.0-beta.21
198
+
199
+ ### Patch Changes
200
+
201
+ - Updated dependencies [34bd95d]
202
+ - Updated dependencies [008271d]
203
+ - @ai-sdk/provider@4.0.0-beta.8
204
+ - @ai-sdk/openai-compatible@3.0.0-beta.19
205
+ - @ai-sdk/provider-utils@5.0.0-beta.14
206
+
207
+ ## 2.0.0-beta.20
208
+
209
+ ### Patch Changes
210
+
211
+ - Updated dependencies [b0c2869]
212
+ - Updated dependencies [7e26e81]
213
+ - @ai-sdk/provider-utils@5.0.0-beta.13
214
+ - @ai-sdk/openai-compatible@3.0.0-beta.18
215
+
216
+ ## 2.0.0-beta.19
217
+
218
+ ### Patch Changes
219
+
220
+ - Updated dependencies [816ff67]
221
+ - @ai-sdk/openai-compatible@3.0.0-beta.17
222
+
223
+ ## 2.0.0-beta.18
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies [46d1149]
228
+ - @ai-sdk/provider-utils@5.0.0-beta.12
229
+ - @ai-sdk/openai-compatible@3.0.0-beta.16
230
+
231
+ ## 2.0.0-beta.17
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies [6fd51c0]
236
+ - @ai-sdk/provider-utils@5.0.0-beta.11
237
+ - @ai-sdk/provider@4.0.0-beta.7
238
+ - @ai-sdk/openai-compatible@3.0.0-beta.15
239
+
240
+ ## 2.0.0-beta.16
241
+
242
+ ### Patch Changes
243
+
244
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
245
+ - Updated dependencies [c29a26f]
246
+ - @ai-sdk/openai-compatible@3.0.0-beta.14
247
+ - @ai-sdk/provider-utils@5.0.0-beta.10
248
+ - @ai-sdk/provider@4.0.0-beta.6
249
+
250
+ ## 2.0.0-beta.15
251
+
252
+ ### Patch Changes
253
+
254
+ - 38fc777: Add AI Gateway hint to provider READMEs
255
+ - Updated dependencies [38fc777]
256
+ - @ai-sdk/openai-compatible@3.0.0-beta.13
257
+
258
+ ## 2.0.0-beta.14
259
+
260
+ ### Patch Changes
261
+
262
+ - Updated dependencies [2e17091]
263
+ - @ai-sdk/provider-utils@5.0.0-beta.9
264
+ - @ai-sdk/openai-compatible@3.0.0-beta.12
265
+
266
+ ## 2.0.0-beta.13
267
+
268
+ ### Patch Changes
269
+
270
+ - Updated dependencies [986c6fd]
271
+ - Updated dependencies [493295c]
272
+ - @ai-sdk/provider-utils@5.0.0-beta.8
273
+ - @ai-sdk/openai-compatible@3.0.0-beta.11
274
+
275
+ ## 2.0.0-beta.12
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies [1f509d4]
280
+ - @ai-sdk/provider-utils@5.0.0-beta.7
281
+ - @ai-sdk/provider@4.0.0-beta.5
282
+ - @ai-sdk/openai-compatible@3.0.0-beta.10
283
+
284
+ ## 2.0.0-beta.11
285
+
286
+ ### Patch Changes
287
+
288
+ - 74d520f: feat: migrate providers to support new top-level `reasoning` parameter
289
+ - Updated dependencies [74d520f]
290
+ - @ai-sdk/openai-compatible@3.0.0-beta.9
291
+
292
+ ## 2.0.0-beta.10
293
+
294
+ ### Patch Changes
295
+
296
+ - Updated dependencies [3887c70]
297
+ - @ai-sdk/provider-utils@5.0.0-beta.6
298
+ - @ai-sdk/provider@4.0.0-beta.4
299
+ - @ai-sdk/openai-compatible@3.0.0-beta.8
300
+
3
301
  ## 2.0.0-beta.9
4
302
 
5
303
  ### Patch Changes
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The **[Alibaba provider](https://ai-sdk.dev/providers/ai-sdk-providers/alibaba)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for [Alibaba Cloud Model Studio](https://modelstudio.console.alibabacloud.com/), including the Qwen model series with advanced reasoning capabilities.
4
4
 
5
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Alibaba (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
6
+
5
7
  ## Setup
6
8
 
7
9
  The Alibaba provider is available in the `@ai-sdk/alibaba` module. You can install it with
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { z } from 'zod/v4';
2
- import { FetchFunction } from '@ai-sdk/provider-utils';
3
2
  import { ProviderV4, LanguageModelV4, Experimental_VideoModelV4 } from '@ai-sdk/provider';
3
+ import { FetchFunction } from '@ai-sdk/provider-utils';
4
4
 
5
5
  type AlibabaChatModelId = 'qwen3-max' | 'qwen3-max-preview' | 'qwen-plus' | 'qwen-plus-latest' | 'qwen-flash' | 'qwen-turbo' | 'qwen-turbo-latest' | 'qwen3-235b-a22b' | 'qwen3-32b' | 'qwen3-30b-a3b' | 'qwen3-14b' | 'qwen3-next-80b-a3b-thinking' | 'qwen3-235b-a22b-thinking-2507' | 'qwen3-30b-a3b-thinking-2507' | 'qwq-plus' | 'qwq-plus-latest' | 'qwq-32b' | 'qwen-coder' | 'qwen3-coder-plus' | 'qwen3-coder-flash' | (string & {});
6
- declare const alibabaLanguageModelOptions: z.ZodObject<{
6
+ declare const alibabaLanguageModelChatOptions: z.ZodObject<{
7
7
  enableThinking: z.ZodOptional<z.ZodBoolean>;
8
8
  thinkingBudget: z.ZodOptional<z.ZodNumber>;
9
9
  parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
10
10
  }, z.core.$strip>;
11
- type AlibabaLanguageModelOptions = z.infer<typeof alibabaLanguageModelOptions>;
11
+ type AlibabaLanguageModelChatOptions = z.infer<typeof alibabaLanguageModelChatOptions>;
12
12
 
13
13
  type AlibabaCacheControl = {
14
14
  type: string;
@@ -116,4 +116,4 @@ type AlibabaUsage = {
116
116
 
117
117
  declare const VERSION: string;
118
118
 
119
- export { type AlibabaCacheControl, type AlibabaChatModelId, type AlibabaLanguageModelOptions, type AlibabaProvider, type AlibabaLanguageModelOptions as AlibabaProviderOptions, type AlibabaProviderSettings, type AlibabaUsage, type AlibabaVideoModelId, type AlibabaVideoModelOptions, type AlibabaVideoModelOptions as AlibabaVideoProviderOptions, VERSION, alibaba, createAlibaba };
119
+ export { type AlibabaCacheControl, type AlibabaChatModelId, type AlibabaLanguageModelChatOptions, type AlibabaLanguageModelChatOptions as AlibabaLanguageModelOptions, type AlibabaProvider, type AlibabaLanguageModelChatOptions as AlibabaProviderOptions, type AlibabaProviderSettings, type AlibabaUsage, type AlibabaVideoModelId, type AlibabaVideoModelOptions, type AlibabaVideoModelOptions as AlibabaVideoProviderOptions, VERSION, alibaba, createAlibaba };