@funkai/models 0.2.1 → 0.3.1
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/.turbo/turbo-build.log +35 -36
- package/CHANGELOG.md +18 -0
- package/dist/alibaba-B6q4Ng1R.mjs.map +1 -1
- package/dist/amazon-bedrock-Cv9AHQBH.mjs.map +1 -1
- package/dist/anthropic-yB7ST97_.mjs.map +1 -1
- package/dist/cerebras-COfl7XM-.mjs.map +1 -1
- package/dist/cohere-B7TgO0hT.mjs.map +1 -1
- package/dist/deepinfra-B0GxUwCG.mjs.map +1 -1
- package/dist/deepseek-D64ZEsvS.mjs.map +1 -1
- package/dist/fireworks-ai-DJYvdAi_.mjs.map +1 -1
- package/dist/google-BypRl349.mjs.map +1 -1
- package/dist/google-vertex-DbS-zTGD.mjs.map +1 -1
- package/dist/groq-ei_PerYi.mjs.map +1 -1
- package/dist/huggingface-DaM1EeLP.mjs.map +1 -1
- package/dist/inception-CspEzqNV.mjs.map +1 -1
- package/dist/index.d.mts +41 -87
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +20 -115
- package/dist/index.mjs.map +1 -1
- package/dist/llama-Cf3-koap.mjs.map +1 -1
- package/dist/mistral-BI9MdAO4.mjs.map +1 -1
- package/dist/nvidia-COHacuoa.mjs.map +1 -1
- package/dist/openai-C0nCfZUq.mjs.map +1 -1
- package/dist/openrouter-DSFzxKQb.mjs.map +1 -1
- package/dist/perplexity-zeZ2WlBU.mjs.map +1 -1
- package/dist/providers/alibaba.d.mts +1 -1
- package/dist/providers/amazon-bedrock.d.mts +1 -1
- package/dist/providers/anthropic.d.mts +1 -1
- package/dist/providers/cerebras.d.mts +1 -1
- package/dist/providers/cohere.d.mts +1 -1
- package/dist/providers/deepinfra.d.mts +1 -1
- package/dist/providers/deepseek.d.mts +1 -1
- package/dist/providers/fireworks-ai.d.mts +1 -1
- package/dist/providers/google-vertex.d.mts +1 -1
- package/dist/providers/google.d.mts +1 -1
- package/dist/providers/groq.d.mts +1 -1
- package/dist/providers/huggingface.d.mts +1 -1
- package/dist/providers/inception.d.mts +1 -1
- package/dist/providers/llama.d.mts +1 -1
- package/dist/providers/mistral.d.mts +1 -1
- package/dist/providers/nvidia.d.mts +1 -1
- package/dist/providers/openai.d.mts +1 -1
- package/dist/providers/openrouter.d.mts +1 -1
- package/dist/providers/perplexity.d.mts +1 -1
- package/dist/providers/togetherai.d.mts +1 -1
- package/dist/providers/xai.d.mts +1 -1
- package/dist/togetherai-BvcxUfPE.mjs.map +1 -1
- package/dist/{types-DjdaZckF.d.mts → types-DIzolT_s.d.mts} +61 -21
- package/dist/types-DIzolT_s.d.mts.map +1 -0
- package/dist/xai-fSuAkQJo.mjs.map +1 -1
- package/package.json +7 -6
- package/scripts/generate-models.ts +152 -83
- package/src/catalog/index.test.ts +8 -20
- package/src/catalog/index.ts +4 -1
- package/src/catalog/providers/alibaba.ts +91 -91
- package/src/catalog/providers/amazon-bedrock.ts +205 -185
- package/src/catalog/providers/anthropic.ts +87 -62
- package/src/catalog/providers/cerebras.ts +9 -9
- package/src/catalog/providers/cohere.ts +16 -16
- package/src/catalog/providers/deepinfra.ts +71 -71
- package/src/catalog/providers/deepseek.ts +3 -3
- package/src/catalog/providers/fireworks-ai.ts +36 -36
- package/src/catalog/providers/google-vertex.ts +62 -62
- package/src/catalog/providers/google.ts +69 -69
- package/src/catalog/providers/groq.ts +24 -24
- package/src/catalog/providers/huggingface.ts +52 -52
- package/src/catalog/providers/inception.ts +9 -9
- package/src/catalog/providers/index.ts +1 -0
- package/src/catalog/providers/llama.ts +7 -7
- package/src/catalog/providers/mistral.ts +60 -60
- package/src/catalog/providers/nvidia.ts +84 -84
- package/src/catalog/providers/openai.ts +115 -115
- package/src/catalog/providers/openrouter.ts +448 -433
- package/src/catalog/providers/perplexity.ts +9 -9
- package/src/catalog/providers/togetherai.ts +47 -47
- package/src/catalog/providers/xai.ts +49 -49
- package/src/catalog/types.ts +60 -20
- package/src/cost/calculate.test.ts +11 -19
- package/src/index.ts +2 -8
- package/src/provider/index.ts +2 -8
- package/src/provider/registry.test.ts +87 -0
- package/src/provider/registry.ts +93 -0
- package/src/provider/types.ts +1 -1
- package/tsconfig.json +2 -1
- package/tsdown.config.ts +7 -4
- package/dist/types-DjdaZckF.d.mts.map +0 -1
- package/src/provider/openrouter.test.ts +0 -125
- package/src/provider/openrouter.ts +0 -110
- package/src/provider/resolver.test.ts +0 -138
- package/src/provider/resolver.ts +0 -125
|
@@ -19,9 +19,9 @@ export const MISTRAL_MODELS = [
|
|
|
19
19
|
name: "Devstral Medium",
|
|
20
20
|
provider: "mistral",
|
|
21
21
|
family: "devstral",
|
|
22
|
-
pricing: { input: 4e-7, output: 0.
|
|
23
|
-
contextWindow:
|
|
24
|
-
maxOutput:
|
|
22
|
+
pricing: { input: 4e-7, output: 0.000_002 },
|
|
23
|
+
contextWindow: 128_000,
|
|
24
|
+
maxOutput: 128_000,
|
|
25
25
|
modalities: { input: ["text"], output: ["text"] },
|
|
26
26
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
27
27
|
},
|
|
@@ -31,8 +31,8 @@ export const MISTRAL_MODELS = [
|
|
|
31
31
|
provider: "mistral",
|
|
32
32
|
family: "devstral",
|
|
33
33
|
pricing: { input: 0, output: 0 },
|
|
34
|
-
contextWindow:
|
|
35
|
-
maxOutput:
|
|
34
|
+
contextWindow: 256_000,
|
|
35
|
+
maxOutput: 256_000,
|
|
36
36
|
modalities: { input: ["text", "image"], output: ["text"] },
|
|
37
37
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
38
38
|
},
|
|
@@ -41,9 +41,9 @@ export const MISTRAL_MODELS = [
|
|
|
41
41
|
name: "Devstral 2 (latest)",
|
|
42
42
|
provider: "mistral",
|
|
43
43
|
family: "devstral",
|
|
44
|
-
pricing: { input: 4e-7, output: 0.
|
|
45
|
-
contextWindow:
|
|
46
|
-
maxOutput:
|
|
44
|
+
pricing: { input: 4e-7, output: 0.000_002 },
|
|
45
|
+
contextWindow: 262_144,
|
|
46
|
+
maxOutput: 262_144,
|
|
47
47
|
modalities: { input: ["text"], output: ["text"] },
|
|
48
48
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
49
49
|
},
|
|
@@ -64,8 +64,8 @@ export const MISTRAL_MODELS = [
|
|
|
64
64
|
provider: "mistral",
|
|
65
65
|
family: "mistral-small",
|
|
66
66
|
pricing: { input: 1e-7, output: 3e-7 },
|
|
67
|
-
contextWindow:
|
|
68
|
-
maxOutput:
|
|
67
|
+
contextWindow: 128_000,
|
|
68
|
+
maxOutput: 16_384,
|
|
69
69
|
modalities: { input: ["text", "image"], output: ["text"] },
|
|
70
70
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
71
71
|
},
|
|
@@ -74,9 +74,9 @@ export const MISTRAL_MODELS = [
|
|
|
74
74
|
name: "Mistral Medium 3",
|
|
75
75
|
provider: "mistral",
|
|
76
76
|
family: "mistral-medium",
|
|
77
|
-
pricing: { input: 4e-7, output: 0.
|
|
78
|
-
contextWindow:
|
|
79
|
-
maxOutput:
|
|
77
|
+
pricing: { input: 4e-7, output: 0.000_002 },
|
|
78
|
+
contextWindow: 131_072,
|
|
79
|
+
maxOutput: 131_072,
|
|
80
80
|
modalities: { input: ["text", "image"], output: ["text"] },
|
|
81
81
|
capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
|
|
82
82
|
},
|
|
@@ -86,7 +86,7 @@ export const MISTRAL_MODELS = [
|
|
|
86
86
|
provider: "mistral",
|
|
87
87
|
family: "codestral",
|
|
88
88
|
pricing: { input: 3e-7, output: 9e-7 },
|
|
89
|
-
contextWindow:
|
|
89
|
+
contextWindow: 256_000,
|
|
90
90
|
maxOutput: 4096,
|
|
91
91
|
modalities: { input: ["text"], output: ["text"] },
|
|
92
92
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
@@ -97,8 +97,8 @@ export const MISTRAL_MODELS = [
|
|
|
97
97
|
provider: "mistral",
|
|
98
98
|
family: "ministral",
|
|
99
99
|
pricing: { input: 1e-7, output: 1e-7 },
|
|
100
|
-
contextWindow:
|
|
101
|
-
maxOutput:
|
|
100
|
+
contextWindow: 128_000,
|
|
101
|
+
maxOutput: 128_000,
|
|
102
102
|
modalities: { input: ["text"], output: ["text"] },
|
|
103
103
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
104
104
|
},
|
|
@@ -107,9 +107,9 @@ export const MISTRAL_MODELS = [
|
|
|
107
107
|
name: "Magistral Small",
|
|
108
108
|
provider: "mistral",
|
|
109
109
|
family: "magistral-small",
|
|
110
|
-
pricing: { input: 5e-7, output: 0.
|
|
111
|
-
contextWindow:
|
|
112
|
-
maxOutput:
|
|
110
|
+
pricing: { input: 5e-7, output: 0.000_001_5 },
|
|
111
|
+
contextWindow: 128_000,
|
|
112
|
+
maxOutput: 128_000,
|
|
113
113
|
modalities: { input: ["text"], output: ["text"] },
|
|
114
114
|
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
115
115
|
},
|
|
@@ -118,9 +118,9 @@ export const MISTRAL_MODELS = [
|
|
|
118
118
|
name: "Mistral Large 3",
|
|
119
119
|
provider: "mistral",
|
|
120
120
|
family: "mistral-large",
|
|
121
|
-
pricing: { input: 5e-7, output: 0.
|
|
122
|
-
contextWindow:
|
|
123
|
-
maxOutput:
|
|
121
|
+
pricing: { input: 5e-7, output: 0.000_001_5 },
|
|
122
|
+
contextWindow: 262_144,
|
|
123
|
+
maxOutput: 262_144,
|
|
124
124
|
modalities: { input: ["text", "image"], output: ["text"] },
|
|
125
125
|
capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
|
|
126
126
|
},
|
|
@@ -130,8 +130,8 @@ export const MISTRAL_MODELS = [
|
|
|
130
130
|
provider: "mistral",
|
|
131
131
|
family: "ministral",
|
|
132
132
|
pricing: { input: 4e-8, output: 4e-8 },
|
|
133
|
-
contextWindow:
|
|
134
|
-
maxOutput:
|
|
133
|
+
contextWindow: 128_000,
|
|
134
|
+
maxOutput: 128_000,
|
|
135
135
|
modalities: { input: ["text"], output: ["text"] },
|
|
136
136
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
137
137
|
},
|
|
@@ -152,8 +152,8 @@ export const MISTRAL_MODELS = [
|
|
|
152
152
|
provider: "mistral",
|
|
153
153
|
family: "devstral",
|
|
154
154
|
pricing: { input: 1e-7, output: 3e-7 },
|
|
155
|
-
contextWindow:
|
|
156
|
-
maxOutput:
|
|
155
|
+
contextWindow: 128_000,
|
|
156
|
+
maxOutput: 128_000,
|
|
157
157
|
modalities: { input: ["text"], output: ["text"] },
|
|
158
158
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
159
159
|
},
|
|
@@ -163,8 +163,8 @@ export const MISTRAL_MODELS = [
|
|
|
163
163
|
provider: "mistral",
|
|
164
164
|
family: "pixtral",
|
|
165
165
|
pricing: { input: 1.5e-7, output: 1.5e-7 },
|
|
166
|
-
contextWindow:
|
|
167
|
-
maxOutput:
|
|
166
|
+
contextWindow: 128_000,
|
|
167
|
+
maxOutput: 128_000,
|
|
168
168
|
modalities: { input: ["text", "image"], output: ["text"] },
|
|
169
169
|
capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
|
|
170
170
|
},
|
|
@@ -174,8 +174,8 @@ export const MISTRAL_MODELS = [
|
|
|
174
174
|
provider: "mistral",
|
|
175
175
|
family: "mixtral",
|
|
176
176
|
pricing: { input: 7e-7, output: 7e-7 },
|
|
177
|
-
contextWindow:
|
|
178
|
-
maxOutput:
|
|
177
|
+
contextWindow: 32_000,
|
|
178
|
+
maxOutput: 32_000,
|
|
179
179
|
modalities: { input: ["text"], output: ["text"] },
|
|
180
180
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
181
181
|
},
|
|
@@ -184,9 +184,9 @@ export const MISTRAL_MODELS = [
|
|
|
184
184
|
name: "Pixtral Large (latest)",
|
|
185
185
|
provider: "mistral",
|
|
186
186
|
family: "pixtral",
|
|
187
|
-
pricing: { input: 0.
|
|
188
|
-
contextWindow:
|
|
189
|
-
maxOutput:
|
|
187
|
+
pricing: { input: 0.000_002, output: 0.000_006 },
|
|
188
|
+
contextWindow: 128_000,
|
|
189
|
+
maxOutput: 128_000,
|
|
190
190
|
modalities: { input: ["text", "image"], output: ["text"] },
|
|
191
191
|
capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
|
|
192
192
|
},
|
|
@@ -196,8 +196,8 @@ export const MISTRAL_MODELS = [
|
|
|
196
196
|
provider: "mistral",
|
|
197
197
|
family: "mistral-nemo",
|
|
198
198
|
pricing: { input: 1.5e-7, output: 1.5e-7 },
|
|
199
|
-
contextWindow:
|
|
200
|
-
maxOutput:
|
|
199
|
+
contextWindow: 128_000,
|
|
200
|
+
maxOutput: 128_000,
|
|
201
201
|
modalities: { input: ["text"], output: ["text"] },
|
|
202
202
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
203
203
|
},
|
|
@@ -206,9 +206,9 @@ export const MISTRAL_MODELS = [
|
|
|
206
206
|
name: "Devstral 2",
|
|
207
207
|
provider: "mistral",
|
|
208
208
|
family: "devstral",
|
|
209
|
-
pricing: { input: 4e-7, output: 0.
|
|
210
|
-
contextWindow:
|
|
211
|
-
maxOutput:
|
|
209
|
+
pricing: { input: 4e-7, output: 0.000_002 },
|
|
210
|
+
contextWindow: 262_144,
|
|
211
|
+
maxOutput: 262_144,
|
|
212
212
|
modalities: { input: ["text"], output: ["text"] },
|
|
213
213
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
214
214
|
},
|
|
@@ -217,9 +217,9 @@ export const MISTRAL_MODELS = [
|
|
|
217
217
|
name: "Mistral Large (latest)",
|
|
218
218
|
provider: "mistral",
|
|
219
219
|
family: "mistral-large",
|
|
220
|
-
pricing: { input: 5e-7, output: 0.
|
|
221
|
-
contextWindow:
|
|
222
|
-
maxOutput:
|
|
220
|
+
pricing: { input: 5e-7, output: 0.000_001_5 },
|
|
221
|
+
contextWindow: 262_144,
|
|
222
|
+
maxOutput: 262_144,
|
|
223
223
|
modalities: { input: ["text", "image"], output: ["text"] },
|
|
224
224
|
capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
|
|
225
225
|
},
|
|
@@ -228,9 +228,9 @@ export const MISTRAL_MODELS = [
|
|
|
228
228
|
name: "Mistral Medium 3.1",
|
|
229
229
|
provider: "mistral",
|
|
230
230
|
family: "mistral-medium",
|
|
231
|
-
pricing: { input: 4e-7, output: 0.
|
|
232
|
-
contextWindow:
|
|
233
|
-
maxOutput:
|
|
231
|
+
pricing: { input: 4e-7, output: 0.000_002 },
|
|
232
|
+
contextWindow: 262_144,
|
|
233
|
+
maxOutput: 262_144,
|
|
234
234
|
modalities: { input: ["text", "image"], output: ["text"] },
|
|
235
235
|
capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
|
|
236
236
|
},
|
|
@@ -239,9 +239,9 @@ export const MISTRAL_MODELS = [
|
|
|
239
239
|
name: "Mistral Large 2.1",
|
|
240
240
|
provider: "mistral",
|
|
241
241
|
family: "mistral-large",
|
|
242
|
-
pricing: { input: 0.
|
|
243
|
-
contextWindow:
|
|
244
|
-
maxOutput:
|
|
242
|
+
pricing: { input: 0.000_002, output: 0.000_006 },
|
|
243
|
+
contextWindow: 131_072,
|
|
244
|
+
maxOutput: 16_384,
|
|
245
245
|
modalities: { input: ["text"], output: ["text"] },
|
|
246
246
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
247
247
|
},
|
|
@@ -251,8 +251,8 @@ export const MISTRAL_MODELS = [
|
|
|
251
251
|
provider: "mistral",
|
|
252
252
|
family: "mistral-small",
|
|
253
253
|
pricing: { input: 1e-7, output: 3e-7 },
|
|
254
|
-
contextWindow:
|
|
255
|
-
maxOutput:
|
|
254
|
+
contextWindow: 128_000,
|
|
255
|
+
maxOutput: 16_384,
|
|
256
256
|
modalities: { input: ["text", "image"], output: ["text"] },
|
|
257
257
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
258
258
|
},
|
|
@@ -261,9 +261,9 @@ export const MISTRAL_MODELS = [
|
|
|
261
261
|
name: "Mixtral 8x22B",
|
|
262
262
|
provider: "mistral",
|
|
263
263
|
family: "mixtral",
|
|
264
|
-
pricing: { input: 0.
|
|
265
|
-
contextWindow:
|
|
266
|
-
maxOutput:
|
|
264
|
+
pricing: { input: 0.000_002, output: 0.000_006 },
|
|
265
|
+
contextWindow: 64_000,
|
|
266
|
+
maxOutput: 64_000,
|
|
267
267
|
modalities: { input: ["text"], output: ["text"] },
|
|
268
268
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
269
269
|
},
|
|
@@ -272,9 +272,9 @@ export const MISTRAL_MODELS = [
|
|
|
272
272
|
name: "Mistral Medium (latest)",
|
|
273
273
|
provider: "mistral",
|
|
274
274
|
family: "mistral-medium",
|
|
275
|
-
pricing: { input: 4e-7, output: 0.
|
|
276
|
-
contextWindow:
|
|
277
|
-
maxOutput:
|
|
275
|
+
pricing: { input: 4e-7, output: 0.000_002 },
|
|
276
|
+
contextWindow: 128_000,
|
|
277
|
+
maxOutput: 16_384,
|
|
278
278
|
modalities: { input: ["text", "image"], output: ["text"] },
|
|
279
279
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
280
280
|
},
|
|
@@ -284,8 +284,8 @@ export const MISTRAL_MODELS = [
|
|
|
284
284
|
provider: "mistral",
|
|
285
285
|
family: "devstral",
|
|
286
286
|
pricing: { input: 1e-7, output: 3e-7 },
|
|
287
|
-
contextWindow:
|
|
288
|
-
maxOutput:
|
|
287
|
+
contextWindow: 128_000,
|
|
288
|
+
maxOutput: 128_000,
|
|
289
289
|
modalities: { input: ["text"], output: ["text"] },
|
|
290
290
|
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
291
291
|
},
|
|
@@ -294,9 +294,9 @@ export const MISTRAL_MODELS = [
|
|
|
294
294
|
name: "Magistral Medium (latest)",
|
|
295
295
|
provider: "mistral",
|
|
296
296
|
family: "magistral-medium",
|
|
297
|
-
pricing: { input: 0.
|
|
298
|
-
contextWindow:
|
|
299
|
-
maxOutput:
|
|
297
|
+
pricing: { input: 0.000_002, output: 0.000_005 },
|
|
298
|
+
contextWindow: 128_000,
|
|
299
|
+
maxOutput: 16_384,
|
|
300
300
|
modalities: { input: ["text"], output: ["text"] },
|
|
301
301
|
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
302
302
|
},
|