Commit 7ff6bc5
committed
fix(openai): trace chat streaming audio attachments
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.1 parent 93a7c3b commit 7ff6bc5
4 files changed
Lines changed: 420 additions & 5 deletions
File tree
- py/src/braintrust/integrations
- openai
- cassettes
0 commit comments