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
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ 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.5-opus', label: 'Claude 4.5 Opus' },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: model ID mismatch: UI uses claude-4.5-opus but provider definition uses claude-opus-4-5 (models.ts:592). This will cause model lookups to fail.

Suggested change
{ value: 'claude-4.5-opus', label: 'Claude 4.5 Opus' },
{ value: 'claude-opus-4-5', label: 'Claude 4.5 Opus' },
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/constants.ts
Line: 26:26

Comment:
**logic:** model ID mismatch: UI uses `claude-4.5-opus` but provider definition uses `claude-opus-4-5` (models.ts:592). This will cause model lookups to fail.

```suggestion
  { value: 'claude-opus-4-5', label: 'Claude 4.5 Opus' },
```

How can I resolve this? If you propose a fix, please make it concise.

{ value: 'claude-4.1-opus', label: 'Claude 4.1 Opus' },
// { value: 'gpt-5-fast', label: 'GPT 5 Fast' },
// { value: 'gpt-5', label: 'GPT 5' },
Expand Down
13 changes: 13 additions & 0 deletions apps/sim/providers/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,19 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
},
contextWindow: 200000,
},
{
id: 'claude-opus-4-5',
pricing: {
input: 5.0,
cachedInput: 0.5,
output: 25.0,
updatedAt: '2025-11-24',
},
capabilities: {
temperature: { min: 0, max: 1 },
},
contextWindow: 200000,
},
{
id: 'claude-opus-4-1',
pricing: {
Expand Down