@ai-sdk/fireworks 3.0.100 → 3.0.102
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 +18 -0
- package/dist/index.d.ts +178 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +433 -411
- package/dist/index.js.map +1 -1
- package/package.json +9 -5
- package/src/fireworks-model-catalog.ts +595 -252
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @ai-sdk/fireworks
|
|
2
2
|
|
|
3
|
+
## 3.0.102
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f2110e5: refactor(fireworks): declare model capabilities per model ID
|
|
8
|
+
- Updated dependencies [f958ef0]
|
|
9
|
+
- @ai-sdk/provider@4.0.40
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.87
|
|
11
|
+
- @ai-sdk/openai-compatible@3.0.98
|
|
12
|
+
|
|
13
|
+
## 3.0.101
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [743e15b]
|
|
18
|
+
- @ai-sdk/provider-utils@5.0.86
|
|
19
|
+
- @ai-sdk/openai-compatible@3.0.97
|
|
20
|
+
|
|
3
21
|
## 3.0.100
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2,80 +2,251 @@ import { FetchFunction, InferSchema, Resolvable, WORKFLOW_DESERIALIZE, WORKFLOW_
|
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
import { EmbeddingModelV4, ImageModelV4, LanguageModelV4, ProviderV4 } from "@ai-sdk/provider";
|
|
4
4
|
//#region src/fireworks-model-catalog.d.ts
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Language model matrix: model IDs by capability. To add a model, add a row
|
|
7
|
+
* and fill in every column.
|
|
8
|
+
*/
|
|
9
|
+
declare const languageModelDefinitions: {
|
|
6
10
|
readonly 'accounts/fireworks/models/deepseek-v3': {
|
|
7
11
|
readonly endpoints: readonly ["chat"];
|
|
12
|
+
readonly image: false;
|
|
13
|
+
readonly objectGeneration: true;
|
|
14
|
+
readonly functionTools: readonly [];
|
|
15
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
8
16
|
};
|
|
9
17
|
readonly 'accounts/fireworks/models/llama-v3p3-70b-instruct': {
|
|
10
18
|
readonly endpoints: readonly ["chat"];
|
|
19
|
+
readonly image: false;
|
|
20
|
+
readonly objectGeneration: true;
|
|
21
|
+
readonly functionTools: readonly [];
|
|
22
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
11
23
|
};
|
|
12
24
|
readonly 'accounts/fireworks/models/llama-v3p2-3b-instruct': {
|
|
13
25
|
readonly endpoints: readonly ["chat"];
|
|
26
|
+
readonly image: false;
|
|
27
|
+
readonly objectGeneration: true;
|
|
28
|
+
readonly functionTools: readonly [];
|
|
29
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
14
30
|
};
|
|
15
31
|
readonly 'accounts/fireworks/models/llama-v3p1-405b-instruct': {
|
|
16
32
|
readonly endpoints: readonly ["chat"];
|
|
33
|
+
readonly image: false;
|
|
34
|
+
readonly objectGeneration: true;
|
|
35
|
+
readonly functionTools: readonly ["streaming"];
|
|
36
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
17
37
|
};
|
|
18
38
|
readonly 'accounts/fireworks/models/llama-v3p1-8b-instruct': {
|
|
19
39
|
readonly endpoints: readonly ["chat"];
|
|
40
|
+
readonly image: false;
|
|
41
|
+
readonly objectGeneration: true;
|
|
42
|
+
readonly functionTools: readonly [];
|
|
43
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
20
44
|
};
|
|
21
45
|
readonly 'accounts/fireworks/models/mixtral-8x7b-instruct': {
|
|
22
46
|
readonly endpoints: readonly ["chat"];
|
|
47
|
+
readonly image: false;
|
|
48
|
+
readonly objectGeneration: true;
|
|
49
|
+
readonly functionTools: readonly [];
|
|
50
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
23
51
|
};
|
|
24
52
|
readonly 'accounts/fireworks/models/mixtral-8x22b-instruct': {
|
|
25
53
|
readonly endpoints: readonly ["chat"];
|
|
54
|
+
readonly image: false;
|
|
55
|
+
readonly objectGeneration: true;
|
|
56
|
+
readonly functionTools: readonly [];
|
|
57
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
26
58
|
};
|
|
27
59
|
readonly 'accounts/fireworks/models/mixtral-8x7b-instruct-hf': {
|
|
28
60
|
readonly endpoints: readonly ["chat"];
|
|
61
|
+
readonly image: false;
|
|
62
|
+
readonly objectGeneration: true;
|
|
63
|
+
readonly functionTools: readonly [];
|
|
64
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
29
65
|
};
|
|
30
66
|
readonly 'accounts/fireworks/models/qwen2p5-coder-32b-instruct': {
|
|
31
67
|
readonly endpoints: readonly ["chat"];
|
|
68
|
+
readonly image: false;
|
|
69
|
+
readonly objectGeneration: true;
|
|
70
|
+
readonly functionTools: readonly [];
|
|
71
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
32
72
|
};
|
|
33
73
|
readonly 'accounts/fireworks/models/qwen2p5-72b-instruct': {
|
|
34
74
|
readonly endpoints: readonly ["chat"];
|
|
75
|
+
readonly image: false;
|
|
76
|
+
readonly objectGeneration: true;
|
|
77
|
+
readonly functionTools: readonly [];
|
|
78
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
35
79
|
};
|
|
36
80
|
readonly 'accounts/fireworks/models/qwen-qwq-32b-preview': {
|
|
37
81
|
readonly endpoints: readonly ["chat"];
|
|
82
|
+
readonly image: false;
|
|
83
|
+
readonly objectGeneration: true;
|
|
84
|
+
readonly functionTools: false;
|
|
85
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
38
86
|
};
|
|
39
87
|
readonly 'accounts/fireworks/models/qwen2-vl-72b-instruct': {
|
|
40
88
|
readonly endpoints: readonly ["chat"];
|
|
89
|
+
readonly image: true;
|
|
90
|
+
readonly objectGeneration: true;
|
|
91
|
+
readonly functionTools: false;
|
|
92
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
41
93
|
};
|
|
42
94
|
readonly 'accounts/fireworks/models/llama-v3p2-11b-vision-instruct': {
|
|
43
95
|
readonly endpoints: readonly ["chat"];
|
|
96
|
+
readonly image: true;
|
|
97
|
+
readonly objectGeneration: true;
|
|
98
|
+
readonly functionTools: readonly [];
|
|
99
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
44
100
|
};
|
|
45
101
|
readonly 'accounts/fireworks/models/qwq-32b': {
|
|
46
102
|
readonly endpoints: readonly ["chat"];
|
|
103
|
+
readonly image: false;
|
|
104
|
+
readonly objectGeneration: true;
|
|
105
|
+
readonly functionTools: false;
|
|
106
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
47
107
|
};
|
|
48
108
|
readonly 'accounts/fireworks/models/yi-large': {
|
|
49
109
|
readonly endpoints: readonly ["chat"];
|
|
110
|
+
readonly image: false;
|
|
111
|
+
readonly objectGeneration: true;
|
|
112
|
+
readonly functionTools: readonly [];
|
|
113
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
50
114
|
};
|
|
51
115
|
readonly 'accounts/fireworks/models/kimi-k2-instruct': {
|
|
52
116
|
readonly endpoints: readonly ["chat"];
|
|
117
|
+
readonly image: false;
|
|
118
|
+
readonly objectGeneration: true;
|
|
119
|
+
readonly functionTools: readonly [];
|
|
120
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
53
121
|
};
|
|
54
122
|
readonly 'accounts/fireworks/models/kimi-k2-thinking': {
|
|
55
123
|
readonly endpoints: readonly ["chat"];
|
|
124
|
+
readonly image: false;
|
|
125
|
+
readonly objectGeneration: true;
|
|
126
|
+
readonly functionTools: readonly [];
|
|
127
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
56
128
|
};
|
|
57
129
|
readonly 'accounts/fireworks/models/kimi-k2p6': {
|
|
58
130
|
readonly endpoints: readonly ["chat"];
|
|
131
|
+
readonly image: true;
|
|
132
|
+
readonly objectGeneration: true;
|
|
133
|
+
readonly functionTools: readonly [];
|
|
134
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
59
135
|
};
|
|
60
136
|
readonly 'accounts/fireworks/models/minimax-m2': {
|
|
61
137
|
readonly endpoints: readonly ["chat"];
|
|
138
|
+
readonly image: false;
|
|
139
|
+
readonly objectGeneration: true;
|
|
140
|
+
readonly functionTools: readonly [];
|
|
141
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
62
142
|
};
|
|
63
143
|
readonly 'accounts/fireworks/models/llama-v3-8b-instruct': {
|
|
64
144
|
readonly endpoints: readonly ["completion"];
|
|
145
|
+
readonly image: "unknown";
|
|
146
|
+
readonly objectGeneration: "unknown";
|
|
147
|
+
readonly functionTools: "unknown";
|
|
148
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
65
149
|
};
|
|
66
150
|
readonly 'accounts/fireworks/models/llama-v2-34b-code': {
|
|
67
151
|
readonly endpoints: readonly ["completion"];
|
|
152
|
+
readonly image: "unknown";
|
|
153
|
+
readonly objectGeneration: "unknown";
|
|
154
|
+
readonly functionTools: "unknown";
|
|
155
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
156
|
+
};
|
|
157
|
+
readonly 'accounts/fireworks/models/firefunction-v1': {
|
|
158
|
+
readonly endpoints: readonly [];
|
|
159
|
+
readonly image: false;
|
|
160
|
+
readonly objectGeneration: true;
|
|
161
|
+
readonly functionTools: readonly ["streaming"];
|
|
162
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
163
|
+
};
|
|
164
|
+
readonly 'accounts/fireworks/models/deepseek-r1': {
|
|
165
|
+
readonly endpoints: readonly [];
|
|
166
|
+
readonly image: false;
|
|
167
|
+
readonly objectGeneration: true;
|
|
168
|
+
readonly functionTools: false;
|
|
169
|
+
readonly reasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Image model matrix: model IDs by capability. To add a model, add a row and
|
|
174
|
+
* fill in every column.
|
|
175
|
+
*/
|
|
176
|
+
declare const imageModelDefinitions: {
|
|
177
|
+
'accounts/fireworks/models/flux-1-dev-fp8': {
|
|
178
|
+
urlFormat: "workflows";
|
|
179
|
+
size: false;
|
|
180
|
+
fileInput: false;
|
|
181
|
+
maskInput: false;
|
|
182
|
+
};
|
|
183
|
+
'accounts/fireworks/models/flux-1-schnell-fp8': {
|
|
184
|
+
urlFormat: "workflows";
|
|
185
|
+
size: false;
|
|
186
|
+
fileInput: false;
|
|
187
|
+
maskInput: false;
|
|
188
|
+
};
|
|
189
|
+
'accounts/fireworks/models/flux-kontext-pro': {
|
|
190
|
+
urlFormat: "workflows_async";
|
|
191
|
+
size: false;
|
|
192
|
+
fileInput: true;
|
|
193
|
+
maskInput: false;
|
|
194
|
+
};
|
|
195
|
+
'accounts/fireworks/models/flux-kontext-max': {
|
|
196
|
+
urlFormat: "workflows_async";
|
|
197
|
+
size: false;
|
|
198
|
+
fileInput: true;
|
|
199
|
+
maskInput: false;
|
|
200
|
+
};
|
|
201
|
+
'accounts/fireworks/models/playground-v2-5-1024px-aesthetic': {
|
|
202
|
+
urlFormat: "image_generation";
|
|
203
|
+
size: true;
|
|
204
|
+
fileInput: false;
|
|
205
|
+
maskInput: false;
|
|
206
|
+
};
|
|
207
|
+
'accounts/fireworks/models/japanese-stable-diffusion-xl': {
|
|
208
|
+
urlFormat: "image_generation";
|
|
209
|
+
size: true;
|
|
210
|
+
fileInput: false;
|
|
211
|
+
maskInput: false;
|
|
212
|
+
};
|
|
213
|
+
'accounts/fireworks/models/playground-v2-1024px-aesthetic': {
|
|
214
|
+
urlFormat: "image_generation";
|
|
215
|
+
size: true;
|
|
216
|
+
fileInput: false;
|
|
217
|
+
maskInput: false;
|
|
218
|
+
};
|
|
219
|
+
'accounts/fireworks/models/SSD-1B': {
|
|
220
|
+
urlFormat: "image_generation";
|
|
221
|
+
size: true;
|
|
222
|
+
fileInput: false;
|
|
223
|
+
maskInput: false;
|
|
224
|
+
};
|
|
225
|
+
'accounts/fireworks/models/stable-diffusion-xl-1024-v1-0': {
|
|
226
|
+
urlFormat: "image_generation";
|
|
227
|
+
size: true;
|
|
228
|
+
fileInput: false;
|
|
229
|
+
maskInput: false;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Embedding model matrix: model IDs by capability. To add a model, add a row
|
|
234
|
+
* and fill in every column.
|
|
235
|
+
*/
|
|
236
|
+
declare const embeddingModelDefinitions: {
|
|
237
|
+
'nomic-ai/nomic-embed-text-v1.5': {
|
|
238
|
+
defaultDimensions: number;
|
|
239
|
+
maxTokens: number;
|
|
240
|
+
customDimensions: "unknown";
|
|
68
241
|
};
|
|
69
242
|
};
|
|
70
|
-
|
|
71
|
-
declare const imageModelIds: readonly ["accounts/fireworks/models/flux-1-dev-fp8", "accounts/fireworks/models/flux-1-schnell-fp8", "accounts/fireworks/models/flux-kontext-pro", "accounts/fireworks/models/flux-kontext-max", "accounts/fireworks/models/playground-v2-5-1024px-aesthetic", "accounts/fireworks/models/japanese-stable-diffusion-xl", "accounts/fireworks/models/playground-v2-1024px-aesthetic", "accounts/fireworks/models/SSD-1B", "accounts/fireworks/models/stable-diffusion-xl-1024-v1-0"];
|
|
72
|
-
type FireworksEndpointModelId<Endpoint extends 'chat' | 'completion'> = { [ModelId in keyof typeof languageDefinitions]: Endpoint extends (typeof languageDefinitions)[ModelId]['endpoints'][number] ? ModelId : never; }[keyof typeof languageDefinitions];
|
|
243
|
+
type FireworksEndpointModelId<Endpoint extends 'chat' | 'completion'> = { [ModelId in keyof typeof languageModelDefinitions]: Endpoint extends (typeof languageModelDefinitions)[ModelId]['endpoints'][number] ? ModelId : never; }[keyof typeof languageModelDefinitions];
|
|
73
244
|
/** Known model IDs, derived from the declarations used to build the catalog. */
|
|
74
245
|
type FireworksModelIds = {
|
|
75
246
|
chat: FireworksEndpointModelId<'chat'>;
|
|
76
247
|
completion: FireworksEndpointModelId<'completion'>;
|
|
77
|
-
embedding:
|
|
78
|
-
image:
|
|
248
|
+
embedding: keyof typeof embeddingModelDefinitions;
|
|
249
|
+
image: keyof typeof imageModelDefinitions;
|
|
79
250
|
};
|
|
80
251
|
//#endregion
|
|
81
252
|
//#region src/fireworks-chat-options.d.ts
|
|
@@ -132,7 +303,7 @@ export declare class FireworksImageModel implements ImageModelV4 {
|
|
|
132
303
|
readonly modelId: FireworksImageModelId;
|
|
133
304
|
private config;
|
|
134
305
|
readonly specificationVersion = "v4";
|
|
135
|
-
get maxImagesPerCall():
|
|
306
|
+
get maxImagesPerCall(): number;
|
|
136
307
|
get supportsFileInputs(): boolean | undefined;
|
|
137
308
|
get supportsMaskInputs(): boolean | undefined;
|
|
138
309
|
get provider(): string;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/fireworks-model-catalog.ts","../src/fireworks-chat-options.ts","../src/fireworks-embedding-options.ts","../src/fireworks-image-options.ts","../src/fireworks-image-model.ts","../src/fireworks-image-model-options.ts","../src/fireworks-completion-options.ts","../src/fireworks-provider.ts","../src/version.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/fireworks-model-catalog.ts","../src/fireworks-chat-options.ts","../src/fireworks-embedding-options.ts","../src/fireworks-image-options.ts","../src/fireworks-image-model.ts","../src/fireworks-image-model-options.ts","../src/fireworks-completion-options.ts","../src/fireworks-provider.ts","../src/version.ts"],"mappings":";;;;;;;;cAsLM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuHA;;;;;;;KA+DD,yBAAyB,6CAC3B,wBAAwB,2BAA2B,yBAAyB,0BAA0B,gCACnG,gCAES;;KAGH;EACV,MAAM;EACN,YAAY;EACZ,wBAAwB;EACxB,oBAAoB;;;;KCr1BV,uBAAuB;cAEtB,+BAA6B,EAAA;;;;;;;;;;;;;;;;;GAoBxC,EAAA,KAAA;KAEU,gCAAgC,EAAE,aACrC;;;KC1BG,4BACR;cAGS,gCAA8B,EAAA,cAAA,EAAA,KAAA;KAE/B,iCAAiC,EAAE,aACtC;;;KCRG,wBAAwB;;;UCkD1B;EACR;EACA;EACA,UAAU,WAAW;EACrB,QAAQ;;;;;EAKR;;;;;EAKA;EACA;IACE,oBAAoB;;;qBAIX,+BAA+B;WAoC/B,SAAS;UACV;WApCD;MACL;MAKA;MAMA;MAIA;UAII,oBAAoB,OAAO;;;;UAO3B,sBAAsB;IAC5B,SAAS;IACT,QAAQ;MACT;EAKU,YAAA,SAAS,uBACV,QAAQ;EAGZ,aACJ,QACA,GACA,MACA,aACA,MACA,iBACA,SACA,aACA,OACA,QACC,WAAW,iCAAiC,QAC7C,QAAQ,WAAW;;;;;UA0GP;;;;UAkEA;;;;cClSH,mEAAgC;;;;;;;;;;;;KAmDjC,6BAA6B,mBAChC;;;KCzDG,6BACR;;;KC2BQ,qBAAqB,EAAE,aAAa;cAE1C,sBAAoB,EAAA;;;;;;;;GAWxB,EAAA,KAAA;UAQe;;;;;;EAMf,SAAS;;;;EAIT;;;;EAIA,UAAU;;;;;EAKV,QAAQ;;UAGO,0BAA0B;;;;GAIxC,SAAS,uBAAuB;;;;EAKjC,UAAU,SAAS,uBAAuB;;;;EAK1C,gBAAgB,SAAS,6BAA6B;;;;EAKtD,cAAc,SAAS,uBAAuB;;;;EAK9C,eAAe,SAAS,4BAA4B;;;;EAKpD,mBAAmB,SAAS,4BAA4B;;;;EAKxD,MAAM,SAAS,wBAAwB;;;;EAKvC,WAAW,SAAS,wBAAwB;;wBAK9B,gBACd,UAAS,4BACR;qBAuHU,WAAS;;;qBC5OT"}
|