@ai-sdk/alibaba 2.0.0-beta.8 → 2.0.0-canary.39

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