fix: correct Gemini 3 pricing for Flash and Pro models (#10487)

Co-authored-by: Roo Code <roomote@roocode.com>
This commit is contained in:
roomote[bot] 2026-01-23 10:35:23 -07:00 committed by GitHub
parent 6e009971d9
commit 763734a193
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 8 deletions

View file

@ -18,16 +18,19 @@ export const geminiModels = {
defaultTemperature: 1,
inputPrice: 4.0,
outputPrice: 18.0,
cacheReadsPrice: 0.4,
tiers: [
{
contextWindow: 200_000,
inputPrice: 2.0,
outputPrice: 12.0,
cacheReadsPrice: 0.2,
},
{
contextWindow: Infinity,
inputPrice: 4.0,
outputPrice: 18.0,
cacheReadsPrice: 0.4,
},
],
},
@ -41,10 +44,9 @@ export const geminiModels = {
supportsTemperature: true,
defaultTemperature: 1,
inputPrice: 0.3,
outputPrice: 2.5,
cacheReadsPrice: 0.075,
cacheWritesPrice: 1.0,
inputPrice: 0.5,
outputPrice: 3.0,
cacheReadsPrice: 0.05,
},
// 2.5 Pro models
"gemini-2.5-pro": {

View file

@ -18,16 +18,19 @@ export const vertexModels = {
defaultTemperature: 1,
inputPrice: 4.0,
outputPrice: 18.0,
cacheReadsPrice: 0.4,
tiers: [
{
contextWindow: 200_000,
inputPrice: 2.0,
outputPrice: 12.0,
cacheReadsPrice: 0.2,
},
{
contextWindow: Infinity,
inputPrice: 4.0,
outputPrice: 18.0,
cacheReadsPrice: 0.4,
},
],
},
@ -41,10 +44,9 @@ export const vertexModels = {
supportsTemperature: true,
defaultTemperature: 1,
inputPrice: 0.3,
outputPrice: 2.5,
cacheReadsPrice: 0.075,
cacheWritesPrice: 1.0,
inputPrice: 0.5,
outputPrice: 3.0,
cacheReadsPrice: 0.05,
},
"gemini-2.5-flash-preview-05-20:thinking": {
maxTokens: 65_535,