Spaces:
Paused
Paused
Update controllers/health_controller.py
Browse files
controllers/health_controller.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
from fastapi import APIRouter
|
2 |
-
from core import
|
3 |
|
4 |
router = APIRouter()
|
5 |
|
@@ -9,5 +9,5 @@ def health():
|
|
9 |
|
10 |
@router.get("/health/intents")
|
11 |
def health_intents():
|
12 |
-
loaded_projects =
|
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}
|