Skip to content

Commit 774eed3

Browse files
authored
feat(models): add Gemini 4 Neon/Hydrogen/Carbon, GPT-6.2 Astra/Sol, GPT Image 2.6 (#10247)
* feat(models): add Gemini 4 Neon/Hydrogen/Carbon, GPT-6.2 Astra/Sol, GPT Image 2.6 * fix(models): clamp unsupported Gemini xhigh and recommend the new flagships * fix(models): correct Gemini 4 Argon release date
1 parent c34a82f commit 774eed3

6 files changed

Lines changed: 151 additions & 9 deletions

File tree

‎apps/docs/content/docs/workflows/blocks/agent.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ Live tool-call chips stream for **OpenAI, Anthropic, Azure Anthropic, Google, Ve
188188

189189
| Provider | Streamed thinking | Models |
190190
|----------|-------------------|--------|
191-
| 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` |
191+
| 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` |
192192
| 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` |
193193
| 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` |
194194
| 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` |
195-
| 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` |
195+
| 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` |
196196
| 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` |
197197
| DeepSeek | Full thinking deltas | `deepseek-v4-pro`, `deepseek-flash`, `deepseek-v4-flash`, `deepseek-reasoner` |
198198
| xAI | Full thinking deltas | `grok-4.6`, `grok-4.5`, `grok-4.3`, `grok-4.20-multi-agent-0309` |

‎apps/sim/lib/media/image-catalog.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ const ratios = ['1:1', '2:3', '3:2', '3:4', '4:3', '4:5', '5:4', '9:16', '16:9',
4040
const extremeRatios = [...ratios, '1:4', '4:1', '1:8', '8:1']
4141
const formats = ['png', 'jpeg', 'webp']
4242
const openaiModels = [
43+
['gpt-image-2.6-sunburst', 'GPT Image 2.6 Sunburst'],
44+
['gpt-image-2.6-flare', 'GPT Image 2.6 Flare'],
4345
['gpt-image-2.5-sunburst', 'GPT Image 2.5 Sunburst'],
4446
['gpt-image-2.5-flare', 'GPT Image 2.5 Flare'],
4547
['gpt-image-2', 'GPT Image 2'],
@@ -82,7 +84,7 @@ export const imageModels: readonly ImageModel[] = [
8284
'low',
8385
'medium',
8486
'high',
85-
...(id.startsWith('gpt-image-2.5') ? ['xhigh', 'max'] : []),
87+
...(/^gpt-image-2\.[56]/.test(id) ? ['xhigh', 'max'] : []),
8688
],
8789
},
8890
background: { field: 'background', values: ['auto', 'transparent', 'opaque'] },

‎apps/sim/providers/gemini/core.test.ts‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,31 @@ describe('Vertex Gemini request compatibility', () => {
154154
})
155155
})
156156

