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