Adding Google API Suport #26
Open
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 pull request introduces Google Gemini as a new AI provider in the "superdesign" extension, along with updates to support its integration across the codebase. The changes include adding configuration commands, extending the model selection interface, and enhancing backend functionality to handle the new provider. Below is a summary of the most important changes grouped by theme:
New AI Provider Integration:
gemini-2.5-pro,gemini-2.5-flash,gemini-2.5-flash-lite) insrc/providers/chatSidebarProvider.tsandsrc/webview/components/Chat/ModelSelector.tsx. [1] [2] [3]superdesign.configureGoogleApiKey) insrc/extension.tsand updatedpackage.jsonto include the new command and settings. [1] [2] [3]Backend Enhancements:
ChatMessageService,CustomAgentService) to support Google Gemini models, including API key validation, model selection, and error handling. [1] [2] [3] [4] [5]Documentation Updates:
README.mdto reflect support for Google Gemini and instructions for configuring API keys via the Command Palette.CHANGELOG.md, documenting the addition of Google Gemini and related improvements.These changes collectively enhance the extension's functionality by introducing a new AI provider and improving user experience with better configuration options and documentation.