@ai-sdk/fireworks 3.0.0-beta.6 → 3.0.0-beta.60
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 +497 -8
- package/README.md +2 -0
- package/dist/index.d.ts +13 -3
- package/dist/index.js +94 -78
- package/dist/index.js.map +1 -1
- package/docs/26-fireworks.mdx +94 -5
- package/package.json +15 -15
- package/src/fireworks-chat-options.ts +7 -1
- package/src/fireworks-image-model.ts +30 -7
- package/src/fireworks-provider.ts +29 -8
- package/dist/index.d.mts +0 -131
- package/dist/index.mjs +0 -382
- package/dist/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,494 @@
|
|
|
1
1
|
# @ai-sdk/fireworks
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.60
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7cf47d8: Add the `promptCacheKey` provider option for Fireworks prompt cache affinity
|
|
8
|
+
and Kimi K2.6 model autocomplete, and remove the deprecated Kimi K2.5
|
|
9
|
+
serverless model from autocomplete.
|
|
10
|
+
|
|
11
|
+
## 3.0.0-beta.59
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [0416e3e]
|
|
16
|
+
- @ai-sdk/provider@4.0.0-beta.20
|
|
17
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.58
|
|
18
|
+
- @ai-sdk/provider-utils@5.0.0-beta.50
|
|
19
|
+
|
|
20
|
+
## 3.0.0-beta.58
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- b8396f0: trigger initial beta release
|
|
25
|
+
- Updated dependencies [b8396f0]
|
|
26
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.57
|
|
27
|
+
- @ai-sdk/provider-utils@5.0.0-beta.49
|
|
28
|
+
- @ai-sdk/provider@4.0.0-beta.19
|
|
29
|
+
|
|
30
|
+
## 3.0.0-canary.57
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- 38010a1: Enable `includeUsage` for Fireworks so streaming responses report token usage
|
|
35
|
+
|
|
36
|
+
## 3.0.0-canary.56
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- aeda373: fix: only send provider credentials to same-origin response-supplied URLs
|
|
41
|
+
|
|
42
|
+
Several provider clients followed a URL taken from the provider's API response (a polling/status URL or a final media URL such as `polling_url`, `urls.get`, `result_url`, `result.sample`, or `video.uri`) and reused the authenticated headers — or appended `?key=<API_KEY>` — on that request. Because the host of the response-supplied URL was never validated, the long-lived API key was sent to whatever host the response named (a CDN in the benign case, or an attacker-chosen host if the provider response was tampered with), allowing credential exfiltration.
|
|
43
|
+
|
|
44
|
+
A new `isSameOrigin` helper is added to `@ai-sdk/provider-utils`, and the affected fetches in `@ai-sdk/black-forest-labs`, `@ai-sdk/fireworks`, `@ai-sdk/replicate`, `@ai-sdk/gladia`, `@ai-sdk/fal`, and `@ai-sdk/google` now attach credentials only when the followed URL is same-origin with the provider's configured API origin. Requests to a foreign origin are made without the credential.
|
|
45
|
+
|
|
46
|
+
- Updated dependencies [aeda373]
|
|
47
|
+
- Updated dependencies [375fdd7]
|
|
48
|
+
- Updated dependencies [b4507d5]
|
|
49
|
+
- @ai-sdk/provider-utils@5.0.0-canary.48
|
|
50
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.56
|
|
51
|
+
|
|
52
|
+
## 3.0.0-canary.55
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- Updated dependencies [bae5e2b]
|
|
57
|
+
- @ai-sdk/provider-utils@5.0.0-canary.47
|
|
58
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.55
|
|
59
|
+
|
|
60
|
+
## 3.0.0-canary.54
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- Updated dependencies [ce769dd]
|
|
65
|
+
- @ai-sdk/provider@4.0.0-canary.18
|
|
66
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.54
|
|
67
|
+
- @ai-sdk/provider-utils@5.0.0-canary.46
|
|
68
|
+
|
|
69
|
+
## 3.0.0-canary.53
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- Updated dependencies [ee798eb]
|
|
74
|
+
- Updated dependencies [daf6637]
|
|
75
|
+
- @ai-sdk/provider-utils@5.0.0-canary.45
|
|
76
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.53
|
|
77
|
+
|
|
78
|
+
## 3.0.0-canary.52
|
|
79
|
+
|
|
80
|
+
### Patch Changes
|
|
81
|
+
|
|
82
|
+
- Updated dependencies [6c93e36]
|
|
83
|
+
- Updated dependencies [f617ac2]
|
|
84
|
+
- @ai-sdk/provider-utils@5.0.0-canary.44
|
|
85
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.52
|
|
86
|
+
|
|
87
|
+
## 3.0.0-canary.51
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- Updated dependencies [9f1e1ba]
|
|
92
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.51
|
|
93
|
+
|
|
94
|
+
## 3.0.0-canary.50
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
|
|
99
|
+
- Updated dependencies [7fc6bd6]
|
|
100
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.50
|
|
101
|
+
- @ai-sdk/provider-utils@5.0.0-canary.43
|
|
102
|
+
- @ai-sdk/provider@4.0.0-canary.17
|
|
103
|
+
|
|
104
|
+
## 3.0.0-canary.49
|
|
105
|
+
|
|
106
|
+
### Patch Changes
|
|
107
|
+
|
|
108
|
+
- Updated dependencies [a6617c5]
|
|
109
|
+
- @ai-sdk/provider-utils@5.0.0-canary.42
|
|
110
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.49
|
|
111
|
+
|
|
112
|
+
## 3.0.0-canary.48
|
|
113
|
+
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- Updated dependencies [28dfa06]
|
|
117
|
+
- Updated dependencies [e93fa91]
|
|
118
|
+
- @ai-sdk/provider-utils@5.0.0-canary.41
|
|
119
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.48
|
|
120
|
+
|
|
121
|
+
## 3.0.0-canary.47
|
|
122
|
+
|
|
123
|
+
### Patch Changes
|
|
124
|
+
|
|
125
|
+
- Updated dependencies [a7de9c9]
|
|
126
|
+
- @ai-sdk/provider-utils@5.0.0-canary.40
|
|
127
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.47
|
|
128
|
+
|
|
129
|
+
## 3.0.0-canary.46
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- Updated dependencies [105f95b]
|
|
134
|
+
- @ai-sdk/provider-utils@5.0.0-canary.39
|
|
135
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.46
|
|
136
|
+
|
|
137
|
+
## 3.0.0-canary.45
|
|
138
|
+
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- Updated dependencies [ca446f8]
|
|
142
|
+
- @ai-sdk/provider-utils@5.0.0-canary.38
|
|
143
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.45
|
|
144
|
+
|
|
145
|
+
## 3.0.0-canary.44
|
|
146
|
+
|
|
147
|
+
### Patch Changes
|
|
148
|
+
|
|
149
|
+
- Updated dependencies [d848405]
|
|
150
|
+
- @ai-sdk/provider-utils@5.0.0-canary.37
|
|
151
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.44
|
|
152
|
+
|
|
153
|
+
## 3.0.0-canary.43
|
|
154
|
+
|
|
155
|
+
### Patch Changes
|
|
156
|
+
|
|
157
|
+
- Updated dependencies [ca39020]
|
|
158
|
+
- @ai-sdk/provider-utils@5.0.0-canary.36
|
|
159
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.43
|
|
160
|
+
|
|
161
|
+
## 3.0.0-canary.42
|
|
162
|
+
|
|
163
|
+
### Patch Changes
|
|
164
|
+
|
|
165
|
+
- Updated dependencies [f634bac]
|
|
166
|
+
- @ai-sdk/provider-utils@5.0.0-canary.35
|
|
167
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.42
|
|
168
|
+
|
|
169
|
+
## 3.0.0-canary.41
|
|
170
|
+
|
|
171
|
+
### Patch Changes
|
|
172
|
+
|
|
173
|
+
- Updated dependencies [69254e0]
|
|
174
|
+
- Updated dependencies [3015fc3]
|
|
175
|
+
- @ai-sdk/provider-utils@5.0.0-canary.34
|
|
176
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.41
|
|
177
|
+
|
|
178
|
+
## 3.0.0-canary.40
|
|
179
|
+
|
|
180
|
+
### Patch Changes
|
|
181
|
+
|
|
182
|
+
- Updated dependencies [2427d88]
|
|
183
|
+
- @ai-sdk/provider-utils@5.0.0-canary.33
|
|
184
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.40
|
|
185
|
+
|
|
186
|
+
## 3.0.0-canary.39
|
|
187
|
+
|
|
188
|
+
### Patch Changes
|
|
189
|
+
|
|
190
|
+
- Updated dependencies [5463d0d]
|
|
191
|
+
- @ai-sdk/provider-utils@5.0.0-canary.32
|
|
192
|
+
- @ai-sdk/provider@4.0.0-canary.16
|
|
193
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.39
|
|
194
|
+
|
|
195
|
+
## 3.0.0-canary.38
|
|
196
|
+
|
|
197
|
+
### Patch Changes
|
|
198
|
+
|
|
199
|
+
- Updated dependencies [cd9c311]
|
|
200
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.38
|
|
201
|
+
|
|
202
|
+
## 3.0.0-canary.37
|
|
203
|
+
|
|
204
|
+
### Patch Changes
|
|
205
|
+
|
|
206
|
+
- 0c4c275: trigger initial canary release
|
|
207
|
+
- Updated dependencies [0c4c275]
|
|
208
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.37
|
|
209
|
+
- @ai-sdk/provider-utils@5.0.0-canary.31
|
|
210
|
+
- @ai-sdk/provider@4.0.0-canary.15
|
|
211
|
+
|
|
212
|
+
## 3.0.0-beta.36
|
|
213
|
+
|
|
214
|
+
### Patch Changes
|
|
215
|
+
|
|
216
|
+
- Updated dependencies [e59c955]
|
|
217
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.36
|
|
218
|
+
|
|
219
|
+
## 3.0.0-beta.35
|
|
220
|
+
|
|
221
|
+
### Patch Changes
|
|
222
|
+
|
|
223
|
+
- Updated dependencies [08d2129]
|
|
224
|
+
- Updated dependencies [04e9009]
|
|
225
|
+
- @ai-sdk/provider-utils@5.0.0-beta.30
|
|
226
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.35
|
|
227
|
+
|
|
228
|
+
## 3.0.0-beta.34
|
|
229
|
+
|
|
230
|
+
### Patch Changes
|
|
231
|
+
|
|
232
|
+
- 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
|
|
233
|
+
- Updated dependencies [9bd6512]
|
|
234
|
+
- Updated dependencies [258c093]
|
|
235
|
+
- Updated dependencies [b6783da]
|
|
236
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.34
|
|
237
|
+
- @ai-sdk/provider-utils@5.0.0-beta.29
|
|
238
|
+
- @ai-sdk/provider@4.0.0-beta.14
|
|
239
|
+
|
|
240
|
+
## 3.0.0-beta.33
|
|
241
|
+
|
|
242
|
+
### Patch Changes
|
|
243
|
+
|
|
244
|
+
- 9f0e36c: trigger release for all packages after provenance setup
|
|
245
|
+
- Updated dependencies [9f0e36c]
|
|
246
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.33
|
|
247
|
+
- @ai-sdk/provider@4.0.0-beta.13
|
|
248
|
+
- @ai-sdk/provider-utils@5.0.0-beta.28
|
|
249
|
+
|
|
250
|
+
## 3.0.0-beta.32
|
|
251
|
+
|
|
252
|
+
### Patch Changes
|
|
253
|
+
|
|
254
|
+
- Updated dependencies [ab81968]
|
|
255
|
+
- Updated dependencies [785fe16]
|
|
256
|
+
- Updated dependencies [67df0a0]
|
|
257
|
+
- Updated dependencies [befb78c]
|
|
258
|
+
- Updated dependencies [0458559]
|
|
259
|
+
- Updated dependencies [58a2ad7]
|
|
260
|
+
- Updated dependencies [5852c0a]
|
|
261
|
+
- Updated dependencies [fc92055]
|
|
262
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.32
|
|
263
|
+
- @ai-sdk/provider-utils@5.0.0-beta.27
|
|
264
|
+
|
|
265
|
+
## 3.0.0-beta.31
|
|
266
|
+
|
|
267
|
+
### Patch Changes
|
|
268
|
+
|
|
269
|
+
- Updated dependencies [2e98477]
|
|
270
|
+
- Updated dependencies [bfb756d]
|
|
271
|
+
- @ai-sdk/provider-utils@5.0.0-beta.26
|
|
272
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.31
|
|
273
|
+
|
|
274
|
+
## 3.0.0-beta.30
|
|
275
|
+
|
|
276
|
+
### Patch Changes
|
|
277
|
+
|
|
278
|
+
- Updated dependencies [eea8d98]
|
|
279
|
+
- @ai-sdk/provider-utils@5.0.0-beta.25
|
|
280
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.30
|
|
281
|
+
|
|
282
|
+
## 3.0.0-beta.29
|
|
283
|
+
|
|
284
|
+
### Patch Changes
|
|
285
|
+
|
|
286
|
+
- Updated dependencies [f807e45]
|
|
287
|
+
- @ai-sdk/provider-utils@5.0.0-beta.24
|
|
288
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.29
|
|
289
|
+
|
|
290
|
+
## 3.0.0-beta.28
|
|
291
|
+
|
|
292
|
+
### Patch Changes
|
|
293
|
+
|
|
294
|
+
- Updated dependencies [350ea38]
|
|
295
|
+
- @ai-sdk/provider-utils@5.0.0-beta.23
|
|
296
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.28
|
|
297
|
+
|
|
298
|
+
## 3.0.0-beta.27
|
|
299
|
+
|
|
300
|
+
### Patch Changes
|
|
301
|
+
|
|
302
|
+
- Updated dependencies [083947b]
|
|
303
|
+
- @ai-sdk/provider-utils@5.0.0-beta.22
|
|
304
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.27
|
|
305
|
+
|
|
306
|
+
## 3.0.0-beta.26
|
|
307
|
+
|
|
308
|
+
### Patch Changes
|
|
309
|
+
|
|
310
|
+
- Updated dependencies [add1126]
|
|
311
|
+
- @ai-sdk/provider-utils@5.0.0-beta.21
|
|
312
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.26
|
|
313
|
+
|
|
314
|
+
## 3.0.0-beta.25
|
|
315
|
+
|
|
316
|
+
### Patch Changes
|
|
317
|
+
|
|
318
|
+
- b3976a2: Add workflow serialization support to all provider models.
|
|
319
|
+
|
|
320
|
+
**`@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.
|
|
321
|
+
|
|
322
|
+
**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.
|
|
323
|
+
|
|
324
|
+
All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
|
|
325
|
+
|
|
326
|
+
- Updated dependencies [b3976a2]
|
|
327
|
+
- Updated dependencies [ff5eba1]
|
|
328
|
+
- @ai-sdk/provider-utils@5.0.0-beta.20
|
|
329
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.25
|
|
330
|
+
- @ai-sdk/provider@4.0.0-beta.12
|
|
331
|
+
|
|
332
|
+
## 3.0.0-beta.24
|
|
333
|
+
|
|
334
|
+
### Major Changes
|
|
335
|
+
|
|
336
|
+
- ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
|
|
337
|
+
|
|
338
|
+
### Patch Changes
|
|
339
|
+
|
|
340
|
+
- Updated dependencies [ef992f8]
|
|
341
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.24
|
|
342
|
+
- @ai-sdk/provider@4.0.0-beta.11
|
|
343
|
+
- @ai-sdk/provider-utils@5.0.0-beta.19
|
|
344
|
+
|
|
345
|
+
## 3.0.0-beta.23
|
|
346
|
+
|
|
347
|
+
### Patch Changes
|
|
348
|
+
|
|
349
|
+
- 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
|
|
350
|
+
- Updated dependencies [90e2d8a]
|
|
351
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.23
|
|
352
|
+
- @ai-sdk/provider-utils@5.0.0-beta.18
|
|
353
|
+
|
|
354
|
+
## 3.0.0-beta.22
|
|
355
|
+
|
|
356
|
+
### Patch Changes
|
|
357
|
+
|
|
358
|
+
- Updated dependencies [3ae1786]
|
|
359
|
+
- @ai-sdk/provider-utils@5.0.0-beta.17
|
|
360
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.22
|
|
361
|
+
|
|
362
|
+
## 3.0.0-beta.21
|
|
363
|
+
|
|
364
|
+
### Patch Changes
|
|
365
|
+
|
|
366
|
+
- Updated dependencies [176466a]
|
|
367
|
+
- @ai-sdk/provider@4.0.0-beta.10
|
|
368
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.21
|
|
369
|
+
- @ai-sdk/provider-utils@5.0.0-beta.16
|
|
370
|
+
|
|
371
|
+
## 3.0.0-beta.20
|
|
372
|
+
|
|
373
|
+
### Patch Changes
|
|
374
|
+
|
|
375
|
+
- Updated dependencies [e311194]
|
|
376
|
+
- @ai-sdk/provider@4.0.0-beta.9
|
|
377
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.20
|
|
378
|
+
- @ai-sdk/provider-utils@5.0.0-beta.15
|
|
379
|
+
|
|
380
|
+
## 3.0.0-beta.19
|
|
381
|
+
|
|
382
|
+
### Patch Changes
|
|
383
|
+
|
|
384
|
+
- Updated dependencies [34bd95d]
|
|
385
|
+
- Updated dependencies [008271d]
|
|
386
|
+
- @ai-sdk/provider@4.0.0-beta.8
|
|
387
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.19
|
|
388
|
+
- @ai-sdk/provider-utils@5.0.0-beta.14
|
|
389
|
+
|
|
390
|
+
## 3.0.0-beta.18
|
|
391
|
+
|
|
392
|
+
### Patch Changes
|
|
393
|
+
|
|
394
|
+
- Updated dependencies [b0c2869]
|
|
395
|
+
- Updated dependencies [7e26e81]
|
|
396
|
+
- @ai-sdk/provider-utils@5.0.0-beta.13
|
|
397
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.18
|
|
398
|
+
|
|
399
|
+
## 3.0.0-beta.17
|
|
400
|
+
|
|
401
|
+
### Patch Changes
|
|
402
|
+
|
|
403
|
+
- Updated dependencies [816ff67]
|
|
404
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.17
|
|
405
|
+
|
|
406
|
+
## 3.0.0-beta.16
|
|
407
|
+
|
|
408
|
+
### Patch Changes
|
|
409
|
+
|
|
410
|
+
- Updated dependencies [46d1149]
|
|
411
|
+
- @ai-sdk/provider-utils@5.0.0-beta.12
|
|
412
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.16
|
|
413
|
+
|
|
414
|
+
## 3.0.0-beta.15
|
|
415
|
+
|
|
416
|
+
### Patch Changes
|
|
417
|
+
|
|
418
|
+
- Updated dependencies [6fd51c0]
|
|
419
|
+
- @ai-sdk/provider-utils@5.0.0-beta.11
|
|
420
|
+
- @ai-sdk/provider@4.0.0-beta.7
|
|
421
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.15
|
|
422
|
+
|
|
423
|
+
## 3.0.0-beta.14
|
|
424
|
+
|
|
425
|
+
### Patch Changes
|
|
426
|
+
|
|
427
|
+
- Updated dependencies [c29a26f]
|
|
428
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.14
|
|
429
|
+
- @ai-sdk/provider-utils@5.0.0-beta.10
|
|
430
|
+
- @ai-sdk/provider@4.0.0-beta.6
|
|
431
|
+
|
|
432
|
+
## 3.0.0-beta.13
|
|
433
|
+
|
|
434
|
+
### Patch Changes
|
|
435
|
+
|
|
436
|
+
- 38fc777: Add AI Gateway hint to provider READMEs
|
|
437
|
+
- Updated dependencies [38fc777]
|
|
438
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.13
|
|
439
|
+
|
|
440
|
+
## 3.0.0-beta.12
|
|
441
|
+
|
|
442
|
+
### Patch Changes
|
|
443
|
+
|
|
444
|
+
- Updated dependencies [2e17091]
|
|
445
|
+
- @ai-sdk/provider-utils@5.0.0-beta.9
|
|
446
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.12
|
|
447
|
+
|
|
448
|
+
## 3.0.0-beta.11
|
|
449
|
+
|
|
450
|
+
### Patch Changes
|
|
451
|
+
|
|
452
|
+
- Updated dependencies [986c6fd]
|
|
453
|
+
- Updated dependencies [493295c]
|
|
454
|
+
- @ai-sdk/provider-utils@5.0.0-beta.8
|
|
455
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.11
|
|
456
|
+
|
|
457
|
+
## 3.0.0-beta.10
|
|
458
|
+
|
|
459
|
+
### Patch Changes
|
|
460
|
+
|
|
461
|
+
- Updated dependencies [1f509d4]
|
|
462
|
+
- @ai-sdk/provider-utils@5.0.0-beta.7
|
|
463
|
+
- @ai-sdk/provider@4.0.0-beta.5
|
|
464
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.10
|
|
465
|
+
|
|
466
|
+
## 3.0.0-beta.9
|
|
467
|
+
|
|
468
|
+
### Patch Changes
|
|
469
|
+
|
|
470
|
+
- 74d520f: feat: migrate providers to support new top-level `reasoning` parameter
|
|
471
|
+
- Updated dependencies [74d520f]
|
|
472
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.9
|
|
473
|
+
|
|
474
|
+
## 3.0.0-beta.8
|
|
475
|
+
|
|
476
|
+
### Patch Changes
|
|
477
|
+
|
|
478
|
+
- Updated dependencies [3887c70]
|
|
479
|
+
- @ai-sdk/provider-utils@5.0.0-beta.6
|
|
480
|
+
- @ai-sdk/provider@4.0.0-beta.4
|
|
481
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.8
|
|
482
|
+
|
|
483
|
+
## 3.0.0-beta.7
|
|
484
|
+
|
|
485
|
+
### Patch Changes
|
|
486
|
+
|
|
487
|
+
- Updated dependencies [776b617]
|
|
488
|
+
- @ai-sdk/provider-utils@5.0.0-beta.5
|
|
489
|
+
- @ai-sdk/provider@4.0.0-beta.3
|
|
490
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.7
|
|
491
|
+
|
|
3
492
|
## 3.0.0-beta.6
|
|
4
493
|
|
|
5
494
|
### Patch Changes
|
|
@@ -388,13 +877,13 @@
|
|
|
388
877
|
Before
|
|
389
878
|
|
|
390
879
|
```ts
|
|
391
|
-
model.textEmbeddingModel(
|
|
880
|
+
model.textEmbeddingModel("my-model-id");
|
|
392
881
|
```
|
|
393
882
|
|
|
394
883
|
After
|
|
395
884
|
|
|
396
885
|
```ts
|
|
397
|
-
model.embeddingModel(
|
|
886
|
+
model.embeddingModel("my-model-id");
|
|
398
887
|
```
|
|
399
888
|
|
|
400
889
|
- 95f65c2: chore: use import \* from zod/v4
|
|
@@ -622,13 +1111,13 @@
|
|
|
622
1111
|
Before
|
|
623
1112
|
|
|
624
1113
|
```ts
|
|
625
|
-
model.textEmbeddingModel(
|
|
1114
|
+
model.textEmbeddingModel("my-model-id");
|
|
626
1115
|
```
|
|
627
1116
|
|
|
628
1117
|
After
|
|
629
1118
|
|
|
630
1119
|
```ts
|
|
631
|
-
model.embeddingModel(
|
|
1120
|
+
model.embeddingModel("my-model-id");
|
|
632
1121
|
```
|
|
633
1122
|
|
|
634
1123
|
- Updated dependencies [8d9e8ad]
|
|
@@ -1116,7 +1605,7 @@
|
|
|
1116
1605
|
|
|
1117
1606
|
```js
|
|
1118
1607
|
await generateImage({
|
|
1119
|
-
model: luma.image(
|
|
1608
|
+
model: luma.image("photon-flash-1", {
|
|
1120
1609
|
maxImagesPerCall: 5,
|
|
1121
1610
|
pollIntervalMillis: 500,
|
|
1122
1611
|
}),
|
|
@@ -1129,7 +1618,7 @@
|
|
|
1129
1618
|
|
|
1130
1619
|
```js
|
|
1131
1620
|
await generateImage({
|
|
1132
|
-
model: luma.image(
|
|
1621
|
+
model: luma.image("photon-flash-1"),
|
|
1133
1622
|
prompt,
|
|
1134
1623
|
n: 10,
|
|
1135
1624
|
maxImagesPerCall: 5,
|
|
@@ -1417,7 +1906,7 @@
|
|
|
1417
1906
|
|
|
1418
1907
|
```js
|
|
1419
1908
|
await generateImage({
|
|
1420
|
-
model: luma.image(
|
|
1909
|
+
model: luma.image("photon-flash-1", {
|
|
1421
1910
|
maxImagesPerCall: 5,
|
|
1422
1911
|
pollIntervalMillis: 500,
|
|
1423
1912
|
}),
|
|
@@ -1430,7 +1919,7 @@
|
|
|
1430
1919
|
|
|
1431
1920
|
```js
|
|
1432
1921
|
await generateImage({
|
|
1433
|
-
model: luma.image(
|
|
1922
|
+
model: luma.image("photon-flash-1"),
|
|
1434
1923
|
prompt,
|
|
1435
1924
|
n: 10,
|
|
1436
1925
|
maxImagesPerCall: 5,
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
The **[Fireworks provider](https://ai-sdk.dev/providers/ai-sdk-providers/fireworks)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model and image model support for the [Fireworks](https://fireworks.ai) platform.
|
|
4
4
|
|
|
5
|
+
> **Deploying to Vercel?** With Vercel's AI Gateway you can access Fireworks (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 Fireworks provider is available in the `@ai-sdk/fireworks` module. You can install it with
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
+
import * as _ai_sdk_provider from '@ai-sdk/provider';
|
|
2
3
|
import { ImageModelV4, ProviderV4, LanguageModelV4, EmbeddingModelV4 } from '@ai-sdk/provider';
|
|
3
|
-
import { FetchFunction } from '@ai-sdk/provider-utils';
|
|
4
|
+
import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE, FetchFunction } from '@ai-sdk/provider-utils';
|
|
4
5
|
|
|
5
|
-
type FireworksChatModelId = 'accounts/fireworks/models/deepseek-v3' | 'accounts/fireworks/models/llama-v3p3-70b-instruct' | 'accounts/fireworks/models/llama-v3p2-3b-instruct' | 'accounts/fireworks/models/llama-v3p1-405b-instruct' | 'accounts/fireworks/models/llama-v3p1-8b-instruct' | 'accounts/fireworks/models/mixtral-8x7b-instruct' | 'accounts/fireworks/models/mixtral-8x22b-instruct' | 'accounts/fireworks/models/mixtral-8x7b-instruct-hf' | 'accounts/fireworks/models/qwen2p5-coder-32b-instruct' | 'accounts/fireworks/models/qwen2p5-72b-instruct' | 'accounts/fireworks/models/qwen-qwq-32b-preview' | 'accounts/fireworks/models/qwen2-vl-72b-instruct' | 'accounts/fireworks/models/llama-v3p2-11b-vision-instruct' | 'accounts/fireworks/models/qwq-32b' | 'accounts/fireworks/models/yi-large' | 'accounts/fireworks/models/kimi-k2-instruct' | 'accounts/fireworks/models/kimi-k2-thinking' | 'accounts/fireworks/models/kimi-
|
|
6
|
+
type FireworksChatModelId = 'accounts/fireworks/models/deepseek-v3' | 'accounts/fireworks/models/llama-v3p3-70b-instruct' | 'accounts/fireworks/models/llama-v3p2-3b-instruct' | 'accounts/fireworks/models/llama-v3p1-405b-instruct' | 'accounts/fireworks/models/llama-v3p1-8b-instruct' | 'accounts/fireworks/models/mixtral-8x7b-instruct' | 'accounts/fireworks/models/mixtral-8x22b-instruct' | 'accounts/fireworks/models/mixtral-8x7b-instruct-hf' | 'accounts/fireworks/models/qwen2p5-coder-32b-instruct' | 'accounts/fireworks/models/qwen2p5-72b-instruct' | 'accounts/fireworks/models/qwen-qwq-32b-preview' | 'accounts/fireworks/models/qwen2-vl-72b-instruct' | 'accounts/fireworks/models/llama-v3p2-11b-vision-instruct' | 'accounts/fireworks/models/qwq-32b' | 'accounts/fireworks/models/yi-large' | 'accounts/fireworks/models/kimi-k2-instruct' | 'accounts/fireworks/models/kimi-k2-thinking' | 'accounts/fireworks/models/kimi-k2p6' | 'accounts/fireworks/models/minimax-m2' | (string & {});
|
|
6
7
|
declare const fireworksLanguageModelOptions: z.ZodObject<{
|
|
8
|
+
promptCacheKey: z.ZodOptional<z.ZodString>;
|
|
7
9
|
thinking: z.ZodOptional<z.ZodObject<{
|
|
8
10
|
type: z.ZodOptional<z.ZodEnum<{
|
|
9
11
|
enabled: "enabled";
|
|
@@ -28,7 +30,7 @@ type FireworksImageModelId = 'accounts/fireworks/models/flux-1-dev-fp8' | 'accou
|
|
|
28
30
|
interface FireworksImageModelConfig {
|
|
29
31
|
provider: string;
|
|
30
32
|
baseURL: string;
|
|
31
|
-
headers
|
|
33
|
+
headers?: () => Record<string, string>;
|
|
32
34
|
fetch?: FetchFunction;
|
|
33
35
|
/**
|
|
34
36
|
* Poll interval in milliseconds between status checks for async models.
|
|
@@ -50,6 +52,14 @@ declare class FireworksImageModel implements ImageModelV4 {
|
|
|
50
52
|
readonly specificationVersion = "v4";
|
|
51
53
|
readonly maxImagesPerCall = 1;
|
|
52
54
|
get provider(): string;
|
|
55
|
+
static [WORKFLOW_SERIALIZE](model: FireworksImageModel): {
|
|
56
|
+
modelId: string;
|
|
57
|
+
config: _ai_sdk_provider.JSONObject;
|
|
58
|
+
};
|
|
59
|
+
static [WORKFLOW_DESERIALIZE](options: {
|
|
60
|
+
modelId: FireworksImageModelId;
|
|
61
|
+
config: FireworksImageModelConfig;
|
|
62
|
+
}): FireworksImageModel;
|
|
53
63
|
constructor(modelId: FireworksImageModelId, config: FireworksImageModelConfig);
|
|
54
64
|
doGenerate({ prompt, n, size, aspectRatio, seed, providerOptions, headers, abortSignal, files, mask, }: Parameters<ImageModelV4['doGenerate']>[0]): Promise<Awaited<ReturnType<ImageModelV4['doGenerate']>>>;
|
|
55
65
|
/**
|