Yaak Logo
Yaak
Feedback/Combined output view for LLM-style SSE responses

Combined output view for LLM-style SSE responses

Su ·a month ago
Needs TriageFeature RequestImprovement

Yaak already shows text/event-stream responses as individual SSE events, which is useful for debugging the stream. For LLM-style streaming APIs, it would also be useful to derive a final combined result from the whole event stream.

Many APIs send JSON payloads such as:

data: {"choices":[{"delta":{"content":"..."}}]}

across multiple SSE events. In those cases, users often want to copy, search, save, or inspect the final assembled text, rather than manually opening each event and combining the deltas.

A small-scope version could keep the existing per-event SSE viewer unchanged and add a Combined or Extracted view for SSE responses.

Possible behavior:

  • Concatenate all event.data values, or extract a field from JSON event data using a simple path/rule.
  • Ignore control messages such as [DONE].
  • Show the derived output as text/JSON so it can be copied or saved.
  • Preserve the current event-by-event debugger for users who need to inspect the raw stream.

Example: for OpenAI-compatible streaming responses, extract choices[0].delta.content from each event and join the values into the final assistant message.

This is related to the existing JSONQuery on streaming events feedback item, but the additional request here is an aggregated final output over the entire SSE response.


Comments (0)

Sign in to leave a comment.

Type to search feedback...