-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat(copilot): add claude opus 4.5 and remove context usage indicator #2113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile OverviewGreptile SummaryAdded Key Changes:
Issues Found:
Confidence Score: 3/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant UI as User Input Component
participant Store as Copilot Store
participant API as /api/copilot/chat
participant Agent as Sim Agent
Note over User,Agent: Model Addition Flow
User->>UI: Select claude-4.5-opus
UI->>Store: setSelectedModel('claude-4.5-opus')
Store->>Store: Update selectedModel state
User->>UI: Send message
UI->>Store: sendMessage(message, options)
Store->>API: POST with model: 'claude-4.5-opus'
Note over API: Validate against Zod schema<br/>(includes claude-4.5-opus)
API->>Agent: Forward request with model
Agent-->>API: Streaming response
API-->>Store: Forward stream
Store-->>UI: Update messages
UI-->>User: Display response
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6 files reviewed, 4 comments
| 'claude-4.5-haiku', | ||
| 'claude-4.5-sonnet', | ||
| 'claude-4.5-opus', | ||
| 'claude-4.1-opus', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: claude-4.1-opus still present in validation schema but commented out elsewhere - should be removed here too for consistency
| 'claude-4.1-opus', | |
| 'claude-4.5-opus', |
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/sim/app/api/copilot/chat/route.ts
Line: 59:59
Comment:
**logic:** `claude-4.1-opus` still present in validation schema but commented out elsewhere - should be removed here too for consistency
```suggestion
'claude-4.5-opus',
```
How can I resolve this? If you propose a fix, please make it concise.| AttachedFilesDisplay, | ||
| ContextPills, | ||
| ContextUsageIndicator, | ||
| MentionMenu, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: import for ContextUsageIndicator not removed but component is commented out - clean up unused import
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/user-input.tsx
Line: 22:22
Comment:
**style:** import for `ContextUsageIndicator` not removed but component is commented out - clean up unused import
How can I resolve this? If you propose a fix, please make it concise.| | 'claude-4.5-haiku' | ||
| | 'claude-4.5-sonnet' | ||
| | 'claude-4.5-opus' | ||
| | 'claude-4.1-opus' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: claude-4.1-opus still present in type definition but commented out elsewhere - remove for consistency
| | 'claude-4.1-opus' | |
| | 'claude-4.5-opus' |
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/sim/lib/copilot/api.ts
Line: 88:88
Comment:
**logic:** `claude-4.1-opus` still present in type definition but commented out elsewhere - remove for consistency
```suggestion
| 'claude-4.5-opus'
```
How can I resolve this? If you propose a fix, please make it concise.| | 'claude-4.5-haiku' | ||
| | 'claude-4.5-sonnet' | ||
| | 'claude-4.5-opus' | ||
| | 'claude-4.1-opus' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: claude-4.1-opus still present in type definition but commented out elsewhere - remove for consistency
| | 'claude-4.1-opus' | |
| | 'claude-4.5-opus' |
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/sim/stores/panel/copilot/types.ts
Line: 82:82
Comment:
**logic:** `claude-4.1-opus` still present in type definition but commented out elsewhere - remove for consistency
```suggestion
| 'claude-4.5-opus'
```
How can I resolve this? If you propose a fix, please make it concise.…#2113) * Add claude opus 4.5 to copilot and remove context usage indicator * Lint
Summary
Add claude opus 4.5 and remove context usage indicator
Type of Change
Testing
Manual
Checklist