ciyidogan commited on
Commit
d05a368
·
verified ·
1 Parent(s): 699f9fe

Update controllers/health_controller.py

Browse files
Files changed (1) hide show
  1. controllers/health_controller.py +7 -13
controllers/health_controller.py CHANGED
@@ -1,13 +1,7 @@
1
- from fastapi import APIRouter
2
- from core import llm_models
3
-
4
- router = APIRouter()
5
-
6
- @router.get("/")
7
- def health():
8
- return {"status": "ok"}
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}
 
1
+ from fastapi import APIRouter
2
+
3
+ router = APIRouter()
4
+
5
+ @router.get("/")
6
+ def health():
7
+ return {"status": "ok"}