flare / controllers /health_controller.py
ciyidogan's picture
Update controllers/health_controller.py
161192d verified
raw
history blame
359 Bytes
from fastapi import APIRouter
from core import llm_models
router = APIRouter()
@router.get("/")
def health():
return {"status": "ok"}
@router.get("/health/intents")
def health_intents():
loaded_projects = [proj for proj, model in llm_models.items() if model.intent_model is not None]
return {"status": "ok", "loaded_projects": loaded_projects}