Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
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
Next Next commit
feat(models): add gemini-3.1-pro-preview and update gemini-3-pro thin…
…king levels (#3263)
  • Loading branch information
waleedlatif1 authored Feb 20, 2026
commit d7fddb2909a839c13b0d5d402e75b1b40ffe7ebe
2 changes: 1 addition & 1 deletion apps/sim/app/api/tools/stt/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ async function transcribeWithGemini(
const error = await response.json()
if (response.status === 404) {
throw new Error(
`Model not found: ${modelName}. Use gemini-3-pro-preview, gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite, or gemini-2.0-flash-exp`
`Model not found: ${modelName}. Use gemini-3.1-pro-preview, gemini-3-pro-preview, gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite, or gemini-2.0-flash-exp`
)
}
const errorMessage = error.error?.message || JSON.stringify(error)
Expand Down
1 change: 1 addition & 0 deletions apps/sim/blocks/blocks/stt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const SttBlock: BlockConfig<SttBlockResponse> = {
type: 'dropdown',
condition: { field: 'provider', value: 'gemini' },
options: [
{ label: 'Gemini 3.1 Pro', id: 'gemini-3.1-pro-preview' },
{ label: 'Gemini 3 Pro', id: 'gemini-3-pro-preview' },
{ label: 'Gemini 2.5 Pro', id: 'gemini-2.5-pro' },
{ label: 'Gemini 2.5 Flash', id: 'gemini-2.5-flash' },
Expand Down
1 change: 1 addition & 0 deletions apps/sim/blocks/blocks/vision.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const VISION_MODEL_OPTIONS = [
{ label: 'Claude Opus 4.5', id: 'claude-opus-4-5' },
{ label: 'Claude Sonnet 4.5', id: 'claude-sonnet-4-5' },
{ label: 'Claude Haiku 4.5', id: 'claude-haiku-4-5' },
{ label: 'Gemini 3.1 Pro Preview', id: 'gemini-3.1-pro-preview' },
{ label: 'Gemini 3 Pro Preview', id: 'gemini-3-pro-preview' },
{ label: 'Gemini 3 Flash Preview', id: 'gemini-3-flash-preview' },
{ label: 'Gemini 2.5 Pro', id: 'gemini-2.5-pro' },
Expand Down
38 changes: 36 additions & 2 deletions apps/sim/providers/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,23 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
},
icon: GeminiIcon,
models: [
{
id: 'gemini-3.1-pro-preview',
pricing: {
input: 2.0,
cachedInput: 0.2,
output: 12.0,
updatedAt: '2026-02-19',
},
capabilities: {
temperature: { min: 0, max: 2 },
thinking: {
levels: ['low', 'medium', 'high'],
default: 'high',
},
},
contextWindow: 1048576,
},
{
id: 'gemini-3-pro-preview',
pricing: {
Expand All @@ -845,7 +862,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
capabilities: {
temperature: { min: 0, max: 2 },
thinking: {
levels: ['low', 'high'],
levels: ['low', 'medium', 'high'],
default: 'high',
},
},
Expand Down Expand Up @@ -957,6 +974,23 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
toolUsageControl: true,
},
models: [
{
id: 'vertex/gemini-3.1-pro-preview',
pricing: {
input: 2.0,
cachedInput: 0.2,
output: 12.0,
updatedAt: '2026-02-19',
},
capabilities: {
temperature: { min: 0, max: 2 },
thinking: {
levels: ['low', 'medium', 'high'],
default: 'high',
},
},
contextWindow: 1048576,
},
{
id: 'vertex/gemini-3-pro-preview',
pricing: {
Expand All @@ -968,7 +1002,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
capabilities: {
temperature: { min: 0, max: 2 },
thinking: {
levels: ['low', 'high'],
levels: ['low', 'medium', 'high'],
default: 'high',
},
},
Expand Down
Loading