Monoize
Transforms

Stream: split oversized SSE frames

Split large SSE delta payloads into multiple protocol-valid events.

What it does

This transform splits downstream SSE delta payloads that exceed the configured frame length into multiple protocol-valid events. The visible text is unchanged; only the framing differs.

Reference

PropertyValue
Type IDstream_split_sse_frames
Phaseresponse
ScopesProvider, API key

When to use

  • A client or proxy drops or truncates long SSE frames.
  • An upstream batches large deltas and clients need smoother incremental rendering.

Configuration

OptionTypeRequiredDefaultDescription
max_frame_lengthintegerNoMaximum SSE frame payload length. Frames above the limit are split.

Example rule

{
  "transform": "stream_split_sse_frames",
  "enabled": true,
  "phase": "response",
  "models": [
    "*"
  ],
  "config": {
    "max_frame_length": 4096
  }
}

On this page