Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor(gemini): use prefix-based Gemini 3 model detection
  • Loading branch information
waleedlatif1 committed Apr 15, 2026
commit 8e93c05cd771315270b1e0369e2c302c9f5e2597
14 changes: 2 additions & 12 deletions apps/sim/providers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1064,19 +1064,9 @@ export function isDeepResearchModel(model: string): boolean {
return MODELS_WITH_DEEP_RESEARCH.includes(model.toLowerCase())
}

const GEMINI_3_MODELS = [
'gemini-3.1-pro-preview',
'gemini-3.1-flash-lite-preview',
'gemini-3-flash-preview',
'gemini-3-pro-preview',
'vertex/gemini-3.1-pro-preview',
'vertex/gemini-3.1-flash-lite-preview',
'vertex/gemini-3-pro-preview',
'vertex/gemini-3-flash-preview',
]

export function isGemini3Model(model: string): boolean {
return GEMINI_3_MODELS.includes(model.toLowerCase())
const normalized = model.toLowerCase().replace(/^vertex\//, '')
return normalized.startsWith('gemini-3')
}

/**
Expand Down
Loading