rdune71's picture
Implement FastAPI status endpoint and main app
4f94787
raw
history blame
293 Bytes
from fastapi import APIRouter
from services.ollama_monitor import check_ollama_status
router = APIRouter()
@router.get("/ollama-status")
async def get_ollama_status():
"""
Returns the current status of the Ollama service.
"""
status = check_ollama_status()
return status