Distopia22/Icd-cpt-coding-api
0
1import os2from dotenv import load_dotenv3 4# Load environment variables from .env file5load_dotenv()6 7class Settings:8 def __init__(self):9 self.GROQ_API_KEY = os.getenv("GROQ_API_KEY")10 self.MODEL_ID = os.getenv("MODEL_ID", "llama-3.3-70b-versatile")11 12 # Validate required environment variables13 if not self.GROQ_API_KEY:14 raise ValueError(15 "GROQ_API_KEY not found in environment variables. "16 "Please set it in Hugging Face Space Settings -> Repository secrets"17 )18 19 print(f"✅ Settings loaded successfully")20 print(f"✅ Model ID: {self.MODEL_ID}")21 print(f"✅ API Key configured: {self.GROQ_API_KEY[:10]}...")22 23settings = Settings()