@ai-sdk/deepinfra 3.0.0-beta.4 → 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 +490 -8
- package/README.md +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +84 -70
- package/dist/index.js.map +1 -1
- package/docs/11-deepinfra.mdx +14 -14
- package/package.json +15 -15
- package/src/deepinfra-chat-language-model.ts +22 -4
- package/src/deepinfra-completion-options.ts +1 -1
- package/src/deepinfra-image-model.ts +23 -6
- package/src/deepinfra-provider.ts +7 -7
- package/src/index.ts +6 -1
- package/dist/index.d.mts +0 -71
- package/dist/index.mjs +0 -344
- package/dist/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,487 @@
|
|
|
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
|
+
|
|
476
|
+
## 3.0.0-beta.5
|
|
477
|
+
|
|
478
|
+
### Patch Changes
|
|
479
|
+
|
|
480
|
+
- Updated dependencies [f7d4f01]
|
|
481
|
+
- @ai-sdk/provider-utils@5.0.0-beta.3
|
|
482
|
+
- @ai-sdk/provider@4.0.0-beta.2
|
|
483
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.5
|
|
484
|
+
|
|
3
485
|
## 3.0.0-beta.4
|
|
4
486
|
|
|
5
487
|
### Patch Changes
|
|
@@ -364,13 +846,13 @@
|
|
|
364
846
|
Before
|
|
365
847
|
|
|
366
848
|
```ts
|
|
367
|
-
model.textEmbeddingModel(
|
|
849
|
+
model.textEmbeddingModel("my-model-id");
|
|
368
850
|
```
|
|
369
851
|
|
|
370
852
|
After
|
|
371
853
|
|
|
372
854
|
```ts
|
|
373
|
-
model.embeddingModel(
|
|
855
|
+
model.embeddingModel("my-model-id");
|
|
374
856
|
```
|
|
375
857
|
|
|
376
858
|
- 95f65c2: chore: use import \* from zod/v4
|
|
@@ -598,13 +1080,13 @@
|
|
|
598
1080
|
Before
|
|
599
1081
|
|
|
600
1082
|
```ts
|
|
601
|
-
model.textEmbeddingModel(
|
|
1083
|
+
model.textEmbeddingModel("my-model-id");
|
|
602
1084
|
```
|
|
603
1085
|
|
|
604
1086
|
After
|
|
605
1087
|
|
|
606
1088
|
```ts
|
|
607
|
-
model.embeddingModel(
|
|
1089
|
+
model.embeddingModel("my-model-id");
|
|
608
1090
|
```
|
|
609
1091
|
|
|
610
1092
|
- Updated dependencies [8d9e8ad]
|
|
@@ -1092,7 +1574,7 @@
|
|
|
1092
1574
|
|
|
1093
1575
|
```js
|
|
1094
1576
|
await generateImage({
|
|
1095
|
-
model: luma.image(
|
|
1577
|
+
model: luma.image("photon-flash-1", {
|
|
1096
1578
|
maxImagesPerCall: 5,
|
|
1097
1579
|
pollIntervalMillis: 500,
|
|
1098
1580
|
}),
|
|
@@ -1105,7 +1587,7 @@
|
|
|
1105
1587
|
|
|
1106
1588
|
```js
|
|
1107
1589
|
await generateImage({
|
|
1108
|
-
model: luma.image(
|
|
1590
|
+
model: luma.image("photon-flash-1"),
|
|
1109
1591
|
prompt,
|
|
1110
1592
|
n: 10,
|
|
1111
1593
|
maxImagesPerCall: 5,
|
|
@@ -1392,7 +1874,7 @@
|
|
|
1392
1874
|
|
|
1393
1875
|
```js
|
|
1394
1876
|
await generateImage({
|
|
1395
|
-
model: luma.image(
|
|
1877
|
+
model: luma.image("photon-flash-1", {
|
|
1396
1878
|
maxImagesPerCall: 5,
|
|
1397
1879
|
pollIntervalMillis: 500,
|
|
1398
1880
|
}),
|
|
@@ -1405,7 +1887,7 @@
|
|
|
1405
1887
|
|
|
1406
1888
|
```js
|
|
1407
1889
|
await generateImage({
|
|
1408
|
-
model: luma.image(
|
|
1890
|
+
model: luma.image("photon-flash-1"),
|
|
1409
1891
|
prompt,
|
|
1410
1892
|
n: 10,
|
|
1411
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
|
|
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 };
|