Adding Thinking Token Config to Gemini 2.5 pro model and adding gemini 2.5 flash preview (#4668)
* Adding Thinking Token Config to Gemini 2.5 pro model * Adding Thinking Token Config to Gemini 2.5 pro model * Adding console logs * Adding console logs * Adding console logs
This commit is contained in:
4 files changed
+43
-1
No files matched your search
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"claude-dev": patch
|
||||
---
|
||||
|
||||
Fixing Gemini 2.5 pro slider and add support for gemini-2.5-flash-lite-preview-06-17 model
|
||||
|
||||
@@ -600,6 +600,9 @@ export const vertexModels = {
|
||||
inputPrice: 2.5,
|
||||
outputPrice: 15,
|
||||
cacheReadsPrice: 0.625,
|
||||
thinkingConfig: {
|
||||
maxBudget: 32767,
|
||||
},
|
||||
tiers: [
|
||||
{
|
||||
contextWindow: 200000,
|
||||
@@ -628,6 +631,21 @@ export const vertexModels = {
|
||||
outputPrice: 3.5,
|
||||
},
|
||||
},
|
||||
|
||||
"gemini-2.5-flash-lite-preview-06-17": {
|
||||
maxTokens: 64000,
|
||||
contextWindow: 1_000_000,
|
||||
supportsImages: true,
|
||||
supportsPromptCache: true,
|
||||
supportsGlobalEndpoint: true,
|
||||
inputPrice: 0.1,
|
||||
outputPrice: 0.4,
|
||||
cacheReadsPrice: 0.025,
|
||||
description: "Preview version - may not be available in all regions",
|
||||
thinkingConfig: {
|
||||
maxBudget: 24576,
|
||||
},
|
||||
},
|
||||
"gemini-2.0-flash-thinking-exp-01-21": {
|
||||
maxTokens: 65_536,
|
||||
contextWindow: 1_048_576,
|
||||
@@ -731,6 +749,9 @@ export const geminiModels = {
|
||||
inputPrice: 2.5,
|
||||
outputPrice: 15,
|
||||
cacheReadsPrice: 0.625,
|
||||
thinkingConfig: {
|
||||
maxBudget: 32767,
|
||||
},
|
||||
tiers: [
|
||||
{
|
||||
contextWindow: 200000,
|
||||
@@ -746,6 +767,20 @@ export const geminiModels = {
|
||||
},
|
||||
],
|
||||
},
|
||||
"gemini-2.5-flash-lite-preview-06-17": {
|
||||
maxTokens: 64000,
|
||||
contextWindow: 1_000_000,
|
||||
supportsImages: true,
|
||||
supportsPromptCache: true,
|
||||
supportsGlobalEndpoint: true,
|
||||
inputPrice: 0.1,
|
||||
outputPrice: 0.4,
|
||||
cacheReadsPrice: 0.025,
|
||||
description: "Preview version - may not be available in all regions",
|
||||
thinkingConfig: {
|
||||
maxBudget: 24576,
|
||||
},
|
||||
},
|
||||
"gemini-2.5-flash": {
|
||||
maxTokens: 65536,
|
||||
contextWindow: 1_048_576,
|
||||
|
||||
@@ -9,7 +9,7 @@ import { useApiConfigurationHandlers } from "../utils/useApiConfigurationHandler
|
||||
import { useExtensionState } from "@/context/ExtensionStateContext"
|
||||
|
||||
// Gemini models that support thinking/reasoning mode
|
||||
const SUPPORTED_THINKING_MODELS = ["gemini-2.5-pro", "gemini-2.5-flash"]
|
||||
const SUPPORTED_THINKING_MODELS = ["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite-preview-06-17"]
|
||||
|
||||
/**
|
||||
* Props for the GeminiProvider component
|
||||
|
||||
@@ -24,6 +24,7 @@ const SUPPORTED_THINKING_MODELS = [
|
||||
"claude-opus-4@20250514",
|
||||
"gemini-2.5-flash",
|
||||
"gemini-2.5-pro",
|
||||
"gemini-2.5-flash-lite-preview-06-17",
|
||||
]
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user