157+
/** A saved or variable-resolved 'xhigh' bypasses the picker, so models without it must not receive XHIGH. */
158+
it.each([
159+
['gemini-4-neon', 'XHIGH'],
160+
['gemini-4-carbon', 'HIGH'],
161+
['gemini-3.8-flash', 'HIGH'],
162+
])("sends the supported level for 'xhigh' on %s", async (model, thinkingLevel) => {
163+
const generateContent = vi.fn().mockResolvedValue(textTurn())
164+
await executeGeminiRequest({
165+
ai: { models: { generateContent, generateContentStream: vi.fn() } } as never,
166+
model,
167+
providerType: 'google',
168+
request: {
169+
model,
170+
apiKey: 'test-key',
171+
messages: [{ role: 'user', content: 'Look this up' }],
172+
thinkingLevel: 'xhigh',
173+
},
174+
})
175+
176+
expect(generateContent.mock.calls[0][0].config.thinkingConfig).toEqual({
177+
thinkingLevel,
178+
includeThoughts: false,
179+
})
180+
})
181+
157182
it.each(['vertex/gemini-2.5-flash', 'vertex/Custom-Gemini-Model'])(
158183
'preserves temperature for supported or uncataloged %s',
159184
async (model) => {

‎apps/sim/providers/gemini/core.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,10 +1016,12 @@ export async function executeGeminiRequest(
10161016
// 'none' sends the lowest declared level (levels are listed lowest-first; MINIMAL is closest to off).
10171017
// The catalog keys Vertex entries as vertex/<bare id>, so resource-name IDs are reduced first.
10181018
const catalogModelId = `${providerType === 'vertex' ? 'vertex/' : ''}${toBareGeminiModelId(model)}`
1019+
const declaredLevels = getThinkingLevelsForModel(catalogModelId)
1020+
const requestedLevel =
1021+
isGemini3 && request.thinkingLevel === 'none' ? declaredLevels?.[0] : request.thinkingLevel
1022+
// A saved or variable-resolved 'xhigh' bypasses the picker; models without it reject XHIGH.
10191023
const thinkingLevel =
1020-
isGemini3 && request.thinkingLevel === 'none'
1021-
? getThinkingLevelsForModel(catalogModelId)?.[0]
1022-
: request.thinkingLevel
1024+
requestedLevel === 'xhigh' && !declaredLevels?.includes('xhigh') ? 'high' : requestedLevel
10231025
if (thinkingLevel && thinkingLevel !== 'none') {
10241026
const thinkingConfig: ThinkingConfig = { includeThoughts: request.agentEvents === true }
10251027
if (isGemini3) {

‎apps/sim/providers/google/utils.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ export function mapToThinkingLevel(level: string): ThinkingLevel {
410410
return ThinkingLevel.MEDIUM
411411
case 'high':
412412
return ThinkingLevel.HIGH
413+
case 'xhigh':
414+
// @google/genai 2.x predates the XHIGH enum member; the wire value is the plain string.
415+
return 'XHIGH' as ThinkingLevel
413416
default:
414417
return ThinkingLevel.HIGH
415418
}

‎apps/sim/providers/models.ts‎

Lines changed: 113 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,61 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
596596
toolUsageControl: true,
597597
},
598598
models: [
599+
{
600+
id: 'gpt-6.2-astra',
601+
pricing: {
602+
input: 8.0,
603+
cachedInput: 0.4,
604+
output: 40.0,
605+
tiers: [
606+
{
607+
aboveInputTokens: 272000,
608+
input: 16.0,
609+
cachedInput: 0.8,
610+
output: 60.0,
611+
},
612+
],
613+
updatedAt: '2026-11-20',
614+
},
615+
capabilities: {
616+
reasoningEffort: {
617+
values: ['low', 'medium', 'high', 'xhigh', 'max'],
618+
},
619+
maxOutputTokens: 128000,
620+
},
621+
contextWindow: 1050000,
622+
releaseDate: '2026-11-17',
623+
recommended: true,
624+
},
625+
{
626+
id: 'gpt-6.2-sol',
627+
pricing: {
628+
input: 2.0,
629+
cachedInput: 0.1,
630+
output: 10.0,
631+
tiers: [
632+
{
633+
aboveInputTokens: 272000,
634+
input: 4.0,
635+
cachedInput: 0.2,
636+
output: 15.0,
637+
},
638+
],
639+
updatedAt: '2026-11-20',
640+
},
641+
capabilities: {
642+
reasoningEffort: {
643+
values: ['low', 'medium', 'high', 'xhigh', 'max'],
644+
},
645+
verbosity: {
646+
values: ['low', 'medium', 'high'],
647+
},
648+
maxOutputTokens: 128000,
649+
},
650+
contextWindow: 1050000,
651+
releaseDate: '2026-11-17',
652+
recommended: true,
653+
},
599654
{
600655
id: 'gpt-6-astra',
601656
pricing: {
@@ -621,7 +676,6 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
621676
contextWindow: 1050000,
622677
releaseDate: '2026-09-03',
623678
featured: true,
624-
recommended: true,
625679
},
626680
{
627681
id: 'gpt-6.1-sol',
@@ -2596,6 +2650,63 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
25962650
icon: GeminiIcon,
25972651
color: '#4285F4',
25982652
models: [
2653+
{
2654+
id: 'gemini-4-neon',
2655+
pricing: {
2656+
input: 3,
2657+
cachedInput: 0.15,
2658+
output: 15,
2659+
updatedAt: '2026-11-20',
2660+
},
2661+
capabilities: {
2662+
thinking: {
2663+
levels: ['low', 'medium', 'high', 'xhigh'],
2664+
default: 'high',
2665+
},
2666+
maxOutputTokens: 65536,
2667+
},
2668+
contextWindow: 1048576,
2669+
releaseDate: '2026-11-18',
2670+
recommended: true,
2671+
},
2672+
{
2673+
id: 'gemini-4-hydrogen',
2674+
pricing: {
2675+
input: 1.5,
2676+
cachedInput: 0.075,
2677+
output: 7.5,
2678+
updatedAt: '2026-11-20',
2679+
},
2680+
capabilities: {
2681+
thinking: {
2682+
levels: ['low', 'medium', 'high', 'xhigh'],
2683+
default: 'high',
2684+
},
2685+
maxOutputTokens: 65536,
2686+
},
2687+
contextWindow: 1048576,
2688+
releaseDate: '2026-11-12',
2689+
recommended: true,
2690+
},
2691+
{
2692+
id: 'gemini-4-carbon',
2693+
pricing: {
2694+
input: 2,
2695+
cachedInput: 0.1,
2696+
output: 10,
2697+
updatedAt: '2026-11-20',
2698+
},
2699+
capabilities: {
2700+
thinking: {
2701+
levels: ['low', 'medium', 'high'],
2702+
default: 'medium',
2703+
},
2704+
maxOutputTokens: 65536,
2705+
},
2706+
contextWindow: 1048576,
2707+
releaseDate: '2026-11-10',
2708+
recommended: true,
2709+
},
25992710
{
26002711
id: 'gemini-4-argon',
26012712
pricing: {
@@ -2612,8 +2723,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
26122723
maxOutputTokens: 65536,
26132724
},
26142725
contextWindow: 1048576,
2615-
releaseDate: '2026-09-30',
2616-
recommended: true,
2726+
releaseDate: '2026-10-13',
26172727
},
26182728
{
26192729
id: 'gemini-3.8-flash',

0 commit comments

Comments
 (0)