Răsfoiți Sursa

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

Co-authored-by: Roo Code <[email protected]>
roomote[bot] 2 luni în urmă
părinte
comite
763734a193

+ 6 - 4
packages/types/src/providers/gemini.ts

@@ -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": {

+ 6 - 4
packages/types/src/providers/vertex.ts

@@ -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,