google-gemini / generative-ai-python

The official Python library for the Google Gemini API
https://pypi.org/project/google-generativeai/
Apache License 2.0
1.18k stars 223 forks source link

Using the `GEMINI_API_KEY` by default instead of the `GOOGLE_API_KEY` one #418

Open Giom-V opened 4 days ago

Giom-V commented 4 days ago

Description of the change

Instead of using the GOOGLE_API_KEY by default, we're checking for the GEMINI_API_KEY ones first since its naming is less misleading. The GOOGLE_API_KEY is still kept for consistency.

Motivation

The Google API key can be misleading since it's not really an overall key for all of Google API and only for the Gemini ones.

Type of change

Choose one: Feature request

Checklist