mirror of
https://github.com/Rarebuffalo/securelens-backend.git
synced 2026-06-19 07:00:30 +00:00
12 lines
339 B
Python
12 lines
339 B
Python
import os
|
|
from google import genai
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv('/home/Krishna-Singh/securelens-backend/.env')
|
|
client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY"))
|
|
|
|
print("Supported Models:")
|
|
for model in client.models.list():
|
|
if 'generateContent' in model.supported_actions:
|
|
print(f"- {model.name}")
|