Browse Source

Add gemini-2.0-flash-thinking-exp-1219

Matt Rubens 1 year ago
parent
commit
38138164e5
3 changed files with 15 additions and 2 deletions
  1. 5 0
      .changeset/stale-wasps-fetch.md
  2. 1 1
      README.md
  3. 9 1
      src/shared/api.ts

+ 5 - 0
.changeset/stale-wasps-fetch.md

@@ -0,0 +1,5 @@
+---
+"roo-cline": patch
+---
+
+Add gemini-2.0-flash-thinking-exp-1219

+ 1 - 1
README.md

@@ -13,7 +13,7 @@ A fork of Cline, an autonomous coding agent, tweaked for more speed and flexibil
 - Option to use a larger 1280x800 browser
 - Quick prompt copying from history
 - OpenRouter compression support
-- Support for newer Gemini models (gemini-exp-1206, gemini-2.0-flash-exp) and Meta 3, 3.1, and 3.2 models via AWS Bedrock
+- Support for newer Gemini models (gemini-exp-1206, gemini-2.0-flash-exp, gemini-2.0-flash-thinking-exp-1219) and Meta 3, 3.1, and 3.2 models via AWS Bedrock
 - Runs alongside the original Cline
 
 ## Disclaimer

+ 9 - 1
src/shared/api.ts

@@ -381,8 +381,16 @@ export const openAiModelInfoSaneDefaults: ModelInfo = {
 // Gemini
 // https://ai.google.dev/gemini-api/docs/models/gemini
 export type GeminiModelId = keyof typeof geminiModels
-export const geminiDefaultModelId: GeminiModelId = "gemini-2.0-flash-exp"
+export const geminiDefaultModelId: GeminiModelId = "gemini-2.0-flash-thinking-exp-1219"
 export const geminiModels = {
+	"gemini-2.0-flash-thinking-exp-1219": {
+		maxTokens: 8192,
+		contextWindow: 1_048_576,
+		supportsImages: true,
+		supportsPromptCache: false,
+		inputPrice: 0,
+		outputPrice: 0,
+	},
 	"gemini-2.0-flash-exp": {
 		maxTokens: 8192,
 		contextWindow: 1_048_576,