python -m venv my_env
source my_env\bin\activate
pip install jupyter
jupyter notebook
Google Collaborator:
!pip install -q langchain
Secrets:
from google.colab import userdata
api_key = userdata.get('API_KEY')
Gemini: ai.google.dev/available_regions
VPN: protonvpn
Installing google gen ai: pip install -q google-generativeai
pip install --upgrade -q google-generativeai
pip show google-generativeai
pip install python-dotenv
import google.generativeai as genie
import os
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv(), override=True)
# os.environ.get("GOOGLE_API_KEY")
genie.configure(api_key=os.environ.get("GOOGLE_API_KEY"))
for m in genie.list_models():
if 'generateContent' in m.supported_generation_methods:
print(m.name)
Accessing Google AI Studio: ai.google.dev