To use Google Gemini with this application, you need to set the following environment variable in your .env file:
GEMINI_API_KEY=your_gemini_api_key_here- Go to Google AI Studio
- Sign in with your Google account
- Click "Create API Key"
- Copy the API key
# Google Gemini API Key
GEMINI_API_KEY=AIzaSyXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXThe agents are configured to use gemini/gemini-1.5-flash model, which is:
- Fast and efficient
- Cost-effective
- Suitable for conversational AI tasks
You can change the model in src/latest_ai_development/config/agents.yaml if needed. Available models:
gemini/gemini-1.5-flash(recommended for speed)gemini/gemini-1.5-pro(for more complex reasoning)gemini/gemini-2.0-flash-exp(experimental, latest features)
If you get authentication errors:
- Verify your API key is correct in the
.envfile - Ensure the
.envfile is in the root directory - Restart the backend server after updating the
.envfile - Check that your API key has not expired or been revoked