Context: Similar to the core daemon, the Python ML inference gateway needs its own independent health check. This ensures that the local sentence-transformer model has finished loading into memory and the API is ready.
Task:
- Open the FastAPI gateway file (gateway/main.py).
- Add a new route using the @app.get(/health) decorator.
- The function should return a simple dictionary: {"status": "ok", "service": "gateway"}.
Files to Touch: gateway/main.py`nSuccess Criteria: Running python gateway/main.py (or using docker-compose up) and executing curl http://127.0.0.1:8000/health should immediately return the OK status.
Context: Similar to the core daemon, the Python ML inference gateway needs its own independent health check. This ensures that the local sentence-transformer model has finished loading into memory and the API is ready.
Task:
Files to Touch: gateway/main.py`nSuccess Criteria: Running python gateway/main.py (or using docker-compose up) and executing curl http://127.0.0.1:8000/health should immediately return the OK status.