| from fastapi import APIRouter | |
| from services.ollama_monitor import check_ollama_status | |
| router = APIRouter() | |
| async def get_ollama_status(): | |
| """ | |
| Returns the current status of the Ollama service. | |
| """ | |
| status = check_ollama_status() | |
| return status | |
| from fastapi import APIRouter | |
| from services.ollama_monitor import check_ollama_status | |
| router = APIRouter() | |
| async def get_ollama_status(): | |
| """ | |
| Returns the current status of the Ollama service. | |
| """ | |
| status = check_ollama_status() | |
| return status | |