@ljoukov/llm 3.0.14 → 3.0.15
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/dist/index.cjs +42 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +42 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -199,9 +199,14 @@ var FIREWORKS_GLM_5_PRICING = {
|
|
|
199
199
|
};
|
|
200
200
|
var FIREWORKS_MINIMAX_M21_PRICING = {
|
|
201
201
|
inputRate: 0.3 / 1e6,
|
|
202
|
-
cachedRate: 0.
|
|
202
|
+
cachedRate: 0.03 / 1e6,
|
|
203
203
|
outputRate: 1.2 / 1e6
|
|
204
204
|
};
|
|
205
|
+
var FIREWORKS_GPT_OSS_120B_PRICING = {
|
|
206
|
+
inputRate: 0.15 / 1e6,
|
|
207
|
+
cachedRate: 0.075 / 1e6,
|
|
208
|
+
outputRate: 0.6 / 1e6
|
|
209
|
+
};
|
|
205
210
|
function getFireworksPricing(modelId) {
|
|
206
211
|
if (modelId.includes("kimi-k2.5") || modelId.includes("kimi-k2p5")) {
|
|
207
212
|
return FIREWORKS_KIMI_K25_PRICING;
|
|
@@ -212,6 +217,9 @@ function getFireworksPricing(modelId) {
|
|
|
212
217
|
if (modelId.includes("minimax-m2.1") || modelId.includes("minimax-m2p1")) {
|
|
213
218
|
return FIREWORKS_MINIMAX_M21_PRICING;
|
|
214
219
|
}
|
|
220
|
+
if (modelId.includes("gpt-oss-120b")) {
|
|
221
|
+
return FIREWORKS_GPT_OSS_120B_PRICING;
|
|
222
|
+
}
|
|
215
223
|
return void 0;
|
|
216
224
|
}
|
|
217
225
|
|
|
@@ -243,7 +251,16 @@ var GEMINI_2_5_FLASH_PRICING = {
|
|
|
243
251
|
outputRateLow: 2.5 / 1e6,
|
|
244
252
|
outputRateHigh: 2.5 / 1e6
|
|
245
253
|
};
|
|
246
|
-
var
|
|
254
|
+
var GEMINI_2_5_FLASH_LITE_PRICING = {
|
|
255
|
+
threshold: 2e5,
|
|
256
|
+
inputRateLow: 0.1 / 1e6,
|
|
257
|
+
inputRateHigh: 0.1 / 1e6,
|
|
258
|
+
cachedRateLow: 0.025 / 1e6,
|
|
259
|
+
cachedRateHigh: 0.025 / 1e6,
|
|
260
|
+
outputRateLow: 0.4 / 1e6,
|
|
261
|
+
outputRateHigh: 0.4 / 1e6
|
|
262
|
+
};
|
|
263
|
+
var GEMINI_3_PRO_IMAGE_PREVIEW_PRICING = {
|
|
247
264
|
inputRate: 2 / 1e6,
|
|
248
265
|
cachedRate: 0.2 / 1e6,
|
|
249
266
|
outputTextRate: 12 / 1e6,
|
|
@@ -254,11 +271,26 @@ var GEMINI_IMAGE_PREVIEW_PRICING = {
|
|
|
254
271
|
"4K": 0.24
|
|
255
272
|
}
|
|
256
273
|
};
|
|
274
|
+
var GEMINI_3_1_FLASH_IMAGE_PREVIEW_PRICING = {
|
|
275
|
+
inputRate: 0.5 / 1e6,
|
|
276
|
+
cachedRate: 0.125 / 1e6,
|
|
277
|
+
outputTextRate: 3 / 1e6,
|
|
278
|
+
outputImageRate: 60 / 1e6,
|
|
279
|
+
imagePrices: {
|
|
280
|
+
"512": 0.045,
|
|
281
|
+
"1K": 0.067,
|
|
282
|
+
"2K": 0.101,
|
|
283
|
+
"4K": 0.15
|
|
284
|
+
}
|
|
285
|
+
};
|
|
257
286
|
function getGeminiProPricing(modelId) {
|
|
258
287
|
if (modelId.includes("gemini-2.5-pro")) {
|
|
259
288
|
return GEMINI_2_5_PRO_PRICING;
|
|
260
289
|
}
|
|
261
|
-
if (modelId.includes("gemini-
|
|
290
|
+
if (modelId.includes("gemini-flash-lite-latest")) {
|
|
291
|
+
return GEMINI_2_5_FLASH_LITE_PRICING;
|
|
292
|
+
}
|
|
293
|
+
if (modelId.includes("gemini-2.5-flash") || modelId.includes("gemini-flash-latest") || modelId.includes("gemini-3-flash-preview")) {
|
|
262
294
|
return GEMINI_2_5_FLASH_PRICING;
|
|
263
295
|
}
|
|
264
296
|
if (modelId.includes("gemini-3-pro") || modelId.includes("gemini-3.1-pro")) {
|
|
@@ -267,8 +299,14 @@ function getGeminiProPricing(modelId) {
|
|
|
267
299
|
return void 0;
|
|
268
300
|
}
|
|
269
301
|
function getGeminiImagePricing(modelId) {
|
|
302
|
+
if (modelId.includes("gemini-3.1-flash-image-preview")) {
|
|
303
|
+
return GEMINI_3_1_FLASH_IMAGE_PREVIEW_PRICING;
|
|
304
|
+
}
|
|
305
|
+
if (modelId.includes("gemini-3-pro-image-preview")) {
|
|
306
|
+
return GEMINI_3_PRO_IMAGE_PREVIEW_PRICING;
|
|
307
|
+
}
|
|
270
308
|
if (modelId.includes("image-preview")) {
|
|
271
|
-
return
|
|
309
|
+
return GEMINI_3_PRO_IMAGE_PREVIEW_PRICING;
|
|
272
310
|
}
|
|
273
311
|
return void 0;
|
|
274
312
|
}
|