rdune71's picture
Fix critical LLM provider bugs, Redis config, and Streamlit null safety issues
b127732
raw
history blame
641 Bytes
from fastapi import FastAPI
from api.status import router as status_router
from api.chat import router as chat_router
from core.memory import check_redis_health
app = FastAPI()
# Mount routers
app.include_router(status_router, prefix="/api")
app.include_router(chat_router, prefix="/api")
@app.get("/")
async def root():
return {"message": "AI Life Coach API is running"}
@app.get("/health")
async def health_check():
"""Health check endpoint"""
redis_healthy = check_redis_health()
return {
"status": "healthy" if redis_healthy else "degraded",
"redis": "healthy" if redis_healthy else "unhealthy"
}