Skip to content

Commit 6dd2d52

Browse files
committed
fix: remove duplicate condition in Gemini 2.5 Pro model detection
- Fixed duplicate modelId.includes("gemini-2.5-pro") check - Now properly checks for both "gemini-2.5-pro" and "gemini-25-pro" variants
1 parent 27c9c2d commit 6dd2d52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/transform/model-params.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function getModelParams({
9292

9393
if (shouldUseReasoningBudget({ model, settings })) {
9494
// Check if this is a Gemini 2.5 Pro model
95-
const isGemini25Pro = modelId.includes("gemini-2.5-pro") || modelId.includes("gemini-2.5-pro")
95+
const isGemini25Pro = modelId.includes("gemini-2.5-pro") || modelId.includes("gemini-25-pro")
9696

9797
// If `customMaxThinkingTokens` is not specified use the default.
9898
// For Gemini 2.5 Pro, default to 128 instead of 8192

0 commit comments

Comments
 (0)