Skip to content

Commit d413bcd

Browse files
authored
feat(copilot): add claude opus 4.5 and remove context usage indicator (#2113)
* Add claude opus 4.5 to copilot and remove context usage indicator * Lint
1 parent ff768ca commit d413bcd

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const ChatMessageSchema = z.object({
5555
'claude-4-sonnet',
5656
'claude-4.5-haiku',
5757
'claude-4.5-sonnet',
58+
'claude-4.5-opus',
5859
'claude-4.1-opus',
5960
])
6061
.optional()

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const DEFAULT_ENABLED_MODELS: Record<string, boolean> = {
2424
'claude-4-sonnet': false,
2525
'claude-4.5-haiku': true,
2626
'claude-4.5-sonnet': true,
27-
'claude-4.1-opus': true,
27+
'claude-4.5-opus': true,
28+
// 'claude-4.1-opus': true,
2829
}
2930

3031
// GET - Fetch user's enabled models

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const MODEL_OPTIONS = [
2424
{ value: 'claude-4.5-sonnet', label: 'Claude 4.5 Sonnet' },
2525
{ value: 'claude-4.5-haiku', label: 'Claude 4.5 Haiku' },
2626
{ value: 'claude-4.5-opus', label: 'Claude 4.5 Opus' },
27-
{ value: 'claude-4.1-opus', label: 'Claude 4.1 Opus' },
27+
// { value: 'claude-4.1-opus', label: 'Claude 4.1 Opus' },
2828
// { value: 'gpt-5-fast', label: 'GPT 5 Fast' },
2929
// { value: 'gpt-5', label: 'GPT 5' },
3030
// { value: 'gpt-5.1-fast', label: 'GPT 5.1 Fast' },

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { cn } from '@/lib/utils'
1919
import {
2020
AttachedFilesDisplay,
2121
ContextPills,
22-
ContextUsageIndicator,
2322
MentionMenu,
2423
ModelSelector,
2524
ModeSelector,
@@ -622,13 +621,13 @@ const UserInput = forwardRef<UserInputRef, UserInputProps>(
622621
</Badge>
623622

624623
{/* Context Usage Indicator */}
625-
{contextUsage && contextUsage.percentage > 0 && (
624+
{/* {contextUsage && contextUsage.percentage > 0 && (
626625
<ContextUsageIndicator
627626
percentage={contextUsage.percentage}
628627
size={18}
629628
strokeWidth={2.5}
630629
/>
631-
)}
630+
)} */}
632631

633632
{/* Selected Context Pills */}
634633
<ContextPills

apps/sim/lib/copilot/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export interface SendMessageRequest {
8484
| 'claude-4-sonnet'
8585
| 'claude-4.5-haiku'
8686
| 'claude-4.5-sonnet'
87+
| 'claude-4.5-opus'
8788
| 'claude-4.1-opus'
8889
prefetch?: boolean
8990
createNewChat?: boolean

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export interface CopilotState {
7878
| 'claude-4-sonnet'
7979
| 'claude-4.5-haiku'
8080
| 'claude-4.5-sonnet'
81+
| 'claude-4.5-opus'
8182
| 'claude-4.1-opus'
8283
agentPrefetch: boolean
8384
enabledModels: string[] | null // Null means not loaded yet, array of model IDs when loaded

0 commit comments

Comments
 (0)