Google services🚀¶
To use Gemini or Search, I followed these steps 😎
Create a Google project🌟¶
Set it up on Google Cloud Console 🖥️.
My project is named lmelp 🔒 (please verify if this info is sensitive).
Dashboard📊¶
Check out an overview of your project. 🔍
I have pinned a few awesome products that might be really useful 💪

API key🔑¶
From the dashboard, navigate to generate your API key 🚀:
Dashboard > APIs & Services > Credentials 👉

I configured one with: ✅ - Restricted IP access (my two homes 🏠) - Restricted API access 🔐 - Custom Search API 🔍 - Gemini for Google Cloud API 🌌 - Generative Language API 🌐
Then, I added this key in .env to be used by the project under two entries: GEMINI_API_KEY and GOOGLE_CUSTOM_SEARCH_API_KEY 🔑
Quotas📈¶
APIs have quotas and they can be accessed at ℹ️
Dashboard > IAMs & Admin > Quotas ➡️
Or dedicated page per API: 👇

When out of quotas (rateLimitExceeded), service will answer Error 429 ⚠️:
Erreur lors de la recherche Google: <HttpError 429 when requesting https://customsearch.googleapis.com/customsearch/v1?q=B%C3%A9n%C3%A9dicte+Lacapria&cx=c2af590ab41ca4fac&key=AIzaSyCE59lk7YhoSSL7T4vDRAPMv7yhYfWZTHg&alt=json returned "Quota exceeded for quota metric 'Queries' and limit 'Queries per day' of service 'customsearch.googleapis.com' for consumer 'project_number:my_project_number'.". Details: "[{'message': "Quota exceeded for quota metric 'Queries' and limit 'Queries per day' of service 'customsearch.googleapis.com' for consumer 'project_number:my_project_number'.", 'domain': 'global', 'reason': 'rateLimitExceeded'}]">
Will find a way to properly handle this case. 👍