Naaviverse-Path / code /scratch_list_models.py
praneethsunkara3
feat: implement multi-agent loading state logs, robust Groq fallback models, and SPA router migration
9a06c7c
Raw History Blame Contribute Delete
338 Bytes
import os
from groq import Groq
from dotenv import load_dotenv
load_dotenv()
client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
try:
models_list = client.models.list()
print("AVAILABLE MODELS:")
for model in models_list.data:
print(f"- {model.id}")
except Exception as e:
print(f"Error fetching models: {e}")