Gemini¶
Configure HolmesGPT to use Google's Gemini models via Google AI Studio.
Setup¶
Get your API key from Google AI Studio.
Configuration¶
Environment Variables¶
Usage¶
Available Models¶
# Gemini Pro (standard model)
holmes ask "analyze cluster issues" --model=gemini/gemini-pro
# Gemini 1.5 Flash (fast and efficient)
holmes ask "quick diagnostics" --model=gemini/gemini-1.5-flash
# Gemini 1.5 Pro (most capable)
holmes ask "complex analysis" --model=gemini/gemini-1.5-pro
Troubleshooting¶
API Key Issues
- Verify your API key is correct and active - Check that you've enabled the Gemini API - Ensure the key hasn't been revoked or expiredRate Limiting
- Wait for the rate limit to reset - Consider upgrading to a paid tier for higher limitsModel Not Found
- Verify the model name is spelled correctly - Check that you have access to the requested model - Some models may be in preview and require special accessQuota Exceeded
- Check your daily/monthly quota limits - Wait for the quota to reset - Upgrade your plan for higher limits