From dfa4d2d63160f23a70306a33e82789fa7e70f51d Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Mon, 1 Dec 2025 16:23:36 -0800 Subject: [PATCH 1/3] Switch default model to claude 4.5 sonnet --- apps/sim/blocks/blocks/agent.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/sim/blocks/blocks/agent.ts b/apps/sim/blocks/blocks/agent.ts index 7ade8d876aa..e2f534fc8f6 100644 --- a/apps/sim/blocks/blocks/agent.ts +++ b/apps/sim/blocks/blocks/agent.ts @@ -90,6 +90,7 @@ export const AgentBlock: BlockConfig = { type: 'combobox', placeholder: 'Type or select a model...', required: true, + defaultValue: 'claude-sonnet-4-5', options: () => { const providersState = useProvidersStore.getState() const baseModels = providersState.providers.base.models @@ -119,7 +120,7 @@ export const AgentBlock: BlockConfig = { { label: 'medium', id: 'medium' }, { label: 'high', id: 'high' }, ], - value: () => 'medium', + value: () => 'low', condition: { field: 'model', value: MODELS_WITH_REASONING_EFFORT, @@ -135,7 +136,7 @@ export const AgentBlock: BlockConfig = { { label: 'medium', id: 'medium' }, { label: 'high', id: 'high' }, ], - value: () => 'medium', + value: () => 'low', condition: { field: 'model', value: MODELS_WITH_VERBOSITY, @@ -245,7 +246,7 @@ export const AgentBlock: BlockConfig = { type: 'slider', min: 0, max: 1, - defaultValue: 0.5, + defaultValue: 0.3, condition: () => ({ field: 'model', value: (() => { @@ -262,7 +263,7 @@ export const AgentBlock: BlockConfig = { type: 'slider', min: 0, max: 2, - defaultValue: 1, + defaultValue: 0.3, condition: () => ({ field: 'model', value: (() => { @@ -383,7 +384,7 @@ Example 3 (Array Input): ], config: { tool: (params: Record) => { - const model = params.model || 'gpt-4o' + const model = params.model || 'claude-sonnet-4-5' if (!model) { throw new Error('No model selected') } From f3be9cb32520591fffb129b6e5378a062667ed48 Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Mon, 1 Dec 2025 16:25:06 -0800 Subject: [PATCH 2/3] Fix defaults --- .../sub-block/components/combobox/combobox.tsx | 12 ++++++------ apps/sim/executor/consts.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/combobox/combobox.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/combobox/combobox.tsx index a8e68f47d4b..df1ea3712d3 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/combobox/combobox.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/combobox/combobox.tsx @@ -11,7 +11,7 @@ import type { SubBlockConfig } from '@/blocks/types' /** * Constants for ComboBox component behavior */ -const DEFAULT_MODEL = 'gpt-4o' +const DEFAULT_MODEL = 'claude-sonnet-4-5' const ZOOM_FACTOR_BASE = 0.96 const MIN_ZOOM = 0.1 const MAX_ZOOM = 1 @@ -99,18 +99,18 @@ export function ComboBox({ /** * Determines the default option value to use. - * Priority: explicit defaultValue > gpt-4o for model field > first option + * Priority: explicit defaultValue > claude-sonnet-4-5 for model field > first option */ const defaultOptionValue = useMemo(() => { if (defaultValue !== undefined) { return defaultValue } - // For model field, default to gpt-4o if available + // For model field, default to claude-sonnet-4-5 if available if (subBlockId === 'model') { - const gpt4o = evaluatedOptions.find((opt) => getOptionValue(opt) === DEFAULT_MODEL) - if (gpt4o) { - return getOptionValue(gpt4o) + const claudeSonnet45 = evaluatedOptions.find((opt) => getOptionValue(opt) === DEFAULT_MODEL) + if (claudeSonnet45) { + return getOptionValue(claudeSonnet45) } } diff --git a/apps/sim/executor/consts.ts b/apps/sim/executor/consts.ts index 95a06ad642a..a31bed2bec2 100644 --- a/apps/sim/executor/consts.ts +++ b/apps/sim/executor/consts.ts @@ -157,7 +157,7 @@ export const HTTP = { } as const export const AGENT = { - DEFAULT_MODEL: 'gpt-4o', + DEFAULT_MODEL: 'claude-sonnet-4-5', DEFAULT_FUNCTION_TIMEOUT: 5000, REQUEST_TIMEOUT: 120000, CUSTOM_TOOL_PREFIX: 'custom_', From c2636a9318f00e4f95ffaf74035d16750d1e705d Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Mon, 1 Dec 2025 16:45:23 -0800 Subject: [PATCH 3/3] Switch back to medium --- apps/sim/blocks/blocks/agent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/sim/blocks/blocks/agent.ts b/apps/sim/blocks/blocks/agent.ts index e2f534fc8f6..3e2c3e08299 100644 --- a/apps/sim/blocks/blocks/agent.ts +++ b/apps/sim/blocks/blocks/agent.ts @@ -120,7 +120,7 @@ export const AgentBlock: BlockConfig = { { label: 'medium', id: 'medium' }, { label: 'high', id: 'high' }, ], - value: () => 'low', + value: () => 'medium', condition: { field: 'model', value: MODELS_WITH_REASONING_EFFORT, @@ -136,7 +136,7 @@ export const AgentBlock: BlockConfig = { { label: 'medium', id: 'medium' }, { label: 'high', id: 'high' }, ], - value: () => 'low', + value: () => 'medium', condition: { field: 'model', value: MODELS_WITH_VERBOSITY,