Skip to content

Document completion signals for streaming audio #567

Description

@Subhransu-De

Page URL

https://openrouter.ai/docs/guides/overview/multimodal/audio

What's wrong?

The audio guide shows how to receive delta.audio fragments, but does not include the terminal events of an audio response.

The streaming reference describes a terminal finish_reason repeated in the final usage chunk before [DONE]. Could the audio guide confirm how this applies to audio output?

Expected content

A complete streaming audio example showing the final audio chunk, terminal finish reason, usage chunk, and [DONE] marker would help.

Please clarify:

  • Whether every successfully completed audio choice includes finish_reason: "stop".
  • Whether a successful audio response can end with only null finish reasons followed by [DONE], and how clients should confirm completion in that case.
  • Any model or provider differences clients should account for.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions