Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions apps/docs/content/docs/workflows/blocks/agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
4 changes: 3 additions & 1 deletion apps/sim/lib/media/image-catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down Expand Up @@ -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'] },
Expand Down
25 changes: 25 additions & 0 deletions apps/sim/providers/gemini/core.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
8 changes: 5 additions & 3 deletions apps/sim/providers/gemini/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/<bare id>, 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) {
Expand Down
3 changes: 3 additions & 0 deletions apps/sim/providers/google/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
waleedlatif1 marked this conversation as resolved.
Resolved
default:
return ThinkingLevel.HIGH
}
Expand Down
116 changes: 113 additions & 3 deletions apps/sim/providers/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,61 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
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',
recommended: true,
},
{
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',
recommended: true,
},
{
id: 'gpt-6-astra',
pricing: {
Expand All @@ -621,7 +676,6 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
contextWindow: 1050000,
releaseDate: '2026-09-03',
featured: true,
recommended: true,
},
{
id: 'gpt-6.1-sol',
Expand Down Expand Up @@ -2596,6 +2650,63 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
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',
recommended: true,
},
{
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',
recommended: true,
},
{
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',
recommended: true,
},
{
id: 'gemini-4-argon',
pricing: {
Expand All @@ -2612,8 +2723,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
maxOutputTokens: 65536,
},
contextWindow: 1048576,
releaseDate: '2026-09-30',
recommended: true,
releaseDate: '2026-10-13',
},
{
id: 'gemini-3.8-flash',
Expand Down
Loading