updated model for suitable testing

This commit is contained in:
rarebuffalo
2026-04-25 21:29:19 +05:30
parent 139c8d982b
commit ae4ed3062a
5 changed files with 72 additions and 34 deletions

11
list_models.py Normal file
View File

@@ -0,0 +1,11 @@
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}")