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