initial commit
This commit is contained in:
10
app/list_models.py
Normal file
10
app/list_models.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import google.generativeai as genai
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
|
||||
|
||||
for m in genai.list_models():
|
||||
if 'generateContent' in m.supported_generation_methods:
|
||||
print(m.name)
|
||||
Reference in New Issue
Block a user