Skip to content

openai SSE: decide whether an undecodable stream chunk should fail the call #153

Open

Description

@senamakel

Raised in review on tinyhumansai/tinyagents#610. Today an SSE chunk that doesn't deserialize as a ChatCompletionChunk is skipped with a WARN (tinyinference#150). The alternative is to end the stream with a provider failure. Trade-off: failing surfaces silent data loss loudly, but it turns any provider's harmless odd frame (extension frames, new fields) into a failed call. Needs a decision on whether to fail on chunks that look like content, or stay lenient with a metric.

Activity

  1. tinysweeper commented on Nov 11, 2026

    @tinysweeper

    Open design question about whether an undecodable OpenAI SSE chunk should fail the call or be skipped with a warning; needs a decision, not a fix.

    Labelled priority: p3.

  2. added theissue type on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions