diff --git a/apps/sim/app/api/copilot/chat/route.ts b/apps/sim/app/api/copilot/chat/route.ts index 5fc8a563ff..9240373cb4 100644 --- a/apps/sim/app/api/copilot/chat/route.ts +++ b/apps/sim/app/api/copilot/chat/route.ts @@ -43,6 +43,12 @@ const ChatMessageSchema = z.object({ 'gpt-5', 'gpt-5-medium', 'gpt-5-high', + 'gpt-5.1-fast', + 'gpt-5.1', + 'gpt-5.1-medium', + 'gpt-5.1-high', + 'gpt-5-codex', + 'gpt-5.1-codex', 'gpt-4o', 'gpt-4.1', 'o3', diff --git a/apps/sim/app/api/copilot/user-models/route.ts b/apps/sim/app/api/copilot/user-models/route.ts index a0e8c65e11..4802a2ca8a 100644 --- a/apps/sim/app/api/copilot/user-models/route.ts +++ b/apps/sim/app/api/copilot/user-models/route.ts @@ -12,8 +12,14 @@ const DEFAULT_ENABLED_MODELS: Record = { 'gpt-4.1': false, 'gpt-5-fast': false, 'gpt-5': true, - 'gpt-5-medium': true, + 'gpt-5-medium': false, 'gpt-5-high': false, + 'gpt-5.1-fast': false, + 'gpt-5.1': true, + 'gpt-5.1-medium': true, + 'gpt-5.1-high': false, + 'gpt-5-codex': false, + 'gpt-5.1-codex': true, o3: true, 'claude-4-sonnet': false, 'claude-4.5-haiku': true, diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/constants.ts b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/constants.ts index 8b45f58abd..d0fb71b4fa 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/constants.ts +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/constants.ts @@ -20,16 +20,21 @@ export const MENTION_OPTIONS = [ * Model configuration options */ export const MODEL_OPTIONS = [ - // { value: 'claude-4-sonnet', label: 'claude-4-sonnet' }, - { value: 'claude-4.5-sonnet', label: 'claude-4.5-sonnet' }, - { value: 'claude-4.5-haiku', label: 'claude-4.5-haiku' }, - { value: 'claude-4.1-opus', label: 'claude-4.1-opus' }, - // { value: 'gpt-5-fast', label: 'gpt-5-fast' }, - // { value: 'gpt-5', label: 'gpt-5' }, - { value: 'gpt-5-medium', label: 'gpt-5-medium' }, - // { value: 'gpt-5-high', label: 'gpt-5-high' }, - // { value: 'gpt-4o', label: 'gpt-4o' }, - // { value: 'gpt-4.1', label: 'gpt-4.1' }, + // { value: 'claude-4-sonnet', label: 'Claude 4 Sonnet' }, + { value: 'claude-4.5-sonnet', label: 'Claude 4.5 Sonnet' }, + { value: 'claude-4.5-haiku', label: 'Claude 4.5 Haiku' }, + { value: 'claude-4.1-opus', label: 'Claude 4.1 Opus' }, + // { value: 'gpt-5-fast', label: 'GPT 5 Fast' }, + // { value: 'gpt-5', label: 'GPT 5' }, + // { value: 'gpt-5.1-fast', label: 'GPT 5.1 Fast' }, + // { value: 'gpt-5.1', label: 'GPT 5.1' }, + { value: 'gpt-5.1-medium', label: 'GPT 5.1 Medium' }, + // { value: 'gpt-5.1-high', label: 'GPT 5.1 High' }, + // { value: 'gpt-5-codex', label: 'GPT 5 Codex' }, + { value: 'gpt-5.1-codex', label: 'GPT 5.1 Codex' }, + // { value: 'gpt-5-high', label: 'GPT 5 High' }, + // { value: 'gpt-4o', label: 'GPT 4o' }, + // { value: 'gpt-4.1', label: 'GPT 4.1' }, { value: 'o3', label: 'o3' }, ] as const diff --git a/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components-new/settings-modal/components/copilot/copilot.tsx b/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components-new/settings-modal/components/copilot/copilot.tsx index aa29006d26..a6f1c42922 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components-new/settings-modal/components/copilot/copilot.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components-new/settings-modal/components/copilot/copilot.tsx @@ -32,11 +32,17 @@ const logger = createLogger('CopilotSettings') // { value: 'gpt-4o', label: 'gpt-4o', icon: 'zap' }, // { value: 'gpt-4.1', label: 'gpt-4.1', icon: 'zap' }, // { value: 'gpt-5-fast', label: 'gpt-5-fast', icon: 'zap' }, +// { value: 'gpt-5.1-fast', label: 'gpt-5.1-fast', icon: 'zap' }, // // Brain models // { value: 'gpt-5', label: 'gpt-5', icon: 'brain' }, // { value: 'gpt-5-medium', label: 'gpt-5-medium', icon: 'brain' }, +// { value: 'gpt-5.1', label: 'gpt-5.1', icon: 'brain' }, +// { value: 'gpt-5.1-medium', label: 'gpt-5.1-medium', icon: 'brain' }, // // BrainCircuit models // { value: 'gpt-5-high', label: 'gpt-5-high', icon: 'brainCircuit' }, +// { value: 'gpt-5.1-high', label: 'gpt-5.1-high', icon: 'brainCircuit' }, +// { value: 'gpt-5-codex', label: 'gpt-5-codex', icon: 'brainCircuit' }, +// { value: 'gpt-5.1-codex', label: 'gpt-5.1-codex', icon: 'brainCircuit' }, // { value: 'o3', label: 'o3', icon: 'brainCircuit' }, // ] @@ -58,8 +64,14 @@ const logger = createLogger('CopilotSettings') // 'gpt-4.1': false, // 'gpt-5-fast': false, // 'gpt-5': true, -// 'gpt-5-medium': true, +// 'gpt-5-medium': false, // 'gpt-5-high': false, +// 'gpt-5.1-fast': false, +// 'gpt-5.1': true, +// 'gpt-5.1-medium': true, +// 'gpt-5.1-high': false, +// 'gpt-5-codex': false, +// 'gpt-5.1-codex': true, // o3: true, // 'claude-4-sonnet': false, // 'claude-4.5-haiku': true, diff --git a/apps/sim/lib/copilot/api.ts b/apps/sim/lib/copilot/api.ts index 9a1dbf7fdb..eaeb9b5fcc 100644 --- a/apps/sim/lib/copilot/api.ts +++ b/apps/sim/lib/copilot/api.ts @@ -72,6 +72,12 @@ export interface SendMessageRequest { | 'gpt-5' | 'gpt-5-medium' | 'gpt-5-high' + | 'gpt-5.1-fast' + | 'gpt-5.1' + | 'gpt-5.1-medium' + | 'gpt-5.1-high' + | 'gpt-5-codex' + | 'gpt-5.1-codex' | 'gpt-4o' | 'gpt-4.1' | 'o3' diff --git a/apps/sim/stores/panel/copilot/types.ts b/apps/sim/stores/panel/copilot/types.ts index aa922c3a7a..db0a954eb5 100644 --- a/apps/sim/stores/panel/copilot/types.ts +++ b/apps/sim/stores/panel/copilot/types.ts @@ -66,6 +66,12 @@ export interface CopilotState { | 'gpt-5' | 'gpt-5-medium' | 'gpt-5-high' + | 'gpt-5.1-fast' + | 'gpt-5.1' + | 'gpt-5.1-medium' + | 'gpt-5.1-high' + | 'gpt-5-codex' + | 'gpt-5.1-codex' | 'gpt-4o' | 'gpt-4.1' | 'o3'