ciyidogan commited on
Commit
161192d
·
verified ·
1 Parent(s): 96453da

Update controllers/health_controller.py

Browse files
Files changed (1) hide show
  1. controllers/health_controller.py +3 -3
controllers/health_controller.py CHANGED
@@ -1,5 +1,5 @@
1
  from fastapi import APIRouter
2
- from core import INTENT_MODELS
3
 
4
  router = APIRouter()
5
 
@@ -9,5 +9,5 @@ def health():
9
 
10
  @router.get("/health/intents")
11
  def health_intents():
12
- loaded_projects = list(INTENT_MODELS.keys())
13
- return {"status": "ok", "loaded_projects": loaded_projects}
 
1
  from fastapi import APIRouter
2
+ from core import llm_models
3
 
4
  router = APIRouter()
5
 
 
9
 
10
  @router.get("/health/intents")
11
  def health_intents():
12
+ loaded_projects = [proj for proj, model in llm_models.items() if model.intent_model is not None]
13
+ return {"status": "ok", "loaded_projects": loaded_projects}