import uvicorn
from app import app
from config import get_settings

def start():
    """Start the FastAPI application."""
    print("Starting FinSim...")
    settings = get_settings()
    if not settings.GROQ_API_KEY:
        print("WARNING: GROQ_API_KEY is not set in the .env file.")
        
    uvicorn.run("app:app", host="0.0.0.0", port=8000, reload=True)

if __name__ == "__main__":
    start()
