feat(models): add gemini-3.1-pro-preview and update gemini-3-pro thinking levels (#3263)

This commit is contained in:
Waleed
2026-02-19 16:20:20 -08:00
committed by GitHub
parent 61c7afc19e
commit d7fddb2909
4 changed files with 39 additions and 3 deletions
+1 -1
View File
@@ -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)
+1
View File
@@ -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' },
+1
View File
@@ -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' },
+36 -2
View File
@@ -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: {
@@ -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',
},
},
@@ -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: {
@@ -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',
},
},