The model name "Gemini-3-Pro-Preview" does not exist. Use gemini-2.0-flash instead.
This directory contains complete resolution documentation for Issue #759:
-
ISSUE_759_SUMMARY.md - Start here!
- Executive summary
- Quick fix guide
- All resources in one place
-
ROOCODE_FIX_GUIDE.md - For Roocode users
- Step-by-step fix instructions
- Troubleshooting tips
- Valid model names reference
-
ISSUE_759_RESOLUTION.md - Technical details
- Root cause analysis
- Migration guide to new SDK
- For developers integrating Gemini API
-
verify_models.py - Verification tool
- Test your API key
- List available models
- Verify connectivity
- Open VSCode Settings:
Ctrl+,orCmd+, - Search: "Roocode"
- Find model name setting
- Change to:
gemini-2.0-flash - Save and reload VSCode
✅ Use these:
gemini-2.0-flash(recommended)gemini-1.5-progemini-1.5-flash
❌ Don't use:
Gemini-3-Pro-Preview(doesn't exist!)
# Set your API key
export GEMINI_API_KEY="your-api-key"
# Run verification script
python verify_models.pyThis SDK is deprecated and will reach End-of-Life on November 30, 2025.
Migrate to new SDK:
- Repository: https://github.com/googleapis/python-genai
- Migration Guide: https://ai.google.dev/gemini-api/docs/migrate
- Get API Key: https://aistudio.google.com/app/apikey
- Documentation: https://ai.google.dev/gemini-api/docs
- Community Forum: https://discuss.ai.google.dev/c/gemini-api/4
Found this helpful? Have suggestions? Please contribute to the new SDK:
Issue: #759
Status: ✅ Resolved
Type: Configuration Error (Invalid Model Name)
Date: December 12, 2024