You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: parse SSE streaming responses for response plugins
When the response body is not valid JSON (e.g., SSE/Server-Sent Events
from streaming providers like Anthropic), parse the SSE data lines to
extract usage and model information. This enables response plugins
(usage-tracking, metering) to process streaming responses that were
previously skipped with "Failed to parse response body as JSON".
Also fixes two issues with streaming response handling:
1. Always respond to response headers so Envoy proceeds with body
chunks (previously returned nil, causing per-message timeout)
2. Send an immediate ack for each non-EoS response body chunk so
Envoy continues forwarding subsequent chunks instead of blocking
Signed-off-by: Noy Itzikowitz <nitzikow@redhat.com>
0 commit comments