Spaces:
Sleeping
Sleeping
File size: 669 Bytes
19aaa42 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
"""
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() |