Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.24 KB

File metadata and controls

43 lines (31 loc) · 1.24 KB

Environment Configuration for Gemini

Required Environment Variables

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

Getting a Gemini API Key

  1. Go to Google AI Studio
  2. Sign in with your Google account
  3. Click "Create API Key"
  4. Copy the API key

Example .env File

# Google Gemini API Key
GEMINI_API_KEY=AIzaSyXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Configuration Details

The 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)

Troubleshooting

If you get authentication errors:

  1. Verify your API key is correct in the .env file
  2. Ensure the .env file is in the root directory
  3. Restart the backend server after updating the .env file
  4. Check that your API key has not expired or been revoked