Su.6 / modelos.py
NiltonSouza's picture
Initial commit of FastAPI Docker app
a69e511
raw
history blame contribute delete
392 Bytes
import google.generativeai as genai
import os
# Use sua chave de API do Google Cloud aqui
GOOGLE_CLOUD_API_KEY = "AIzaSyDvvDK_A1SZt7CMb_GW9hLUMevTXrEHuhw"
genai.configure(api_key=GOOGLE_CLOUD_API_KEY)
print("Listando modelos disponíveis:")
for m in genai.list_models():
if "generateContent" in m.supported_generation_methods:
print(f"- Nome: {m.name}, Versões: {m.version}")