Spaces:
Running
Running
Download multi_llm_chatbot_backend/app/api/routes/root.py from BrainForge/Cybersecurity-Panel: direct link, hf CLI and curl.
- Browser
- Download file 724 Bytes
-
https://huggingface.co/spaces/BrainForge/Cybersecurity-Panel/resolve/main/multi_llm_chatbot_backend/app/api/routes/root.py
- Command line
-
hf download hf://spaces/BrainForge/Cybersecurity-Panel/multi_llm_chatbot_backend/app/api/routes/root.py
-
curl -L -o root.py https://huggingface.co/spaces/BrainForge/Cybersecurity-Panel/resolve/main/multi_llm_chatbot_backend/app/api/routes/root.py
724 Bytes
| from fastapi import APIRouter | |
| from app.config import get_settings | |
| from app.version import __version__ | |
| import logging | |
| logger = logging.getLogger(__name__) | |
| router = APIRouter() | |
| def health(): | |
| """Backend heartbeat — kept off ``/`` so the SPA can own the Space root.""" | |
| title = get_settings().app.title | |
| return { | |
| "message": f"{title} Backend is up and running", | |
| "version": __version__, | |
| "features": [ | |
| "Configurable Personas", | |
| "Improved Session Management", | |
| "Unified Context Handling", | |
| "Ollama Support", | |
| "Gemini API Support", | |
| "Provider Switching", | |
| ], | |
| } | |