AI_Assistant_for_Finance / llm /groq_client.py
ChinarQ-AI's picture
Upload 7 files
c24bfc8 verified
raw
history blame
237 Bytes
import os
from groq import Groq
def get_groq_client():
api_key = os.environ.get("GROQ_API_KEY")
if not api_key:
raise ValueError("GROQ_API_KEY not set in environment variables.")
return Groq(api_key=api_key)