vedaMD / src /test_groq_integration.py
sniro23's picture
Initial commit without binary files
19aaa42
raw
history blame contribute delete
669 Bytes
"""
Test Groq Integration for Medical RAG System
"""
import os
from dotenv import load_dotenv
def test_groq_setup():
print("🧪 Testing Groq Integration...")
# Load .env file from the parent directory
dotenv_path = os.path.join(os.path.dirname(__file__), '..', '.env')
load_dotenv(dotenv_path=dotenv_path)
# Check API key
groq_api_key = os.getenv("GROQ_API_KEY")
if groq_api_key:
print(f"✅ GROQ_API_KEY found")
return True
else:
print("❌ GROQ_API_KEY not found!")
print("Get free key: https://console.groq.com/keys")
return False
if __name__ == "__main__":
test_groq_setup()