[MVP] Implement LLM Resource Configuration for Enhanced Features #225
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.
This PR implements LLM resource configuration functionality to enable enhanced features in the DocumentDB extension, specifically for
explainCommandandperformanceInsightoperations.Overview
The implementation adds support for configuring Azure OpenAI and OpenAI resources through a user-friendly wizard, with automatic prompts when LLM-enhanced features are accessed without proper configuration.
Key Features
🔧 LLM Configuration Service
⚙️ Configuration Wizard
sk-)🎯 Enhanced Command Integration
Both
explainCommandandperformanceInsightnow check for LLM configuration:When LLM is not configured, users see a helpful dialog:
📦 VS Code Integration
$(settings-gear))Implementation Details
Files Added
src/services/LlmConfigurationService.ts- Core service for LLM configuration managementsrc/commands/configureLlm/- Complete wizard implementation following project patternssrc/utils/llmHelpers.ts- Utility functions for LLM configuration checksFiles Modified
src/commands/scrapbook-commands/explainCommand.ts- Added LLM configuration checksrc/commands/performanceInsight/performanceInsight.ts- Added LLM configuration checksrc/documentdb/ClustersExtension.ts- Registered new commandsrc/extensionVariables.ts- Added settings keyspackage.json- Added commands and configuration propertiesCode Quality
vscode.l10n.t()User Experience
explainCommandorperformanceInsightwithout LLM configuredFixes #224.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.