anderson-ufrj
commited on
Commit
·
c159ec7
1
Parent(s):
10cc683
fix: add health endpoint to chat stable router for debugging
Browse files- Add simple health check endpoint at /api/v1/chat/health
- Helps verify if router is properly loaded in production
src/api/routes/chat_stable.py
CHANGED
|
@@ -18,6 +18,11 @@ from src.services.chat_data_integration import chat_data_integration
|
|
| 18 |
|
| 19 |
router = APIRouter(prefix="/api/v1/chat")
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
# Initialize services with lazy loading
|
| 22 |
maritaca_client = None
|
| 23 |
intent_detector = None
|
|
|
|
| 18 |
|
| 19 |
router = APIRouter(prefix="/api/v1/chat")
|
| 20 |
|
| 21 |
+
@router.get("/health")
|
| 22 |
+
async def chat_stable_health():
|
| 23 |
+
"""Simple health check for chat stable router"""
|
| 24 |
+
return {"status": "ok", "router": "chat_stable", "portal_integration": "enabled"}
|
| 25 |
+
|
| 26 |
# Initialize services with lazy loading
|
| 27 |
maritaca_client = None
|
| 28 |
intent_detector = None
|