@ai-sdk/deepinfra 3.0.0-beta.5 → 3.0.0-beta.57

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,478 @@
1
1
  # @ai-sdk/deepinfra
2
2
 
3
+ ## 3.0.0-beta.57
4
+
5
+ ### Patch Changes
6
+
7
+ - b8396f0: trigger initial beta release
8
+ - Updated dependencies [b8396f0]
9
+ - @ai-sdk/openai-compatible@3.0.0-beta.57
10
+ - @ai-sdk/provider-utils@5.0.0-beta.49
11
+ - @ai-sdk/provider@4.0.0-beta.19
12
+
13
+ ## 3.0.0-canary.56
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [aeda373]
18
+ - Updated dependencies [375fdd7]
19
+ - Updated dependencies [b4507d5]
20
+ - @ai-sdk/provider-utils@5.0.0-canary.48
21
+ - @ai-sdk/openai-compatible@3.0.0-canary.56
22
+
23
+ ## 3.0.0-canary.55
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [bae5e2b]
28
+ - @ai-sdk/provider-utils@5.0.0-canary.47
29
+ - @ai-sdk/openai-compatible@3.0.0-canary.55
30
+
31
+ ## 3.0.0-canary.54
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [ce769dd]
36
+ - @ai-sdk/provider@4.0.0-canary.18
37
+ - @ai-sdk/openai-compatible@3.0.0-canary.54
38
+ - @ai-sdk/provider-utils@5.0.0-canary.46
39
+
40
+ ## 3.0.0-canary.53
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [ee798eb]
45
+ - Updated dependencies [daf6637]
46
+ - @ai-sdk/provider-utils@5.0.0-canary.45
47
+ - @ai-sdk/openai-compatible@3.0.0-canary.53
48
+
49
+ ## 3.0.0-canary.52
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [6c93e36]
54
+ - Updated dependencies [f617ac2]
55
+ - @ai-sdk/provider-utils@5.0.0-canary.44
56
+ - @ai-sdk/openai-compatible@3.0.0-canary.52
57
+
58
+ ## 3.0.0-canary.51
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies [9f1e1ba]
63
+ - @ai-sdk/openai-compatible@3.0.0-canary.51
64
+
65
+ ## 3.0.0-canary.50
66
+
67
+ ### Patch Changes
68
+
69
+ - 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
70
+ - Updated dependencies [7fc6bd6]
71
+ - @ai-sdk/openai-compatible@3.0.0-canary.50
72
+ - @ai-sdk/provider-utils@5.0.0-canary.43
73
+ - @ai-sdk/provider@4.0.0-canary.17
74
+
75
+ ## 3.0.0-canary.49
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [a6617c5]
80
+ - @ai-sdk/provider-utils@5.0.0-canary.42
81
+ - @ai-sdk/openai-compatible@3.0.0-canary.49
82
+
83
+ ## 3.0.0-canary.48
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies [28dfa06]
88
+ - Updated dependencies [e93fa91]
89
+ - @ai-sdk/provider-utils@5.0.0-canary.41
90
+ - @ai-sdk/openai-compatible@3.0.0-canary.48
91
+
92
+ ## 3.0.0-canary.47
93
+
94
+ ### Patch Changes
95
+
96
+ - Updated dependencies [a7de9c9]
97
+ - @ai-sdk/provider-utils@5.0.0-canary.40
98
+ - @ai-sdk/openai-compatible@3.0.0-canary.47
99
+
100
+ ## 3.0.0-canary.46
101
+
102
+ ### Patch Changes
103
+
104
+ - Updated dependencies [105f95b]
105
+ - @ai-sdk/provider-utils@5.0.0-canary.39
106
+ - @ai-sdk/openai-compatible@3.0.0-canary.46
107
+
108
+ ## 3.0.0-canary.45
109
+
110
+ ### Patch Changes
111
+
112
+ - Updated dependencies [ca446f8]
113
+ - @ai-sdk/provider-utils@5.0.0-canary.38
114
+ - @ai-sdk/openai-compatible@3.0.0-canary.45
115
+
116
+ ## 3.0.0-canary.44
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies [d848405]
121
+ - @ai-sdk/provider-utils@5.0.0-canary.37
122
+ - @ai-sdk/openai-compatible@3.0.0-canary.44
123
+
124
+ ## 3.0.0-canary.43
125
+
126
+ ### Patch Changes
127
+
128
+ - Updated dependencies [ca39020]
129
+ - @ai-sdk/provider-utils@5.0.0-canary.36
130
+ - @ai-sdk/openai-compatible@3.0.0-canary.43
131
+
132
+ ## 3.0.0-canary.42
133
+
134
+ ### Patch Changes
135
+
136
+ - Updated dependencies [f634bac]
137
+ - @ai-sdk/provider-utils@5.0.0-canary.35
138
+ - @ai-sdk/openai-compatible@3.0.0-canary.42
139
+
140
+ ## 3.0.0-canary.41
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [69254e0]
145
+ - Updated dependencies [3015fc3]
146
+ - @ai-sdk/provider-utils@5.0.0-canary.34
147
+ - @ai-sdk/openai-compatible@3.0.0-canary.41
148
+
149
+ ## 3.0.0-canary.40
150
+
151
+ ### Patch Changes
152
+
153
+ - Updated dependencies [2427d88]
154
+ - @ai-sdk/provider-utils@5.0.0-canary.33
155
+ - @ai-sdk/openai-compatible@3.0.0-canary.40
156
+
157
+ ## 3.0.0-canary.39
158
+
159
+ ### Patch Changes
160
+
161
+ - Updated dependencies [5463d0d]
162
+ - @ai-sdk/provider-utils@5.0.0-canary.32
163
+ - @ai-sdk/provider@4.0.0-canary.16
164
+ - @ai-sdk/openai-compatible@3.0.0-canary.39
165
+
166
+ ## 3.0.0-canary.38
167
+
168
+ ### Patch Changes
169
+
170
+ - Updated dependencies [cd9c311]
171
+ - @ai-sdk/openai-compatible@3.0.0-canary.38
172
+
173
+ ## 3.0.0-canary.37
174
+
175
+ ### Patch Changes
176
+
177
+ - 0c4c275: trigger initial canary release
178
+ - Updated dependencies [0c4c275]
179
+ - @ai-sdk/openai-compatible@3.0.0-canary.37
180
+ - @ai-sdk/provider-utils@5.0.0-canary.31
181
+ - @ai-sdk/provider@4.0.0-canary.15
182
+
183
+ ## 3.0.0-beta.36
184
+
185
+ ### Patch Changes
186
+
187
+ - Updated dependencies [e59c955]
188
+ - @ai-sdk/openai-compatible@3.0.0-beta.36
189
+
190
+ ## 3.0.0-beta.35
191
+
192
+ ### Major Changes
193
+
194
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
195
+
196
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
197
+
198
+ ### Patch Changes
199
+
200
+ - Updated dependencies [08d2129]
201
+ - Updated dependencies [04e9009]
202
+ - @ai-sdk/provider-utils@5.0.0-beta.30
203
+ - @ai-sdk/openai-compatible@3.0.0-beta.35
204
+
205
+ ## 3.0.0-beta.34
206
+
207
+ ### Patch Changes
208
+
209
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
210
+ - Updated dependencies [9bd6512]
211
+ - Updated dependencies [258c093]
212
+ - Updated dependencies [b6783da]
213
+ - @ai-sdk/openai-compatible@3.0.0-beta.34
214
+ - @ai-sdk/provider-utils@5.0.0-beta.29
215
+ - @ai-sdk/provider@4.0.0-beta.14
216
+
217
+ ## 3.0.0-beta.33
218
+
219
+ ### Patch Changes
220
+
221
+ - 9f0e36c: trigger release for all packages after provenance setup
222
+ - Updated dependencies [9f0e36c]
223
+ - @ai-sdk/openai-compatible@3.0.0-beta.33
224
+ - @ai-sdk/provider@4.0.0-beta.13
225
+ - @ai-sdk/provider-utils@5.0.0-beta.28
226
+
227
+ ## 3.0.0-beta.32
228
+
229
+ ### Patch Changes
230
+
231
+ - Updated dependencies [ab81968]
232
+ - Updated dependencies [785fe16]
233
+ - Updated dependencies [67df0a0]
234
+ - Updated dependencies [befb78c]
235
+ - Updated dependencies [0458559]
236
+ - Updated dependencies [58a2ad7]
237
+ - Updated dependencies [5852c0a]
238
+ - Updated dependencies [fc92055]
239
+ - @ai-sdk/openai-compatible@3.0.0-beta.32
240
+ - @ai-sdk/provider-utils@5.0.0-beta.27
241
+
242
+ ## 3.0.0-beta.31
243
+
244
+ ### Patch Changes
245
+
246
+ - Updated dependencies [2e98477]
247
+ - Updated dependencies [bfb756d]
248
+ - @ai-sdk/provider-utils@5.0.0-beta.26
249
+ - @ai-sdk/openai-compatible@3.0.0-beta.31
250
+
251
+ ## 3.0.0-beta.30
252
+
253
+ ### Patch Changes
254
+
255
+ - Updated dependencies [eea8d98]
256
+ - @ai-sdk/provider-utils@5.0.0-beta.25
257
+ - @ai-sdk/openai-compatible@3.0.0-beta.30
258
+
259
+ ## 3.0.0-beta.29
260
+
261
+ ### Patch Changes
262
+
263
+ - Updated dependencies [f807e45]
264
+ - @ai-sdk/provider-utils@5.0.0-beta.24
265
+ - @ai-sdk/openai-compatible@3.0.0-beta.29
266
+
267
+ ## 3.0.0-beta.28
268
+
269
+ ### Patch Changes
270
+
271
+ - Updated dependencies [350ea38]
272
+ - @ai-sdk/provider-utils@5.0.0-beta.23
273
+ - @ai-sdk/openai-compatible@3.0.0-beta.28
274
+
275
+ ## 3.0.0-beta.27
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies [083947b]
280
+ - @ai-sdk/provider-utils@5.0.0-beta.22
281
+ - @ai-sdk/openai-compatible@3.0.0-beta.27
282
+
283
+ ## 3.0.0-beta.26
284
+
285
+ ### Patch Changes
286
+
287
+ - Updated dependencies [add1126]
288
+ - @ai-sdk/provider-utils@5.0.0-beta.21
289
+ - @ai-sdk/openai-compatible@3.0.0-beta.26
290
+
291
+ ## 3.0.0-beta.25
292
+
293
+ ### Patch Changes
294
+
295
+ - b3976a2: Add workflow serialization support to all provider models.
296
+
297
+ **`@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.
298
+
299
+ **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.
300
+
301
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
302
+
303
+ - Updated dependencies [b3976a2]
304
+ - Updated dependencies [ff5eba1]
305
+ - @ai-sdk/provider-utils@5.0.0-beta.20
306
+ - @ai-sdk/openai-compatible@3.0.0-beta.25
307
+ - @ai-sdk/provider@4.0.0-beta.12
308
+
309
+ ## 3.0.0-beta.24
310
+
311
+ ### Major Changes
312
+
313
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
314
+
315
+ ### Patch Changes
316
+
317
+ - Updated dependencies [ef992f8]
318
+ - @ai-sdk/openai-compatible@3.0.0-beta.24
319
+ - @ai-sdk/provider@4.0.0-beta.11
320
+ - @ai-sdk/provider-utils@5.0.0-beta.19
321
+
322
+ ## 3.0.0-beta.23
323
+
324
+ ### Patch Changes
325
+
326
+ - 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
327
+ - Updated dependencies [90e2d8a]
328
+ - @ai-sdk/openai-compatible@3.0.0-beta.23
329
+ - @ai-sdk/provider-utils@5.0.0-beta.18
330
+
331
+ ## 3.0.0-beta.22
332
+
333
+ ### Patch Changes
334
+
335
+ - Updated dependencies [3ae1786]
336
+ - @ai-sdk/provider-utils@5.0.0-beta.17
337
+ - @ai-sdk/openai-compatible@3.0.0-beta.22
338
+
339
+ ## 3.0.0-beta.21
340
+
341
+ ### Patch Changes
342
+
343
+ - Updated dependencies [176466a]
344
+ - @ai-sdk/provider@4.0.0-beta.10
345
+ - @ai-sdk/openai-compatible@3.0.0-beta.21
346
+ - @ai-sdk/provider-utils@5.0.0-beta.16
347
+
348
+ ## 3.0.0-beta.20
349
+
350
+ ### Patch Changes
351
+
352
+ - Updated dependencies [e311194]
353
+ - @ai-sdk/provider@4.0.0-beta.9
354
+ - @ai-sdk/openai-compatible@3.0.0-beta.20
355
+ - @ai-sdk/provider-utils@5.0.0-beta.15
356
+
357
+ ## 3.0.0-beta.19
358
+
359
+ ### Patch Changes
360
+
361
+ - Updated dependencies [34bd95d]
362
+ - Updated dependencies [008271d]
363
+ - @ai-sdk/provider@4.0.0-beta.8
364
+ - @ai-sdk/openai-compatible@3.0.0-beta.19
365
+ - @ai-sdk/provider-utils@5.0.0-beta.14
366
+
367
+ ## 3.0.0-beta.18
368
+
369
+ ### Patch Changes
370
+
371
+ - Updated dependencies [b0c2869]
372
+ - Updated dependencies [7e26e81]
373
+ - @ai-sdk/provider-utils@5.0.0-beta.13
374
+ - @ai-sdk/openai-compatible@3.0.0-beta.18
375
+
376
+ ## 3.0.0-beta.17
377
+
378
+ ### Patch Changes
379
+
380
+ - Updated dependencies [816ff67]
381
+ - @ai-sdk/openai-compatible@3.0.0-beta.17
382
+
383
+ ## 3.0.0-beta.16
384
+
385
+ ### Patch Changes
386
+
387
+ - Updated dependencies [46d1149]
388
+ - @ai-sdk/provider-utils@5.0.0-beta.12
389
+ - @ai-sdk/openai-compatible@3.0.0-beta.16
390
+
391
+ ## 3.0.0-beta.15
392
+
393
+ ### Patch Changes
394
+
395
+ - Updated dependencies [6fd51c0]
396
+ - @ai-sdk/provider-utils@5.0.0-beta.11
397
+ - @ai-sdk/provider@4.0.0-beta.7
398
+ - @ai-sdk/openai-compatible@3.0.0-beta.15
399
+
400
+ ## 3.0.0-beta.14
401
+
402
+ ### Patch Changes
403
+
404
+ - Updated dependencies [c29a26f]
405
+ - @ai-sdk/openai-compatible@3.0.0-beta.14
406
+ - @ai-sdk/provider-utils@5.0.0-beta.10
407
+ - @ai-sdk/provider@4.0.0-beta.6
408
+
409
+ ## 3.0.0-beta.13
410
+
411
+ ### Patch Changes
412
+
413
+ - 38fc777: Add AI Gateway hint to provider READMEs
414
+ - Updated dependencies [38fc777]
415
+ - @ai-sdk/openai-compatible@3.0.0-beta.13
416
+
417
+ ## 3.0.0-beta.12
418
+
419
+ ### Patch Changes
420
+
421
+ - Updated dependencies [2e17091]
422
+ - @ai-sdk/provider-utils@5.0.0-beta.9
423
+ - @ai-sdk/openai-compatible@3.0.0-beta.12
424
+
425
+ ## 3.0.0-beta.11
426
+
427
+ ### Patch Changes
428
+
429
+ - Updated dependencies [986c6fd]
430
+ - Updated dependencies [493295c]
431
+ - @ai-sdk/provider-utils@5.0.0-beta.8
432
+ - @ai-sdk/openai-compatible@3.0.0-beta.11
433
+
434
+ ## 3.0.0-beta.10
435
+
436
+ ### Patch Changes
437
+
438
+ - Updated dependencies [1f509d4]
439
+ - @ai-sdk/provider-utils@5.0.0-beta.7
440
+ - @ai-sdk/provider@4.0.0-beta.5
441
+ - @ai-sdk/openai-compatible@3.0.0-beta.10
442
+
443
+ ## 3.0.0-beta.9
444
+
445
+ ### Patch Changes
446
+
447
+ - Updated dependencies [74d520f]
448
+ - @ai-sdk/openai-compatible@3.0.0-beta.9
449
+
450
+ ## 3.0.0-beta.8
451
+
452
+ ### Patch Changes
453
+
454
+ - Updated dependencies [3887c70]
455
+ - @ai-sdk/provider-utils@5.0.0-beta.6
456
+ - @ai-sdk/provider@4.0.0-beta.4
457
+ - @ai-sdk/openai-compatible@3.0.0-beta.8
458
+
459
+ ## 3.0.0-beta.7
460
+
461
+ ### Patch Changes
462
+
463
+ - Updated dependencies [776b617]
464
+ - @ai-sdk/provider-utils@5.0.0-beta.5
465
+ - @ai-sdk/provider@4.0.0-beta.3
466
+ - @ai-sdk/openai-compatible@3.0.0-beta.7
467
+
468
+ ## 3.0.0-beta.6
469
+
470
+ ### Patch Changes
471
+
472
+ - Updated dependencies [61753c3]
473
+ - @ai-sdk/provider-utils@5.0.0-beta.4
474
+ - @ai-sdk/openai-compatible@3.0.0-beta.6
475
+
3
476
  ## 3.0.0-beta.5
4
477
 
5
478
  ### Patch Changes
@@ -373,13 +846,13 @@
373
846
  Before
374
847
 
375
848
  ```ts
