Skip to content

Commit e2a8ec8

Browse files
authored
Add the gemini 2.5 pro preview model with upper bound pricing (#2300)
1 parent f747215 commit e2a8ec8

File tree

18 files changed

+48
-18
lines changed

18 files changed

+48
-18
lines changed

.changeset/quiet-turkeys-wash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Add the gemini 2.5 pro preview model with upper bound pricing

src/shared/api.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,14 @@ export const geminiModels = {
629629
inputPrice: 0,
630630
outputPrice: 0,
631631
},
632+
"gemini-2.5-pro-preview-03-25": {
633+
maxTokens: 65_535,
634+
contextWindow: 1_048_576,
635+
supportsImages: true,
636+
supportsPromptCache: false,
637+
inputPrice: 2.5,
638+
outputPrice: 15,
639+
},
632640
"gemini-2.0-flash-001": {
633641
maxTokens: 8192,
634642
contextWindow: 1_048_576,

webview-ui/src/components/settings/ModelInfoView.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ export const ModelInfoView = ({
7575
),
7676
isGemini && (
7777
<span className="italic">
78-
{t("settings:modelInfo.gemini.freeRequests", {
79-
count: selectedModelId && selectedModelId.includes("flash") ? 15 : 2,
80-
})}{" "}
78+
{selectedModelId === "gemini-2.5-pro-preview-03-25"
79+
? t("settings:modelInfo.gemini.billingEstimate")
80+
: t("settings:modelInfo.gemini.freeRequests", {
81+
count: selectedModelId && selectedModelId.includes("flash") ? 15 : 2,
82+
})}{" "}
8183
<VSCodeLink href="https://ai.google.dev/pricing" className="text-sm">
8284
{t("settings:modelInfo.gemini.pricingDetails")}
8385
</VSCodeLink>

webview-ui/src/i18n/locales/ca/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@
369369
"azureApiVersion": "Establir versió de l'API d'Azure",
370370
"gemini": {
371371
"freeRequests": "* Gratuït fins a {{count}} sol·licituds per minut. Després d'això, la facturació depèn de la mida del prompt.",
372-
"pricingDetails": "Per a més informació, consulteu els detalls de preus."
372+
"pricingDetails": "Per a més informació, consulteu els detalls de preus.",
373+
"billingEstimate": "* La facturació és una estimació - el cost exacte depèn de la mida del prompt."
373374
}
374375
},
375376
"modelPicker": {

webview-ui/src/i18n/locales/de/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@
369369
"azureApiVersion": "Azure API-Version festlegen",
370370
"gemini": {
371371
"freeRequests": "* Kostenlos bis zu {{count}} Anfragen pro Minute. Danach hängt die Abrechnung von der Prompt-Größe ab.",
372-
"pricingDetails": "Weitere Informationen finden Sie in den Preisdetails."
372+
"pricingDetails": "Weitere Informationen finden Sie in den Preisdetails.",
373+
"billingEstimate": "* Die Abrechnung ist eine Schätzung - die genauen Kosten hängen von der Prompt-Größe ab."
373374
}
374375
},
375376
"modelPicker": {

webview-ui/src/i18n/locales/en/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@
369369
"azureApiVersion": "Set Azure API version",
370370
"gemini": {
371371
"freeRequests": "* Free up to {{count}} requests per minute. After that, billing depends on prompt size.",
372-
"pricingDetails": "For more info, see pricing details."
372+
"pricingDetails": "For more info, see pricing details.",
373+
"billingEstimate": "* Billing is an estimate - exact cost depends on prompt size."
373374
}
374375
},
375376
"modelPicker": {

webview-ui/src/i18n/locales/es/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@
369369
"azureApiVersion": "Establecer versión de API de Azure",
370370
"gemini": {
371371
"freeRequests": "* Gratis hasta {{count}} solicitudes por minuto. Después de eso, la facturación depende del tamaño del prompt.",
372-
"pricingDetails": "Para más información, consulte los detalles de precios."
372+
"pricingDetails": "Para más información, consulte los detalles de precios.",
373+
"billingEstimate": "* La facturación es una estimación - el costo exacto depende del tamaño del prompt."
373374
}
374375
},
375376
"modelPicker": {

webview-ui/src/i18n/locales/fr/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@
369369
"azureApiVersion": "Définir la version de l'API Azure",
370370
"gemini": {
371371
"freeRequests": "* Gratuit jusqu'à {{count}} requêtes par minute. Après cela, la facturation dépend de la taille du prompt.",
372-
"pricingDetails": "Pour plus d'informations, voir les détails de tarification."
372+
"pricingDetails": "Pour plus d'informations, voir les détails de tarification.",
373+
"billingEstimate": "* La facturation est une estimation - le coût exact dépend de la taille du prompt."
373374
}
374375
},
375376
"modelPicker": {

webview-ui/src/i18n/locales/hi/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@
369369
"azureApiVersion": "Azure API संस्करण सेट करें",
370370
"gemini": {
371371
"freeRequests": "* प्रति मिनट {{count}} अनुरोधों तक मुफ्त। उसके बाद, बिलिंग प्रॉम्प्ट आकार पर निर्भर करती है।",
372-
"pricingDetails": "अधिक जानकारी के लिए, मूल्य निर्धारण विवरण देखें।"
372+
"pricingDetails": "अधिक जानकारी के लिए, मूल्य निर्धारण विवरण देखें।",
373+
"billingEstimate": "* बिलिंग एक अनुमान है - सटीक लागत प्रॉम्प्ट आकार पर निर्भर करती है।"
373374
}
374375
},
375376
"modelPicker": {

webview-ui/src/i18n/locales/it/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@
369369
"azureApiVersion": "Imposta versione API Azure",
370370
"gemini": {
371371
"freeRequests": "* Gratuito fino a {{count}} richieste al minuto. Dopo, la fatturazione dipende dalla dimensione del prompt.",
372-
"pricingDetails": "Per maggiori informazioni, vedi i dettagli sui prezzi."
372+
"pricingDetails": "Per maggiori informazioni, vedi i dettagli sui prezzi.",
373+
"billingEstimate": "* La fatturazione è una stima - il costo esatto dipende dalle dimensioni del prompt."
373374
}
374375
},
375376
"modelPicker": {

0 commit comments

Comments
 (0)