@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.js
CHANGED
|
@@ -121,6 +121,15 @@ var GEMINI_2_5_PRO_PRICING = {
|
|
|
121
121
|
outputRateLow: 10 / 1e6,
|
|
122
122
|
outputRateHigh: 15 / 1e6
|
|
123
123
|
};
|
|
124
|
+
var GEMINI_2_5_FLASH_PRICING = {
|
|
125
|
+
threshold: 2e5,
|
|
126
|
+
inputRateLow: 0.3 / 1e6,
|
|
127
|
+
inputRateHigh: 0.3 / 1e6,
|
|
128
|
+
cachedRateLow: 0.03 / 1e6,
|
|
129
|
+
cachedRateHigh: 0.03 / 1e6,
|
|
130
|
+
outputRateLow: 2.5 / 1e6,
|
|
131
|
+
outputRateHigh: 2.5 / 1e6
|
|
132
|
+
};
|
|
124
133
|
var GEMINI_IMAGE_PREVIEW_PRICING = {
|
|
125
134
|
inputRate: 2 / 1e6,
|
|
126
135
|
cachedRate: 0.2 / 1e6,
|
|
@@ -136,6 +145,9 @@ function getGeminiProPricing(modelId) {
|
|
|
136
145
|
if (modelId.includes("gemini-2.5-pro")) {
|
|
137
146
|
return GEMINI_2_5_PRO_PRICING;
|
|
138
147
|
}
|
|
148
|
+
if (modelId.includes("gemini-2.5-flash") || modelId.includes("gemini-flash-latest")) {
|
|
149
|
+
return GEMINI_2_5_FLASH_PRICING;
|
|
150
|
+
}
|
|
139
151
|
if (modelId.includes("gemini-3-pro") || modelId.includes("gemini-3.1-pro")) {
|
|
140
152
|
return GEMINI_3_PRO_PREVIEW_PRICING;
|
|
141
153
|
}
|