Browse Source

feat: add gemini-2.5-flash-preview-05-20 models (#3769)

Shariq Riaz 7 months ago
parent
commit
5ccce3a39d
1 changed files with 21 additions and 0 deletions
  1. 21 0
      src/shared/api.ts

+ 21 - 0
src/shared/api.ts

@@ -673,6 +673,25 @@ export const geminiModels = {
 		outputPrice: 0.6,
 		thinking: false,
 	},
+	"gemini-2.5-flash-preview-05-20:thinking": {
+		maxTokens: 65_535,
+		contextWindow: 1_048_576,
+		supportsImages: true,
+		supportsPromptCache: false,
+		inputPrice: 0.15,
+		outputPrice: 3.5,
+		thinking: true,
+		maxThinkingTokens: 24_576,
+	},
+	"gemini-2.5-flash-preview-05-20": {
+		maxTokens: 65_535,
+		contextWindow: 1_048_576,
+		supportsImages: true,
+		supportsPromptCache: false,
+		inputPrice: 0.15,
+		outputPrice: 0.6,
+		thinking: false,
+	},
 	"gemini-2.5-pro-exp-03-25": {
 		maxTokens: 65_535,
 		contextWindow: 1_048_576,
@@ -1762,6 +1781,8 @@ export const PROMPT_CACHING_MODELS = new Set([
 	"google/gemini-2.5-pro-preview",
 	"google/gemini-2.5-flash-preview",
 	"google/gemini-2.5-flash-preview:thinking",
+	"google/gemini-2.5-flash-preview-05-20",
+	"google/gemini-2.5-flash-preview-05-20:thinking",
 	"google/gemini-2.0-flash-001",
 	"google/gemini-flash-1.5",
 	"google/gemini-flash-1.5-8b",