HTTP client - answer_stream()
MoorchehEdgeApiClient.answer_stream() calls POST /answer/stream and yields raw response bytes (SSE chunks). Use this when you need token-by-token output; for a one-shot answer, use answer_text() or answer() instead.
The high-level MoorchehEdge SDK does not wrap streaming yet - use MoorchehEdgeApiClient directly.
_sse.iter_sse_events helper if you build tooling inside the package.
Optional prompts and history
Same optional fields asanswer_text():
SSE events
See API: Answer stream for themeta, token, done, and error event shapes.
Requirements
- Store must contain uploaded documents (text or vector mode).
- Ollama must be running with
llama3.2:1b-instruct-q4_K_M(handled bymoorcheh-edge upon first run).
Related
- API: Answer stream
- Python: answer_text()
- Voice server - streams through
/ask/streamon edge hardware