feat: add support for additional Gemini models #146
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.
📝 Description:
This pull request introduces support for additional Gemini models in the leetcode-whisper-chrome-extension. The following updates have been made:
🚀 Added Support for Additional Models:
✅ ‘gemini_2_0_flash’
✅ ‘gemini_2_0_flash_lite_preview’
✅ ‘gemini_1_5_flash’
✅ ‘gemini_1_5_flash_8b’
✅ ‘gemini_1_5_pro’
✅ ‘gemini_1_0_pro_deprecated’
🔧 Updated API Integration:
• Updated the VALID_MODELS array in valid_models.ts to include the new models.
• Enhanced the model selection logic in App.tsx to allow users to choose from the newly added models.
• Improved error handling and user feedback messages during API interactions.
⚙️ Compatibility:
• Ensured compatibility with existing features of the extension.
🧪 Testing:
• Verified that all newly added models integrate seamlessly with existing functionality.
• Conducted API tests to confirm successful responses for each model.
🔗 Related Issues:
Closes #145: Support for Additional Gemini Models in API Integration