From e4b1304e7ce85ff691b754834cd98dd7d6a4f106 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Fri, 20 Nov 2026 11:03:17 -0800 Subject: [PATCH 1/3] feat(models): add Gemini 4 Neon/Hydrogen/Carbon, GPT-6.2 Astra/Sol, GPT Image 2.6 --- .../content/docs/workflows/blocks/agent.mdx | 4 +- apps/sim/lib/media/image-catalog.ts | 4 +- apps/sim/providers/google/utils.ts | 3 + apps/sim/providers/models.ts | 107 ++++++++++++++++++ 4 files changed, 115 insertions(+), 3 deletions(-) diff --git a/apps/docs/content/docs/workflows/blocks/agent.mdx b/apps/docs/content/docs/workflows/blocks/agent.mdx index 10b3c26df9b..2c432d0a529 100644 --- a/apps/docs/content/docs/workflows/blocks/agent.mdx +++ b/apps/docs/content/docs/workflows/blocks/agent.mdx @@ -188,11 +188,11 @@ Live tool-call chips stream for **OpenAI, Anthropic, Azure Anthropic, Google, Ve | Provider | Streamed thinking | Models | |----------|-------------------|--------| -| OpenAI | Summaries only — Requires OpenAI organization verification; falls back to no summaries. | `gpt-6-astra`, `gpt-6.1-sol`, `gpt-6.1-terra`, `gpt-6-sol`, `gpt-6-luna`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, `gpt-5.5-pro`, `gpt-5.5`, `gpt-5.4-pro`, `gpt-5.4`, `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-5.3-codex`, `gpt-5.2-pro`, `gpt-5.2`, `gpt-5.1`, `gpt-5-pro`, `gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `o4-mini`, `o3`, `o3-mini`, `o1` | +| OpenAI | Summaries only — Requires OpenAI organization verification; falls back to no summaries. | `gpt-6.2-astra`, `gpt-6.2-sol`, `gpt-6-astra`, `gpt-6.1-sol`, `gpt-6.1-terra`, `gpt-6-sol`, `gpt-6-luna`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, `gpt-5.5-pro`, `gpt-5.5`, `gpt-5.4-pro`, `gpt-5.4`, `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-5.3-codex`, `gpt-5.2-pro`, `gpt-5.2`, `gpt-5.1`, `gpt-5-pro`, `gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `o4-mini`, `o3`, `o3-mini`, `o1` | | Anthropic | Summaries only — These generations omit full thinking; Sim requests summarized thinking on streaming runs. | `claude-fable-5-2`, `claude-fable-5-1`, `claude-fable-5`, `claude-sonnet-5-5`, `claude-sonnet-5`, `claude-opus-5-5`, `claude-opus-5`, `claude-opus-4-8`, `claude-opus-4-7`, `claude-opus-4-6`, `claude-sonnet-4-6`, `claude-opus-4-5`, `claude-sonnet-4-5`, `claude-haiku-5-5`, `claude-haiku-4-5` | | Azure OpenAI | Summaries only — Requires OpenAI organization verification; falls back to no summaries. | `azure/gpt-6.1-sol`, `azure/gpt-6-sol`, `azure/gpt-6-luna`, `azure/gpt-6-astra`, `azure/gpt-5.6-sol`, `azure/gpt-5.6-terra`, `azure/gpt-5.6-luna`, `azure/gpt-5.5`, `azure/gpt-5.4-pro`, `azure/gpt-5.4`, `azure/gpt-5.4-mini`, `azure/gpt-5.4-nano`, `azure/gpt-5.2`, `azure/gpt-5.1`, `azure/gpt-5.1-codex`, `azure/gpt-5`, `azure/gpt-5-mini`, `azure/gpt-5-nano`, `azure/o3`, `azure/o4-mini` | | Azure Anthropic | Summaries only — These generations omit full thinking; Sim requests summarized thinking on streaming runs. | `azure-anthropic/claude-fable-5-1`, `azure-anthropic/claude-opus-5-5`, `azure-anthropic/claude-sonnet-5-5`, `azure-anthropic/claude-haiku-5-5`, `azure-anthropic/claude-opus-5`, `azure-anthropic/claude-opus-4-8`, `azure-anthropic/claude-opus-4-7`, `azure-anthropic/claude-opus-4-6`, `azure-anthropic/claude-opus-4-5`, `azure-anthropic/claude-sonnet-5`, `azure-anthropic/claude-sonnet-4-6`, `azure-anthropic/claude-sonnet-4-5`, `azure-anthropic/claude-opus-4-1`, `azure-anthropic/claude-haiku-4-5` | -| Google | Summaries only | `gemini-4-argon`, `gemini-3.8-flash`, `gemini-3.7-flash`, `gemini-3.6-flash`, `gemini-3.5-flash-lite`, `gemini-3.5-flash`, `gemini-3.1-pro-preview`, `gemini-3.1-flash-lite`, `gemini-3-flash-preview`, `gemini-2.5-pro`, `gemini-2.5-flash`, `gemini-2.5-flash-lite` | +| Google | Summaries only | `gemini-4-neon`, `gemini-4-hydrogen`, `gemini-4-carbon`, `gemini-4-argon`, `gemini-3.8-flash`, `gemini-3.7-flash`, `gemini-3.6-flash`, `gemini-3.5-flash-lite`, `gemini-3.5-flash`, `gemini-3.1-pro-preview`, `gemini-3.1-flash-lite`, `gemini-3-flash-preview`, `gemini-2.5-pro`, `gemini-2.5-flash`, `gemini-2.5-flash-lite` | | Vertex AI | Summaries only | `vertex/gemini-3.8-flash`, `vertex/gemini-3.7-flash`, `vertex/gemini-3.6-flash`, `vertex/gemini-3.5-flash-lite`, `vertex/gemini-3.5-flash`, `vertex/gemini-3.1-pro-preview`, `vertex/gemini-3.1-flash-lite`, `vertex/gemini-3-flash-preview`, `vertex/gemini-2.5-pro`, `vertex/gemini-2.5-flash`, `vertex/gemini-2.5-flash-lite` | | DeepSeek | Full thinking deltas | `deepseek-v4-pro`, `deepseek-flash`, `deepseek-v4-flash`, `deepseek-reasoner` | | xAI | Full thinking deltas | `grok-4.6`, `grok-4.5`, `grok-4.3`, `grok-4.20-multi-agent-0309` | diff --git a/apps/sim/lib/media/image-catalog.ts b/apps/sim/lib/media/image-catalog.ts index e4c1e44eb56..f28cb7c15d0 100644 --- a/apps/sim/lib/media/image-catalog.ts +++ b/apps/sim/lib/media/image-catalog.ts @@ -40,6 +40,8 @@ const ratios = ['1:1', '2:3', '3:2', '3:4', '4:3', '4:5', '5:4', '9:16', '16:9', const extremeRatios = [...ratios, '1:4', '4:1', '1:8', '8:1'] const formats = ['png', 'jpeg', 'webp'] const openaiModels = [ + ['gpt-image-2.6-sunburst', 'GPT Image 2.6 Sunburst'], + ['gpt-image-2.6-flare', 'GPT Image 2.6 Flare'], ['gpt-image-2.5-sunburst', 'GPT Image 2.5 Sunburst'], ['gpt-image-2.5-flare', 'GPT Image 2.5 Flare'], ['gpt-image-2', 'GPT Image 2'], @@ -82,7 +84,7 @@ export const imageModels: readonly ImageModel[] = [ 'low', 'medium', 'high', - ...(id.startsWith('gpt-image-2.5') ? ['xhigh', 'max'] : []), + ...(/^gpt-image-2\.[56]/.test(id) ? ['xhigh', 'max'] : []), ], }, background: { field: 'background', values: ['auto', 'transparent', 'opaque'] }, diff --git a/apps/sim/providers/google/utils.ts b/apps/sim/providers/google/utils.ts index 18617c222b4..dc0c182b51f 100644 --- a/apps/sim/providers/google/utils.ts +++ b/apps/sim/providers/google/utils.ts @@ -410,6 +410,9 @@ export function mapToThinkingLevel(level: string): ThinkingLevel { return ThinkingLevel.MEDIUM case 'high': return ThinkingLevel.HIGH + case 'xhigh': + // @google/genai 2.x predates the XHIGH enum member; the wire value is the plain string. + return 'XHIGH' as ThinkingLevel default: return ThinkingLevel.HIGH } diff --git a/apps/sim/providers/models.ts b/apps/sim/providers/models.ts index d6cdfce60da..dd9fff6e6c6 100644 --- a/apps/sim/providers/models.ts +++ b/apps/sim/providers/models.ts @@ -596,6 +596,59 @@ export const PROVIDER_DEFINITIONS: Record = { toolUsageControl: true, }, models: [ + { + id: 'gpt-6.2-astra', + pricing: { + input: 8.0, + cachedInput: 0.4, + output: 40.0, + tiers: [ + { + aboveInputTokens: 272000, + input: 16.0, + cachedInput: 0.8, + output: 60.0, + }, + ], + updatedAt: '2026-11-20', + }, + capabilities: { + reasoningEffort: { + values: ['low', 'medium', 'high', 'xhigh', 'max'], + }, + maxOutputTokens: 128000, + }, + contextWindow: 1050000, + releaseDate: '2026-11-17', + }, + { + id: 'gpt-6.2-sol', + pricing: { + input: 2.0, + cachedInput: 0.1, + output: 10.0, + tiers: [ + { + aboveInputTokens: 272000, + input: 4.0, + cachedInput: 0.2, + output: 15.0, + }, + ], + updatedAt: '2026-11-20', + }, + capabilities: { + reasoningEffort: { + values: ['low', 'medium', 'high', 'xhigh', 'max'], + }, + verbosity: { + values: ['low', 'medium', 'high'], + }, + maxOutputTokens: 128000, + }, + contextWindow: 1050000, + releaseDate: '2026-11-17', + }, { id: 'gpt-6-astra', pricing: { @@ -2596,6 +2649,60 @@ export const PROVIDER_DEFINITIONS: Record = { icon: GeminiIcon, color: '#4285F4', models: [ + { + id: 'gemini-4-neon', + pricing: { + input: 3, + cachedInput: 0.15, + output: 15, + updatedAt: '2026-11-20', + }, + capabilities: { + thinking: { + levels: ['low', 'medium', 'high', 'xhigh'], + default: 'high', + }, + maxOutputTokens: 65536, + }, + contextWindow: 1048576, + releaseDate: '2026-11-18', + }, + { + id: 'gemini-4-hydrogen', + pricing: { + input: 1.5, + cachedInput: 0.075, + output: 7.5, + updatedAt: '2026-11-20', + }, + capabilities: { + thinking: { + levels: ['low', 'medium', 'high', 'xhigh'], + default: 'high', + }, + maxOutputTokens: 65536, + }, + contextWindow: 1048576, + releaseDate: '2026-11-12', + }, + { + id: 'gemini-4-carbon', + pricing: { + input: 2, + cachedInput: 0.1, + output: 10, + updatedAt: '2026-11-20', + }, + capabilities: { + thinking: { + levels: ['low', 'medium', 'high'], + default: 'medium', + }, + maxOutputTokens: 65536, + }, + contextWindow: 1048576, + releaseDate: '2026-11-10', + }, { id: 'gemini-4-argon', pricing: { From 42c8274ed34f4df16045fd4631cf526444cd3a1a Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Fri, 20 Nov 2026 11:12:08 -0800 Subject: [PATCH 2/3] fix(models): clamp unsupported Gemini xhigh and recommend the new flagships --- apps/sim/providers/gemini/core.test.ts | 25 +++++++++++++++++++++++++ apps/sim/providers/gemini/core.ts | 8 +++++--- apps/sim/providers/models.ts | 7 +++++-- 3 files changed, 35 insertions(+), 5 deletions(-) diff --git a/apps/sim/providers/gemini/core.test.ts b/apps/sim/providers/gemini/core.test.ts index 7e051494ded..c139e7036fa 100644 --- a/apps/sim/providers/gemini/core.test.ts +++ b/apps/sim/providers/gemini/core.test.ts @@ -154,6 +154,31 @@ describe('Vertex Gemini request compatibility', () => { }) }) + /** A saved or variable-resolved 'xhigh' bypasses the picker, so models without it must not receive XHIGH. */ + it.each([ + ['gemini-4-neon', 'XHIGH'], + ['gemini-4-carbon', 'HIGH'], + ['gemini-3.8-flash', 'HIGH'], + ])("sends the supported level for 'xhigh' on %s", async (model, thinkingLevel) => { + const generateContent = vi.fn().mockResolvedValue(textTurn()) + await executeGeminiRequest({ + ai: { models: { generateContent, generateContentStream: vi.fn() } } as never, + model, + providerType: 'google', + request: { + model, + apiKey: 'test-key', + messages: [{ role: 'user', content: 'Look this up' }], + thinkingLevel: 'xhigh', + }, + }) + + expect(generateContent.mock.calls[0][0].config.thinkingConfig).toEqual({ + thinkingLevel, + includeThoughts: false, + }) + }) + it.each(['vertex/gemini-2.5-flash', 'vertex/Custom-Gemini-Model'])( 'preserves temperature for supported or uncataloged %s', async (model) => { diff --git a/apps/sim/providers/gemini/core.ts b/apps/sim/providers/gemini/core.ts index a8e886cf189..2f4e0a50a92 100644 --- a/apps/sim/providers/gemini/core.ts +++ b/apps/sim/providers/gemini/core.ts @@ -1016,10 +1016,12 @@ export async function executeGeminiRequest( // 'none' sends the lowest declared level (levels are listed lowest-first; MINIMAL is closest to off). // The catalog keys Vertex entries as vertex/, so resource-name IDs are reduced first. const catalogModelId = `${providerType === 'vertex' ? 'vertex/' : ''}${toBareGeminiModelId(model)}` + const declaredLevels = getThinkingLevelsForModel(catalogModelId) + const requestedLevel = + isGemini3 && request.thinkingLevel === 'none' ? declaredLevels?.[0] : request.thinkingLevel + // A saved or variable-resolved 'xhigh' bypasses the picker; models without it reject XHIGH. const thinkingLevel = - isGemini3 && request.thinkingLevel === 'none' - ? getThinkingLevelsForModel(catalogModelId)?.[0] - : request.thinkingLevel + requestedLevel === 'xhigh' && !declaredLevels?.includes('xhigh') ? 'high' : requestedLevel if (thinkingLevel && thinkingLevel !== 'none') { const thinkingConfig: ThinkingConfig = { includeThoughts: request.agentEvents === true } if (isGemini3) { diff --git a/apps/sim/providers/models.ts b/apps/sim/providers/models.ts index dd9fff6e6c6..6903c20d252 100644 --- a/apps/sim/providers/models.ts +++ b/apps/sim/providers/models.ts @@ -620,6 +620,7 @@ export const PROVIDER_DEFINITIONS: Record = { }, contextWindow: 1050000, releaseDate: '2026-11-17', + recommended: true, }, { id: 'gpt-6.2-sol', @@ -648,6 +649,7 @@ export const PROVIDER_DEFINITIONS: Record = { }, contextWindow: 1050000, releaseDate: '2026-11-17', + recommended: true, }, { id: 'gpt-6-astra', @@ -674,7 +676,6 @@ export const PROVIDER_DEFINITIONS: Record = { contextWindow: 1050000, releaseDate: '2026-09-03', featured: true, - recommended: true, }, { id: 'gpt-6.1-sol', @@ -2666,6 +2667,7 @@ export const PROVIDER_DEFINITIONS: Record = { }, contextWindow: 1048576, releaseDate: '2026-11-18', + recommended: true, }, { id: 'gemini-4-hydrogen', @@ -2684,6 +2686,7 @@ export const PROVIDER_DEFINITIONS: Record = { }, contextWindow: 1048576, releaseDate: '2026-11-12', + recommended: true, }, { id: 'gemini-4-carbon', @@ -2702,6 +2705,7 @@ export const PROVIDER_DEFINITIONS: Record = { }, contextWindow: 1048576, releaseDate: '2026-11-10', + recommended: true, }, { id: 'gemini-4-argon', @@ -2720,7 +2724,6 @@ export const PROVIDER_DEFINITIONS: Record = { }, contextWindow: 1048576, releaseDate: '2026-09-30', - recommended: true, }, { id: 'gemini-3.8-flash', From 8b479324ce1f197ea11a91b38c690d6fcc0cfbc5 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Fri, 20 Nov 2026 11:14:21 -0800 Subject: [PATCH 3/3] fix(models): correct Gemini 4 Argon release date --- apps/sim/providers/models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/providers/models.ts b/apps/sim/providers/models.ts index 6903c20d252..280ec5ceadd 100644 --- a/apps/sim/providers/models.ts +++ b/apps/sim/providers/models.ts @@ -2723,7 +2723,7 @@ export const PROVIDER_DEFINITIONS: Record = { maxOutputTokens: 65536, }, contextWindow: 1048576, - releaseDate: '2026-09-30', + releaseDate: '2026-10-13', }, { id: 'gemini-3.8-flash',