live: async health (responds while generating)

This commit is contained in:
E committed 2026-09-30 14:42:54 -04:00
1 parent d5f728dbae
commit cc6a660729
1 file changed
+3 -2
+3 -2
View File
@@ -187,8 +187,9 @@ def startup():
flush=True) flush=True)
@app.get("/health") @app.get("/health")
def health(): async def health():
return {"ok": _state["ready"], "model": MODEL_ID, "layer": LAYER} return JSONResponse({"ok": _state["ready"], "model": MODEL_ID,
"layer": LAYER})
@app.get("/vector") @app.get("/vector")
def vector(): def vector():