@funkai/models 0.3.0 → 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.
Files changed (83) hide show
  1. package/.turbo/turbo-build.log +33 -33
  2. package/CHANGELOG.md +6 -0
  3. package/dist/alibaba-B6q4Ng1R.mjs.map +1 -1
  4. package/dist/amazon-bedrock-Cv9AHQBH.mjs.map +1 -1
  5. package/dist/anthropic-yB7ST97_.mjs.map +1 -1
  6. package/dist/cerebras-COfl7XM-.mjs.map +1 -1
  7. package/dist/cohere-B7TgO0hT.mjs.map +1 -1
  8. package/dist/deepinfra-B0GxUwCG.mjs.map +1 -1
  9. package/dist/deepseek-D64ZEsvS.mjs.map +1 -1
  10. package/dist/fireworks-ai-DJYvdAi_.mjs.map +1 -1
  11. package/dist/google-BypRl349.mjs.map +1 -1
  12. package/dist/google-vertex-DbS-zTGD.mjs.map +1 -1
  13. package/dist/groq-ei_PerYi.mjs.map +1 -1
  14. package/dist/huggingface-DaM1EeLP.mjs.map +1 -1
  15. package/dist/inception-CspEzqNV.mjs.map +1 -1
  16. package/dist/index.d.mts +1 -1
  17. package/dist/index.d.mts.map +1 -1
  18. package/dist/index.mjs +2 -1
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/llama-Cf3-koap.mjs.map +1 -1
  21. package/dist/mistral-BI9MdAO4.mjs.map +1 -1
  22. package/dist/nvidia-COHacuoa.mjs.map +1 -1
  23. package/dist/openai-C0nCfZUq.mjs.map +1 -1
  24. package/dist/openrouter-DSFzxKQb.mjs.map +1 -1
  25. package/dist/perplexity-zeZ2WlBU.mjs.map +1 -1
  26. package/dist/providers/alibaba.d.mts +1 -1
  27. package/dist/providers/amazon-bedrock.d.mts +1 -1
  28. package/dist/providers/anthropic.d.mts +1 -1
  29. package/dist/providers/cerebras.d.mts +1 -1
  30. package/dist/providers/cohere.d.mts +1 -1
  31. package/dist/providers/deepinfra.d.mts +1 -1
  32. package/dist/providers/deepseek.d.mts +1 -1
  33. package/dist/providers/fireworks-ai.d.mts +1 -1
  34. package/dist/providers/google-vertex.d.mts +1 -1
  35. package/dist/providers/google.d.mts +1 -1
  36. package/dist/providers/groq.d.mts +1 -1
  37. package/dist/providers/huggingface.d.mts +1 -1
  38. package/dist/providers/inception.d.mts +1 -1
  39. package/dist/providers/llama.d.mts +1 -1
  40. package/dist/providers/mistral.d.mts +1 -1
  41. package/dist/providers/nvidia.d.mts +1 -1
  42. package/dist/providers/openai.d.mts +1 -1
  43. package/dist/providers/openrouter.d.mts +1 -1
  44. package/dist/providers/perplexity.d.mts +1 -1
  45. package/dist/providers/togetherai.d.mts +1 -1
  46. package/dist/providers/xai.d.mts +1 -1
  47. package/dist/togetherai-BvcxUfPE.mjs.map +1 -1
  48. package/dist/{types-DjdaZckF.d.mts → types-DIzolT_s.d.mts} +61 -21
  49. package/dist/types-DIzolT_s.d.mts.map +1 -0
  50. package/dist/xai-fSuAkQJo.mjs.map +1 -1
  51. package/package.json +6 -3
  52. package/scripts/generate-models.ts +152 -63
  53. package/src/catalog/index.test.ts +8 -8
  54. package/src/catalog/index.ts +4 -1
  55. package/src/catalog/providers/alibaba.ts +91 -91
  56. package/src/catalog/providers/amazon-bedrock.ts +205 -185
  57. package/src/catalog/providers/anthropic.ts +87 -62
  58. package/src/catalog/providers/cerebras.ts +9 -9
  59. package/src/catalog/providers/cohere.ts +16 -16
  60. package/src/catalog/providers/deepinfra.ts +71 -71
  61. package/src/catalog/providers/deepseek.ts +3 -3
  62. package/src/catalog/providers/fireworks-ai.ts +36 -36
  63. package/src/catalog/providers/google-vertex.ts +62 -62
  64. package/src/catalog/providers/google.ts +69 -69
  65. package/src/catalog/providers/groq.ts +24 -24
  66. package/src/catalog/providers/huggingface.ts +52 -52
  67. package/src/catalog/providers/inception.ts +9 -9
  68. package/src/catalog/providers/index.ts +1 -0
  69. package/src/catalog/providers/llama.ts +7 -7
  70. package/src/catalog/providers/mistral.ts +60 -60
  71. package/src/catalog/providers/nvidia.ts +84 -84
  72. package/src/catalog/providers/openai.ts +115 -115
  73. package/src/catalog/providers/openrouter.ts +448 -433
  74. package/src/catalog/providers/perplexity.ts +9 -9
  75. package/src/catalog/providers/togetherai.ts +47 -47
  76. package/src/catalog/providers/xai.ts +49 -49
  77. package/src/catalog/types.ts +60 -20
  78. package/src/cost/calculate.test.ts +11 -11
  79. package/src/provider/registry.ts +1 -1
  80. package/src/provider/types.ts +1 -1
  81. package/tsconfig.json +2 -1
  82. package/tsdown.config.ts +7 -3
  83. package/dist/types-DjdaZckF.d.mts.map +0 -1
@@ -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.000002 },
23
- contextWindow: 128000,
24
- maxOutput: 128000,
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: 256000,
35
- maxOutput: 256000,
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.000002 },
45
- contextWindow: 262144,
46
- maxOutput: 262144,
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: 128000,
68
- maxOutput: 16384,
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.000002 },
78
- contextWindow: 131072,
79
- maxOutput: 131072,
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: 256000,
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: 128000,
101
- maxOutput: 128000,
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.0000015 },
111
- contextWindow: 128000,
112
- maxOutput: 128000,
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.0000015 },
122
- contextWindow: 262144,
123
- maxOutput: 262144,
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: 128000,
134
- maxOutput: 128000,
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: 128000,
156
- maxOutput: 128000,
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: 128000,
167
- maxOutput: 128000,
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: 32000,
178
- maxOutput: 32000,
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.000002, output: 0.000006 },
188
- contextWindow: 128000,
189
- maxOutput: 128000,
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: 128000,
200
- maxOutput: 128000,
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.000002 },
210
- contextWindow: 262144,
211
- maxOutput: 262144,
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.0000015 },
221
- contextWindow: 262144,
222
- maxOutput: 262144,
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.000002 },
232
- contextWindow: 262144,
233
- maxOutput: 262144,
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.000002, output: 0.000006 },
243
- contextWindow: 131072,
244
- maxOutput: 16384,
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: 128000,
255
- maxOutput: 16384,
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.000002, output: 0.000006 },
265
- contextWindow: 64000,
266
- maxOutput: 64000,
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.000002 },
276
- contextWindow: 128000,
277
- maxOutput: 16384,
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: 128000,
288
- maxOutput: 128000,
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.000002, output: 0.000005 },
298
- contextWindow: 128000,
299
- maxOutput: 16384,
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
  },