376
- model.textEmbeddingModel('my-model-id');
849
+ model.textEmbeddingModel("my-model-id");
377
850
  ```
378
851
 
379
852
  After
380
853
 
381
854
  ```ts
382
- model.embeddingModel('my-model-id');
855
+ model.embeddingModel("my-model-id");
383
856
  ```
384
857
 
385
858
  - 95f65c2: chore: use import \* from zod/v4
@@ -607,13 +1080,13 @@
607
1080
  Before
608
1081
 
609
1082
  ```ts
610
- model.textEmbeddingModel('my-model-id');
1083
+ model.textEmbeddingModel("my-model-id");
611
1084
  ```
612
1085
 
613
1086
  After
614
1087
 
615
1088
  ```ts
616
- model.embeddingModel('my-model-id');
1089
+ model.embeddingModel("my-model-id");
617
1090
  ```
618
1091
 
619
1092
  - Updated dependencies [8d9e8ad]
@@ -1101,7 +1574,7 @@
1101
1574
 
1102
1575
  ```js
1103
1576
  await generateImage({
1104
- model: luma.image('photon-flash-1', {
1577
+ model: luma.image("photon-flash-1", {
1105
1578
  maxImagesPerCall: 5,
1106
1579
  pollIntervalMillis: 500,
1107
1580
  }),
@@ -1114,7 +1587,7 @@
1114
1587
 
1115
1588
  ```js
1116
1589
  await generateImage({
1117
- model: luma.image('photon-flash-1'),
1590
+ model: luma.image("photon-flash-1"),
1118
1591
  prompt,
1119
1592
  n: 10,
1120
1593
  maxImagesPerCall: 5,
@@ -1401,7 +1874,7 @@
1401
1874
 
1402
1875
  ```js
1403
1876
  await generateImage({
1404
- model: luma.image('photon-flash-1', {
1877
+ model: luma.image("photon-flash-1", {
1405
1878
  maxImagesPerCall: 5,
1406
1879
  pollIntervalMillis: 500,
1407
1880
  }),
@@ -1414,7 +1887,7 @@
1414
1887
 
1415
1888
  ```js
1416
1889
  await generateImage({
1417
- model: luma.image('photon-flash-1'),
1890
+ model: luma.image("photon-flash-1"),
1418
1891
  prompt,
1419
1892
  n: 10,
1420
1893
  maxImagesPerCall: 5,
package/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  The **[DeepInfra provider](https://ai-sdk.dev/providers/ai-sdk-providers/deepinfra)** for the [AI SDK](https://ai-sdk.dev/docs)
4
4
  contains language model support for the DeepInfra API, giving you access to models like Llama 3, Mixtral, and other state-of-the-art LLMs.
5
5
 
6
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access DeepInfra (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).
7
+
6
8
  ## Setup
7
9
 
8
10
  The DeepInfra provider is available in the `@ai-sdk/deepinfra` module. You can install it with
package/dist/index.d.ts CHANGED
@@ -64,8 +64,8 @@ interface DeepInfraProvider extends ProviderV4 {
64
64
  textEmbeddingModel(modelId: DeepInfraEmbeddingModelId): EmbeddingModelV4;
65
65
  }
66
66
  declare function createDeepInfra(options?: DeepInfraProviderSettings): DeepInfraProvider;
67
- declare const deepinfra: DeepInfraProvider;
67
+ declare const deepInfra: DeepInfraProvider;
68
68
 
69
69
  declare const VERSION: string;
70
70
 
71
- export { type DeepInfraProvider, type DeepInfraProviderSettings, VERSION, createDeepInfra, deepinfra };
71
+ export { type DeepInfraProvider, type DeepInfraProviderSettings, VERSION, createDeepInfra, deepInfra, deepInfra as deepinfra };