@ai-sdk/fireworks 3.0.0-beta.5 → 3.0.0-beta.59

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,494 @@
1
1
  # @ai-sdk/fireworks
2
2
 
3
+ ## 3.0.0-beta.59
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.58
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.57
23
+
24
+ ### Patch Changes
25
+
26
+ - 38010a1: Enable `includeUsage` for Fireworks so streaming responses report token usage
27
+
28
+ ## 3.0.0-canary.56
29
+
30
+ ### Patch Changes
31
+
32
+ - aeda373: fix: only send provider credentials to same-origin response-supplied URLs
33
+
34
+ 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.
35
+
36
+ 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.
37
+
38
+ - Updated dependencies [aeda373]
39
+ - Updated dependencies [375fdd7]
40
+ - Updated dependencies [b4507d5]
41
+ - @ai-sdk/provider-utils@5.0.0-canary.48
42
+ - @ai-sdk/openai-compatible@3.0.0-canary.56
43
+
44
+ ## 3.0.0-canary.55
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies [bae5e2b]
49
+ - @ai-sdk/provider-utils@5.0.0-canary.47
50
+ - @ai-sdk/openai-compatible@3.0.0-canary.55
51
+
52
+ ## 3.0.0-canary.54
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [ce769dd]
57
+ - @ai-sdk/provider@4.0.0-canary.18
58
+ - @ai-sdk/openai-compatible@3.0.0-canary.54
59
+ - @ai-sdk/provider-utils@5.0.0-canary.46
60
+
61
+ ## 3.0.0-canary.53
62
+
63
+ ### Patch Changes
64
+
65
+ - Updated dependencies [ee798eb]
66
+ - Updated dependencies [daf6637]
67
+ - @ai-sdk/provider-utils@5.0.0-canary.45
68
+ - @ai-sdk/openai-compatible@3.0.0-canary.53
69
+
70
+ ## 3.0.0-canary.52
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [6c93e36]
75
+ - Updated dependencies [f617ac2]
76
+ - @ai-sdk/provider-utils@5.0.0-canary.44
77
+ - @ai-sdk/openai-compatible@3.0.0-canary.52
78
+
79
+ ## 3.0.0-canary.51
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [9f1e1ba]
84
+ - @ai-sdk/openai-compatible@3.0.0-canary.51
85
+
86
+ ## 3.0.0-canary.50
87
+
88
+ ### Patch Changes
89
+
90
+ - 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
91
+ - Updated dependencies [7fc6bd6]
92
+ - @ai-sdk/openai-compatible@3.0.0-canary.50
93
+ - @ai-sdk/provider-utils@5.0.0-canary.43
94
+ - @ai-sdk/provider@4.0.0-canary.17
95
+
96
+ ## 3.0.0-canary.49
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies [a6617c5]
101
+ - @ai-sdk/provider-utils@5.0.0-canary.42
102
+ - @ai-sdk/openai-compatible@3.0.0-canary.49
103
+
104
+ ## 3.0.0-canary.48
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [28dfa06]
109
+ - Updated dependencies [e93fa91]
110
+ - @ai-sdk/provider-utils@5.0.0-canary.41
111
+ - @ai-sdk/openai-compatible@3.0.0-canary.48
112
+
113
+ ## 3.0.0-canary.47
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies [a7de9c9]
118
+ - @ai-sdk/provider-utils@5.0.0-canary.40
119
+ - @ai-sdk/openai-compatible@3.0.0-canary.47
120
+
121
+ ## 3.0.0-canary.46
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies [105f95b]
126
+ - @ai-sdk/provider-utils@5.0.0-canary.39
127
+ - @ai-sdk/openai-compatible@3.0.0-canary.46
128
+
129
+ ## 3.0.0-canary.45
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies [ca446f8]
134
+ - @ai-sdk/provider-utils@5.0.0-canary.38
135
+ - @ai-sdk/openai-compatible@3.0.0-canary.45
136
+
137
+ ## 3.0.0-canary.44
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [d848405]
142
+ - @ai-sdk/provider-utils@5.0.0-canary.37
143
+ - @ai-sdk/openai-compatible@3.0.0-canary.44
144
+
145
+ ## 3.0.0-canary.43
146
+
147
+ ### Patch Changes
148
+
149
+ - Updated dependencies [ca39020]
150
+ - @ai-sdk/provider-utils@5.0.0-canary.36
151
+ - @ai-sdk/openai-compatible@3.0.0-canary.43
152
+
153
+ ## 3.0.0-canary.42
154
+
155
+ ### Patch Changes
156
+
157
+ - Updated dependencies [f634bac]
158
+ - @ai-sdk/provider-utils@5.0.0-canary.35
159
+ - @ai-sdk/openai-compatible@3.0.0-canary.42
160
+
161
+ ## 3.0.0-canary.41
162
+
163
+ ### Patch Changes
164
+
165
+ - Updated dependencies [69254e0]
166
+ - Updated dependencies [3015fc3]
167
+ - @ai-sdk/provider-utils@5.0.0-canary.34
168
+ - @ai-sdk/openai-compatible@3.0.0-canary.41
169
+
170
+ ## 3.0.0-canary.40
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies [2427d88]
175
+ - @ai-sdk/provider-utils@5.0.0-canary.33
176
+ - @ai-sdk/openai-compatible@3.0.0-canary.40
177
+
178
+ ## 3.0.0-canary.39
179
+
180
+ ### Patch Changes
181
+
182
+ - Updated dependencies [5463d0d]
183
+ - @ai-sdk/provider-utils@5.0.0-canary.32
184
+ - @ai-sdk/provider@4.0.0-canary.16
185
+ - @ai-sdk/openai-compatible@3.0.0-canary.39
186
+
187
+ ## 3.0.0-canary.38
188
+
189
+ ### Patch Changes
190
+
191
+ - Updated dependencies [cd9c311]
192
+ - @ai-sdk/openai-compatible@3.0.0-canary.38
193
+
194
+ ## 3.0.0-canary.37
195
+
196
+ ### Patch Changes
197
+
198
+ - 0c4c275: trigger initial canary release
199
+ - Updated dependencies [0c4c275]
200
+ - @ai-sdk/openai-compatible@3.0.0-canary.37
201
+ - @ai-sdk/provider-utils@5.0.0-canary.31
202
+ - @ai-sdk/provider@4.0.0-canary.15
203
+
204
+ ## 3.0.0-beta.36
205
+
206
+ ### Patch Changes
207
+
208
+ - Updated dependencies [e59c955]
209
+ - @ai-sdk/openai-compatible@3.0.0-beta.36
210
+
211
+ ## 3.0.0-beta.35
212
+
213
+ ### Patch Changes
214
+
215
+ - Updated dependencies [08d2129]
216
+ - Updated dependencies [04e9009]
217
+ - @ai-sdk/provider-utils@5.0.0-beta.30
218
+ - @ai-sdk/openai-compatible@3.0.0-beta.35
219
+
220
+ ## 3.0.0-beta.34
221
+
222
+ ### Patch Changes
223
+
224
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
225
+ - Updated dependencies [9bd6512]
226
+ - Updated dependencies [258c093]
227
+ - Updated dependencies [b6783da]
228
+ - @ai-sdk/openai-compatible@3.0.0-beta.34
229
+ - @ai-sdk/provider-utils@5.0.0-beta.29
230
+ - @ai-sdk/provider@4.0.0-beta.14
231
+
232
+ ## 3.0.0-beta.33
233
+
234
+ ### Patch Changes
235
+
236
+ - 9f0e36c: trigger release for all packages after provenance setup
237
+ - Updated dependencies [9f0e36c]
238
+ - @ai-sdk/openai-compatible@3.0.0-beta.33
239
+ - @ai-sdk/provider@4.0.0-beta.13
240
+ - @ai-sdk/provider-utils@5.0.0-beta.28
241
+
242
+ ## 3.0.0-beta.32
243
+
244
+ ### Patch Changes
245
+
246
+ - Updated dependencies [ab81968]
247
+ - Updated dependencies [785fe16]
248
+ - Updated dependencies [67df0a0]
249
+ - Updated dependencies [befb78c]
250
+ - Updated dependencies [0458559]
251
+ - Updated dependencies [58a2ad7]
252
+ - Updated dependencies [5852c0a]
253
+ - Updated dependencies [fc92055]
254
+ - @ai-sdk/openai-compatible@3.0.0-beta.32
255
+ - @ai-sdk/provider-utils@5.0.0-beta.27
256
+
257
+ ## 3.0.0-beta.31
258
+
259
+ ### Patch Changes
260
+
261
+ - Updated dependencies [2e98477]
262
+ - Updated dependencies [bfb756d]
263
+ - @ai-sdk/provider-utils@5.0.0-beta.26
264
+ - @ai-sdk/openai-compatible@3.0.0-beta.31
265
+
266
+ ## 3.0.0-beta.30
267
+
268
+ ### Patch Changes
269
+
270
+ - Updated dependencies [eea8d98]
271
+ - @ai-sdk/provider-utils@5.0.0-beta.25
272
+ - @ai-sdk/openai-compatible@3.0.0-beta.30
273
+
274
+ ## 3.0.0-beta.29
275
+
276
+ ### Patch Changes
277
+
278
+ - Updated dependencies [f807e45]
279
+ - @ai-sdk/provider-utils@5.0.0-beta.24
280
+ - @ai-sdk/openai-compatible@3.0.0-beta.29
281
+
282
+ ## 3.0.0-beta.28
283
+
284
+ ### Patch Changes
285
+
286
+ - Updated dependencies [350ea38]
287
+ - @ai-sdk/provider-utils@5.0.0-beta.23
288
+ - @ai-sdk/openai-compatible@3.0.0-beta.28
289
+
290
+ ## 3.0.0-beta.27
291
+
292
+ ### Patch Changes
293
+
294
+ - Updated dependencies [083947b]
295
+ - @ai-sdk/provider-utils@5.0.0-beta.22
296
+ - @ai-sdk/openai-compatible@3.0.0-beta.27
297
+
298
+ ## 3.0.0-beta.26
299
+
300
+ ### Patch Changes
301
+
302
+ - Updated dependencies [add1126]
303
+ - @ai-sdk/provider-utils@5.0.0-beta.21
304
+ - @ai-sdk/openai-compatible@3.0.0-beta.26
305
+
306
+ ## 3.0.0-beta.25
307
+
308
+ ### Patch Changes
309
+
310
+ - b3976a2: Add workflow serialization support to all provider models.
311
+
312
+ **`@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.
313
+
314
+ **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.
315
+
316
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
317
+
318
+ - Updated dependencies [b3976a2]
319
+ - Updated dependencies [ff5eba1]
320
+ - @ai-sdk/provider-utils@5.0.0-beta.20
321
+ - @ai-sdk/openai-compatible@3.0.0-beta.25
322
+ - @ai-sdk/provider@4.0.0-beta.12
323
+
324
+ ## 3.0.0-beta.24
325
+
326
+ ### Major Changes
327
+
328
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
329
+
330
+ ### Patch Changes
331
+
332
+ - Updated dependencies [ef992f8]
333
+ - @ai-sdk/openai-compatible@3.0.0-beta.24
334
+ - @ai-sdk/provider@4.0.0-beta.11
335
+ - @ai-sdk/provider-utils@5.0.0-beta.19
336
+
337
+ ## 3.0.0-beta.23
338
+
339
+ ### Patch Changes
340
+
341
+ - 90e2d8a: chore: fix unused vars not being flagged by our lint tooling
342
+ - Updated dependencies [90e2d8a]
343
+ - @ai-sdk/openai-compatible@3.0.0-beta.23
344
+ - @ai-sdk/provider-utils@5.0.0-beta.18
345
+
346
+ ## 3.0.0-beta.22
347
+
348
+ ### Patch Changes
349
+
350
+ - Updated dependencies [3ae1786]
351
+ - @ai-sdk/provider-utils@5.0.0-beta.17
352
+ - @ai-sdk/openai-compatible@3.0.0-beta.22
353
+
354
+ ## 3.0.0-beta.21
355
+
356
+ ### Patch Changes
357
+
358
+ - Updated dependencies [176466a]
359
+ - @ai-sdk/provider@4.0.0-beta.10
360
+ - @ai-sdk/openai-compatible@3.0.0-beta.21
361
+ - @ai-sdk/provider-utils@5.0.0-beta.16
362
+
363
+ ## 3.0.0-beta.20
364
+
365
+ ### Patch Changes
366
+
367
+ - Updated dependencies [e311194]
368
+ - @ai-sdk/provider@4.0.0-beta.9
369
+ - @ai-sdk/openai-compatible@3.0.0-beta.20
370
+ - @ai-sdk/provider-utils@5.0.0-beta.15
371
+
372
+ ## 3.0.0-beta.19
373
+
374
+ ### Patch Changes
375
+
376
+ - Updated dependencies [34bd95d]
377
+ - Updated dependencies [008271d]
378
+ - @ai-sdk/provider@4.0.0-beta.8
379
+ - @ai-sdk/openai-compatible@3.0.0-beta.19
380
+ - @ai-sdk/provider-utils@5.0.0-beta.14
381
+
382
+ ## 3.0.0-beta.18
383
+
384
+ ### Patch Changes
385
+
386
+ - Updated dependencies [b0c2869]
387
+ - Updated dependencies [7e26e81]
388
+ - @ai-sdk/provider-utils@5.0.0-beta.13
389
+ - @ai-sdk/openai-compatible@3.0.0-beta.18
390
+
391
+ ## 3.0.0-beta.17
392
+
393
+ ### Patch Changes
394
+
395
+ - Updated dependencies [816ff67]
396
+ - @ai-sdk/openai-compatible@3.0.0-beta.17
397
+
398
+ ## 3.0.0-beta.16
399
+
400
+ ### Patch Changes
401
+
402
+ - Updated dependencies [46d1149]
403
+ - @ai-sdk/provider-utils@5.0.0-beta.12
404
+ - @ai-sdk/openai-compatible@3.0.0-beta.16
405
+
406
+ ## 3.0.0-beta.15
407
+
408
+ ### Patch Changes
409
+
410
+ - Updated dependencies [6fd51c0]
411
+ - @ai-sdk/provider-utils@5.0.0-beta.11
412
+ - @ai-sdk/provider@4.0.0-beta.7
413
+ - @ai-sdk/openai-compatible@3.0.0-beta.15
414
+
415
+ ## 3.0.0-beta.14
416
+
417
+ ### Patch Changes
418
+
419
+ - Updated dependencies [c29a26f]
420
+ - @ai-sdk/openai-compatible@3.0.0-beta.14
421
+ - @ai-sdk/provider-utils@5.0.0-beta.10
422
+ - @ai-sdk/provider@4.0.0-beta.6
423
+
424
+ ## 3.0.0-beta.13
425
+
426
+ ### Patch Changes
427
+
428
+ - 38fc777: Add AI Gateway hint to provider READMEs
429
+ - Updated dependencies [38fc777]
430
+ - @ai-sdk/openai-compatible@3.0.0-beta.13
431
+
432
+ ## 3.0.0-beta.12
433
+
434
+ ### Patch Changes
435
+
436
+ - Updated dependencies [2e17091]
437
+ - @ai-sdk/provider-utils@5.0.0-beta.9
438
+ - @ai-sdk/openai-compatible@3.0.0-beta.12
439
+
440
+ ## 3.0.0-beta.11
441
+
442
+ ### Patch Changes
443
+
444
+ - Updated dependencies [986c6fd]
445
+ - Updated dependencies [493295c]
446
+ - @ai-sdk/provider-utils@5.0.0-beta.8
447
+ - @ai-sdk/openai-compatible@3.0.0-beta.11
448
+
449
+ ## 3.0.0-beta.10
450
+
451
+ ### Patch Changes
452
+
453
+ - Updated dependencies [1f509d4]
454
+ - @ai-sdk/provider-utils@5.0.0-beta.7
455
+ - @ai-sdk/provider@4.0.0-beta.5
456
+ - @ai-sdk/openai-compatible@3.0.0-beta.10
457
+
458
+ ## 3.0.0-beta.9
459
+
460
+ ### Patch Changes
461
+
462
+ - 74d520f: feat: migrate providers to support new top-level `reasoning` parameter
463
+ - Updated dependencies [74d520f]
464
+ - @ai-sdk/openai-compatible@3.0.0-beta.9
465
+
466
+ ## 3.0.0-beta.8
467
+
468
+ ### Patch Changes
469
+
470
+ - Updated dependencies [3887c70]
471
+ - @ai-sdk/provider-utils@5.0.0-beta.6
472
+ - @ai-sdk/provider@4.0.0-beta.4
473
+ - @ai-sdk/openai-compatible@3.0.0-beta.8
474
+
475
+ ## 3.0.0-beta.7
476
+
477
+ ### Patch Changes
478
+
479
+ - Updated dependencies [776b617]
480
+ - @ai-sdk/provider-utils@5.0.0-beta.5
481
+ - @ai-sdk/provider@4.0.0-beta.3
482
+ - @ai-sdk/openai-compatible@3.0.0-beta.7
483
+
484
+ ## 3.0.0-beta.6
485
+
486
+ ### Patch Changes
487
+
488
+ - Updated dependencies [61753c3]
489
+ - @ai-sdk/provider-utils@5.0.0-beta.4
490
+ - @ai-sdk/openai-compatible@3.0.0-beta.6
491
+
3
492
  ## 3.0.0-beta.5
4
493
 
5
494
  ### Patch Changes
@@ -380,13 +869,13 @@
380
869
  Before
381
870
 
382
871
  ```ts
