-
Notifications
You must be signed in to change notification settings - Fork 482
refactor llm setting and use github copilot llm providers #398
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
…vious inlay panel when new one shown Handle ESC key to dispose inlay panel and cleanup resources. Track current panel instance for proper disposal close phodal#375
# Conflicts: # gradle.properties
…stantAction.kt Co-authored-by: Copilot <[email protected]>
…stantAction.kt Co-authored-by: Copilot <[email protected]>
… GitHub Copilot model support
…I, delete functionality, and improved editing experience
…el and Temperature, and improve validation
Relocate markdown documentation files to the .augment subdirectory for better organization.
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.
Pull Request Overview
This PR refactors the LLM settings system by migrating legacy configurations, introducing a simplified settings UI and configuration wizard, and integrating GitHub Copilot as an LLM provider.
- Add automatic migration tool and configuration wizard for new users
- Replace legacy fields with a unified
LlmConfigandCustomRequestmodel, deprecating old settings - Integrate GitHub Copilot support via new manager and provider classes
Reviewed Changes
Copilot reviewed 29 out of 29 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| LegacyConfigMigration.kt | Adds legacy-to-new config migration and user prompt UI |
| LLMConfigurationWizard.kt | New wizard dialog to help users configure their first LLM |
| AutoDevSettingsState.kt | Deprecates old fields; adds new fields for custom LLMs |
| AutoDevSettingsConfigurable.kt | Hooks migration and wizard into settings UI lifecycle |
| LlmFactory.kt | Switches from legacy provider to new adapter |
| LLMProviderAdapter.kt | Bridges old provider interface to new LLMProvider2 |
| LlmConfig.kt | Overhauls model config class; adds Copilot detection/creation |
| CopilotModels.kt | Deserializes GitHub Copilot models into LlmConfig |
| LLMProvider2.kt | Enhances streaming/HTTP logic; adds factory for Copilot |
| GithubCopilotProvider.kt & GithubCopilotManager.kt | OAuth, token management, and Copilot-specific streaming |
| GithubCopilotModelInitActivity.kt & autodev-core.xml | Registers Copilot init activity on startup |
| (multiple .augment files) | Documentation summaries |
Comments suppressed due to low confidence (1)
core/src/main/kotlin/cc/unitmesh/devti/settings/LegacyConfigMigration.kt:17
- No tests cover the legacy migration logic—consider adding unit tests for
migrateIfNeededandperformMigrationto ensure migration paths remain reliable.
fun migrateIfNeeded(): Boolean {
core/src/main/kotlin/cc/unitmesh/devti/llm2/model/CopilotModels.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
close #391 |
No description provided.