File size: 293 Bytes
4f94787 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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
|