383
- model.textEmbeddingModel('my-model-id');
872
+ model.textEmbeddingModel("my-model-id");
384
873
  ```
385
874
 
386
875
  After
387
876
 
388
877
  ```ts
389
- model.embeddingModel('my-model-id');
878
+ model.embeddingModel("my-model-id");
390
879
  ```
391
880
 
392
881
  - 95f65c2: chore: use import \* from zod/v4
@@ -614,13 +1103,13 @@
614
1103
  Before
615
1104
 
616
1105
  ```ts
617
- model.textEmbeddingModel('my-model-id');
1106
+ model.textEmbeddingModel("my-model-id");
618
1107
  ```
619
1108
 
620
1109
  After
621
1110
 
622
1111
  ```ts
623
- model.embeddingModel('my-model-id');
1112
+ model.embeddingModel("my-model-id");
624
1113
  ```
625
1114
 
626
1115
  - Updated dependencies [8d9e8ad]
@@ -1108,7 +1597,7 @@
1108
1597
 
1109
1598
  ```js
1110
1599
  await generateImage({
1111
- model: luma.image('photon-flash-1', {
1600
+ model: luma.image("photon-flash-1", {
1112
1601
  maxImagesPerCall: 5,
1113
1602
  pollIntervalMillis: 500,
1114
1603
  }),
@@ -1121,7 +1610,7 @@
1121
1610
 
1122
1611
  ```js
1123
1612
  await generateImage({
1124
- model: luma.image('photon-flash-1'),
1613
+ model: luma.image("photon-flash-1"),
1125
1614
  prompt,
1126
1615
  n: 10,
1127
1616
  maxImagesPerCall: 5,
@@ -1409,7 +1898,7 @@
1409
1898
 
1410
1899
  ```js
1411
1900
  await generateImage({
1412
- model: luma.image('photon-flash-1', {
1901
+ model: luma.image("photon-flash-1", {
1413
1902
  maxImagesPerCall: 5,
1414
1903
  pollIntervalMillis: 500,
1415
1904
  }),
@@ -1422,7 +1911,7 @@
1422
1911
 
1423
1912
  ```js
1424
1913
  await generateImage({
1425
- model: luma.image('photon-flash-1'),
1914
+ model: luma.image("photon-flash-1"),
1426
1915
  prompt,
1427
1916
  n: 10,
1428
1917
  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,6 +1,7 @@
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
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-k2p5' | 'accounts/fireworks/models/minimax-m2' | (string & {});
6
7
  declare const fireworksLanguageModelOptions: z.ZodObject<{
@@ -28,7 +29,7 @@ type FireworksImageModelId = 'accounts/fireworks/models/flux-1-dev-fp8' | 'accou
28
29
  interface FireworksImageModelConfig {
29
30
  provider: string;
30
31
  baseURL: string;
31
- headers: () => Record<string, string>;
32
+ headers?: () => Record<string, string>;
32
33
  fetch?: FetchFunction;
33
34
  /**
34
35
  * Poll interval in milliseconds between status checks for async models.
@@ -50,6 +51,14 @@ declare class FireworksImageModel implements ImageModelV4 {
50
51
  readonly specificationVersion = "v4";
51
52
  readonly maxImagesPerCall = 1;
52
53
  get provider(): string;
54
+ static [WORKFLOW_SERIALIZE](model: FireworksImageModel): {
55
+ modelId: string;
56
+ config: _ai_sdk_provider.JSONObject;
57
+ };
58
+ static [WORKFLOW_DESERIALIZE](options: {
59
+ modelId: FireworksImageModelId;
60
+ config: FireworksImageModelConfig;
61
+ }): FireworksImageModel;
53
62
  constructor(modelId: FireworksImageModelId, config: FireworksImageModelConfig);
54
63
  doGenerate({ prompt, n, size, aspectRatio, seed, providerOptions, headers, abortSignal, files, mask, }: Parameters<ImageModelV4['doGenerate']>[0]): Promise<Awaited<ReturnType<ImageModelV4['doGenerate']>>>;
55
64
  /**