Spaces:
Running
Running
File size: 392 Bytes
0fc3485 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import os
from dotenv import load_dotenv
import google.generativeai as genai
load_dotenv()
api_key = os.getenv("GEMINI_API_KEY")
if not api_key:
print("❌ API Key not found")
else:
genai.configure(api_key=api_key)
print("Listing available models:")
for m in genai.list_models():
if 'embedContent' in m.supported_generation_methods:
print(f"- {m.name}")
|