Suggested priority: P1 — observable streaming behavior.
At a8cb07c, stream_response runs generation to completion while accumulating SSE strings in a Vec, then constructs the response body. Although the payload uses SSE formatting, the client cannot receive generated tokens while inference is running. Generation also executes synchronously in the async handler. The 30-second timeout only covers acquiring the model lock.
Scope and acceptance criteria
Evidence: buffered generation and response construction, hardcoded finish reason.
Follow-up to closed #98: real generation is wired in, but incremental delivery is still missing. The edge engine also returns a complete vector of SSE chunks; document that behavior and consider a callback/iterator interface for hosts that need live streaming.
Suggested priority: P1 — observable streaming behavior.
At
a8cb07c,stream_responseruns generation to completion while accumulating SSE strings in aVec, then constructs the response body. Although the payload uses SSE formatting, the client cannot receive generated tokens while inference is running. Generation also executes synchronously in the async handler. The 30-second timeout only covers acquiring the model lock.Scope and acceptance criteria
Evidence: buffered generation and response construction, hardcoded finish reason.
Follow-up to closed #98: real generation is wired in, but incremental delivery is still missing. The edge engine also returns a complete vector of SSE chunks; document that behavior and consider a callback/iterator interface for hosts that need live streaming.