Su.4 / modelos.py
NiltonSouza's picture
Merge initial remote changes (README, .gitattributes)
7006e3e
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}")