-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat(copilot): enterprise configuration #3184
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 SummaryThis PR refactors copilot configuration to support enterprise deployments by moving model management from static frontend config to dynamic backend APIs. Key Changes:
Architecture Impact: Minor Concerns:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant UI as Copilot UI
participant Store as Copilot Store
participant ModelsAPI as /api/copilot/models
participant ChatAPI as /api/copilot/chat
participant Backend as SIM Agent Backend
Note over UI,Store: Initialization Flow
UI->>Store: loadAvailableModels()
Store->>ModelsAPI: GET /api/copilot/models
ModelsAPI->>Backend: GET /api/get-available-models
Backend-->>ModelsAPI: {models: [{id, friendlyName, provider}]}
ModelsAPI-->>Store: {success: true, models: [...]}
Store->>Store: Transform to composite keys (provider/modelId)
Store->>Store: Select default model (anthropic/claude-opus-4-6)
Store-->>UI: Available models loaded
Note over UI,Backend: Chat Message Flow
UI->>Store: sendMessage(message)
Store->>Store: parseModelKey(selectedModel)
Store->>Store: Extract provider and modelId
Store->>ChatAPI: POST {message, model: modelId, provider}
ChatAPI->>Backend: POST /api/chat {model, provider, message}
Backend-->>ChatAPI: Stream response
ChatAPI-->>Store: SSE events
Store-->>UI: Update messages
Note over ChatAPI,Backend: Title Generation (First Message)
ChatAPI->>Backend: POST /api/generate-chat-title {message, model, provider}
Backend-->>ChatAPI: {title: "..."}
ChatAPI->>ChatAPI: Update chat title in DB
|
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.
21 files reviewed, 2 comments
Summary
Enterprise support for copilot models
Type of Change
Testing
Tested with @icecrasher321
Checklist