@ljoukov/llm 3.0.10 → 3.0.11
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 +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -234,6 +234,15 @@ var GEMINI_2_5_PRO_PRICING = {
|
|
|
234
234
|
outputRateLow: 10 / 1e6,
|
|
235
235
|
outputRateHigh: 15 / 1e6
|
|
236
236
|
};
|
|
237
|
+
var GEMINI_2_5_FLASH_PRICING = {
|
|
238
|
+
threshold: 2e5,
|
|
239
|
+
inputRateLow: 0.3 / 1e6,
|
|
240
|
+
inputRateHigh: 0.3 / 1e6,
|
|
241
|
+
cachedRateLow: 0.03 / 1e6,
|
|
242
|
+
cachedRateHigh: 0.03 / 1e6,
|
|
243
|
+
outputRateLow: 2.5 / 1e6,
|
|
244
|
+
outputRateHigh: 2.5 / 1e6
|
|
245
|
+
};
|
|
237
246
|
var GEMINI_IMAGE_PREVIEW_PRICING = {
|
|
238
247
|
inputRate: 2 / 1e6,
|
|
239
248
|
cachedRate: 0.2 / 1e6,
|
|
@@ -249,6 +258,9 @@ function getGeminiProPricing(modelId) {
|
|
|
249
258
|
if (modelId.includes("gemini-2.5-pro")) {
|
|
250
259
|
return GEMINI_2_5_PRO_PRICING;
|
|
251
260
|
}
|
|
261
|
+
if (modelId.includes("gemini-2.5-flash") || modelId.includes("gemini-flash-latest")) {
|
|
262
|
+
return GEMINI_2_5_FLASH_PRICING;
|
|
263
|
+
}
|
|
252
264
|
if (modelId.includes("gemini-3-pro") || modelId.includes("gemini-3.1-pro")) {
|
|
253
265
|
return GEMINI_3_PRO_PREVIEW_PRICING;
|
|
254
266
|
}
|