Windmill SSE response format — emit one item per event?
Hi,
I’m trying to use Server-Sent Events (SSE) with streamed responses in a script, but the Windmill SSE endpoint appears to “flush” multiple items into a single event. That doesn’t match the per-item yield format I expect.
My main scenario uses the ai-sdk tooling for streaming. Here’s a simplified example:
A sample response from the Windmill SSE endpoint (attached) looks like this:
However, I need one JSON object per SSE event because I iterate over each item. The expected output would be:
is there a way for formating like that?
I’m trying to use Server-Sent Events (SSE) with streamed responses in a script, but the Windmill SSE endpoint appears to “flush” multiple items into a single event. That doesn’t match the per-item yield format I expect.
My main scenario uses the ai-sdk tooling for streaming. Here’s a simplified example:
A sample response from the Windmill SSE endpoint (attached) looks like this:
However, I need one JSON object per SSE event because I iterate over each item. The expected output would be:
is there a way for formating like that?
windmill_sse_response.txt47.04KB