Skip to content

fix(openai): trace chat streaming audio attachments#271

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-fix-201-openai-stream-audio
Apr 14, 2026
Merged

fix(openai): trace chat streaming audio attachments#271
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-fix-201-openai-stream-audio

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

Preserve chat completion delta.audio fields in streamed OpenAI spans and materialize the audio payload as a Braintrust attachment instead of logging raw base64 data.

Also apply the same attachment materialization to non-streaming chat completion audio output and add VCR-backed regression coverage for the streaming path plus focused unit tests for the audio aggregation logic.

resolves #201

Preserve chat completion delta.audio fields in streamed OpenAI spans and
materialize the audio payload as a Braintrust attachment instead of
logging raw base64 data.

Also apply the same attachment materialization to non-streaming chat
completion audio output and add VCR-backed regression coverage for the
streaming path plus focused unit tests for the audio aggregation logic.
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) force-pushed the abhi-fix-201-openai-stream-audio branch from c47f55e to 7ff6bc5 Compare April 14, 2026 00:38
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) merged commit bb2a23f into main Apr 14, 2026
64 checks passed
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) deleted the abhi-fix-201-openai-stream-audio branch April 14, 2026 13:19
Abhijeet Prasad (AbhiPrasad) added a commit that referenced this pull request Apr 14, 2026
Includes:
- #247
- #258
- #255
- #253
- #252
- #261
- #265
- #264
- #267
- #268
- #270
- #271
- #275
- #274
- #79

Maybe Includes:
- #276
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BOT ISSUE] OpenAI: chat completions streaming drops audio delta chunks (GPT-4o audio modality)

2 participants