improvement(copilot): add gpt5.1 and codex#2092
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryThis PR adds support for GPT-5.1 and Codex model variants to the copilot feature. The changes systematically add 6 new model types (
All changes are consistent across the codebase and properly integrated with existing architecture. The PR improves label formatting for better UX (e.g., "gpt-5-medium" → "GPT 5 Medium"). Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant UI as User Input Component
participant Store as Copilot Store
participant API as Chat API Route
participant Models as User Models API
participant Agent as Sim Agent
Note over UI,Agent: Model Selection & Configuration Flow
UI->>Models: GET /api/copilot/user-models
Models->>Models: Load DEFAULT_ENABLED_MODELS<br/>(includes new GPT-5.1 & Codex)
Models-->>UI: Return enabled models list
UI->>UI: Render MODEL_OPTIONS<br/>(GPT 5.1 Medium, GPT 5.1 Codex, etc.)
Note over UI,Store: User selects new model
UI->>Store: setSelectedModel(gpt-5.1-codex)
Store->>Store: Update selectedModel state
Note over UI,Agent: Send Message Flow
UI->>API: POST /api/copilot/chat<br/>{model: gpt-5.1-codex, ...}
API->>API: Validate with ChatMessageSchema<br/>(includes new model types)
API->>Agent: Forward to Sim Agent<br/>with selected model
Agent-->>API: Stream response
API-->>UI: Forward SSE stream
Note over Models: Model Preferences Sync
UI->>Models: PUT /api/copilot/user-models<br/>{enabledModels: {...}}
Models->>Models: Update copilotEnabledModels<br/>in settings table
Models-->>UI: Confirm update
|
This was referenced Nov 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add gpt 5.1 and codex to the copilot
Type of Change
Testing
Manual
Checklist