fix(sse): send keepalive comments to prevent proxy idle timeout
Browse files764 unmodified lines765766767768769770764 unmodified linestry:ev = await asyncio.to_thread(out_q.get, True, 1.0)except Exception:continuekind = ev.get("kind")if kind == "_done":764 unmodified lines765766767768769770771772773774764 unmodified linestry:ev = await asyncio.to_thread(out_q.get, True, 1.0)except Exception:# No event for 1 s — send an SSE comment so the HF Space# proxy doesn't close the idle connection (proxy idle timeout# is ~15-20 s; the reconciler's vLLM call can take longer).yield ": keepalive\n\n"continuekind = ev.get("kind")if kind == "_done":
web/main.py+4