Skip to content

Commit 3be57af

Browse files
authored
improvement(copilot): add gpt5.1 and codex (#2092)
1 parent ddd3219 commit 3be57af

File tree

6 files changed

+53
-12
lines changed
  • apps/sim
    • app
      • api/copilot
      • workspace/[workspaceId]/w
        • [workflowId]/components/panel/components/copilot/components/user-input
        • components/sidebar/components-new/settings-modal/components/copilot
    • lib/copilot
    • stores/panel/copilot

6 files changed

+53
-12
lines changed

apps/sim/app/api/copilot/chat/route.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ const ChatMessageSchema = z.object({
4343
'gpt-5',
4444
'gpt-5-medium',
4545
'gpt-5-high',
46+
'gpt-5.1-fast',
47+
'gpt-5.1',
48+
'gpt-5.1-medium',
49+
'gpt-5.1-high',
50+
'gpt-5-codex',
51+
'gpt-5.1-codex',
4652
'gpt-4o',
4753
'gpt-4.1',
4854
'o3',

apps/sim/app/api/copilot/user-models/route.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ const DEFAULT_ENABLED_MODELS: Record<string, boolean> = {
1212
'gpt-4.1': false,
1313
'gpt-5-fast': false,
1414
'gpt-5': true,
15-
'gpt-5-medium': true,
15+
'gpt-5-medium': false,
1616
'gpt-5-high': false,
17+
'gpt-5.1-fast': false,
18+
'gpt-5.1': true,
19+
'gpt-5.1-medium': true,
20+
'gpt-5.1-high': false,
21+
'gpt-5-codex': false,
22+
'gpt-5.1-codex': true,
1723
o3: true,
1824
'claude-4-sonnet': false,
1925
'claude-4.5-haiku': true,

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/constants.ts

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,21 @@ export const MENTION_OPTIONS = [
2020
* Model configuration options
2121
*/
2222
export const MODEL_OPTIONS = [
23-
// { value: 'claude-4-sonnet', label: 'claude-4-sonnet' },
24-
{ value: 'claude-4.5-sonnet', label: 'claude-4.5-sonnet' },
25-
{ value: 'claude-4.5-haiku', label: 'claude-4.5-haiku' },
26-
{ value: 'claude-4.1-opus', label: 'claude-4.1-opus' },
27-
// { value: 'gpt-5-fast', label: 'gpt-5-fast' },
28-
// { value: 'gpt-5', label: 'gpt-5' },
29-
{ value: 'gpt-5-medium', label: 'gpt-5-medium' },
30-
// { value: 'gpt-5-high', label: 'gpt-5-high' },
31-
// { value: 'gpt-4o', label: 'gpt-4o' },
32-
// { value: 'gpt-4.1', label: 'gpt-4.1' },
23+
// { value: 'claude-4-sonnet', label: 'Claude 4 Sonnet' },
24+
{ value: 'claude-4.5-sonnet', label: 'Claude 4.5 Sonnet' },
25+
{ value: 'claude-4.5-haiku', label: 'Claude 4.5 Haiku' },
26+
{ value: 'claude-4.1-opus', label: 'Claude 4.1 Opus' },
27+
// { value: 'gpt-5-fast', label: 'GPT 5 Fast' },
28+
// { value: 'gpt-5', label: 'GPT 5' },
29+
// { value: 'gpt-5.1-fast', label: 'GPT 5.1 Fast' },
30+
// { value: 'gpt-5.1', label: 'GPT 5.1' },
31+
{ value: 'gpt-5.1-medium', label: 'GPT 5.1 Medium' },
32+
// { value: 'gpt-5.1-high', label: 'GPT 5.1 High' },
33+
// { value: 'gpt-5-codex', label: 'GPT 5 Codex' },
34+
{ value: 'gpt-5.1-codex', label: 'GPT 5.1 Codex' },
35+
// { value: 'gpt-5-high', label: 'GPT 5 High' },
36+
// { value: 'gpt-4o', label: 'GPT 4o' },
37+
// { value: 'gpt-4.1', label: 'GPT 4.1' },
3338
{ value: 'o3', label: 'o3' },
3439
] as const
3540

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components-new/settings-modal/components/copilot/copilot.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,17 @@ const logger = createLogger('CopilotSettings')
3232
// { value: 'gpt-4o', label: 'gpt-4o', icon: 'zap' },
3333
// { value: 'gpt-4.1', label: 'gpt-4.1', icon: 'zap' },
3434
// { value: 'gpt-5-fast', label: 'gpt-5-fast', icon: 'zap' },
35+
// { value: 'gpt-5.1-fast', label: 'gpt-5.1-fast', icon: 'zap' },
3536
// // Brain models
3637
// { value: 'gpt-5', label: 'gpt-5', icon: 'brain' },
3738
// { value: 'gpt-5-medium', label: 'gpt-5-medium', icon: 'brain' },
39+
// { value: 'gpt-5.1', label: 'gpt-5.1', icon: 'brain' },
40+
// { value: 'gpt-5.1-medium', label: 'gpt-5.1-medium', icon: 'brain' },
3841
// // BrainCircuit models
3942
// { value: 'gpt-5-high', label: 'gpt-5-high', icon: 'brainCircuit' },
43+
// { value: 'gpt-5.1-high', label: 'gpt-5.1-high', icon: 'brainCircuit' },
44+
// { value: 'gpt-5-codex', label: 'gpt-5-codex', icon: 'brainCircuit' },
45+
// { value: 'gpt-5.1-codex', label: 'gpt-5.1-codex', icon: 'brainCircuit' },
4046
// { value: 'o3', label: 'o3', icon: 'brainCircuit' },
4147
// ]
4248

@@ -58,8 +64,14 @@ const logger = createLogger('CopilotSettings')
5864
// 'gpt-4.1': false,
5965
// 'gpt-5-fast': false,
6066
// 'gpt-5': true,
61-
// 'gpt-5-medium': true,
67+
// 'gpt-5-medium': false,
6268
// 'gpt-5-high': false,
69+
// 'gpt-5.1-fast': false,
70+
// 'gpt-5.1': true,
71+
// 'gpt-5.1-medium': true,
72+
// 'gpt-5.1-high': false,
73+
// 'gpt-5-codex': false,
74+
// 'gpt-5.1-codex': true,
6375
// o3: true,
6476
// 'claude-4-sonnet': false,
6577
// 'claude-4.5-haiku': true,

apps/sim/lib/copilot/api.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ export interface SendMessageRequest {
7272
| 'gpt-5'
7373
| 'gpt-5-medium'
7474
| 'gpt-5-high'
75+
| 'gpt-5.1-fast'
76+
| 'gpt-5.1'
77+
| 'gpt-5.1-medium'
78+
| 'gpt-5.1-high'
79+
| 'gpt-5-codex'
80+
| 'gpt-5.1-codex'
7581
| 'gpt-4o'
7682
| 'gpt-4.1'
7783
| 'o3'

apps/sim/stores/panel/copilot/types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ export interface CopilotState {
6666
| 'gpt-5'
6767
| 'gpt-5-medium'
6868
| 'gpt-5-high'
69+
| 'gpt-5.1-fast'
70+
| 'gpt-5.1'
71+
| 'gpt-5.1-medium'
72+
| 'gpt-5.1-high'
73+
| 'gpt-5-codex'
74+
| 'gpt-5.1-codex'
6975
| 'gpt-4o'
7076
| 'gpt-4.1'
7177
| 'o3'

0 commit comments

Comments
 (0)