cff3f0b1a8
Backend-Services: fit/caps/sources (portiert), discover (live HF + Fit + Caps + ranked recommendation), llama-swap write/register + groups (Ko- Residenz swap:false), LiteLLM-Gateway-Config + gateway-Service (model:auto + Fallbacks). Router: discover/fit/register/groups/routing; health zeigt gateway_reachable. Frontend: Modelle&Routing mit Caps-Chips, Fit-Badges, Discover-Tab (live), Routing-View. Lokal verifiziert: Backend-Smoke (alle Endpunkte) + Frontend-Build + Browser (Shell, Discover, Caps/Fit). Box-Verifikation offen. Docs: README + docs/STATUS.md (Phasen-Tracker + Resume-Guide). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
19 lines
445 B
Python
19 lines
445 B
Python
"""Health-/Status-Endpoint — schlanker Lebenszeichen-Check für MC 2.0."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from config import VERSION
|
|
from services import gateway, llamaswap
|
|
|
|
router = APIRouter(prefix="/api")
|
|
|
|
|
|
@router.get("/health")
|
|
def health() -> dict:
|
|
return {
|
|
"status": "ok",
|
|
"version": VERSION,
|
|
"engine_reachable": llamaswap.engine_reachable(),
|
|
"gateway_reachable": gateway.gateway_reachable(),
|
|
}
|