Repository navigation
feat(pipecat): trace GPT-Live calls and record session audio - #1135
Closed
David Elner (delner) wants to merge 1 commit into
Closed
David Elner (delner) wants to merge 1 commit into
David Elner (delner) wants to merge 1 commit into
Conversation
> 🤖 **This text was AI-generated.** Pipecat connects directly to GPT-Live, so OpenAI SDK instrumentation cannot capture its model execution. Add transcripts, recorded audio, usage, backend responses, and tool execution to the Pipecat trace: ```text session ├─ pipecat.live llm ├─ user_turn / agent_turn │ └─ transcript_received ├─ user_speech / agent_speech audio selections └─ llm_response task ├─ pipecat.live.backend_response llm └─ tool execution ``` Enable tracing and recording with `setup_pipecat(capture_audio_attachments=True)`. Framework frames define transcript groups; observed IDs define tool relationships. Preserve partial output on cancellation and keep model usage on its owning LLM span. Supports one Live session per pipeline with hosted Responses delegation.
Contributor
Author
|
Replaced by #1136 after renaming the branch to feat/pipecat-gpt-live. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds GPT-Live support to Braintrust's Pipecat integration. Capture transcripts, user and agent audio, backend model calls, and tool execution in one trace. Usage metrics distinguish the Live model's billed duration from backend token usage, helping explain which models did the work and estimate the call's cost.
What it looks like
Usage
With
BRAINTRUST_API_KEYset, call setup before creating your Pipecat worker:Install
braintrust[audio]for Opus/Ogg recordings. Recording can also be enabled separately withcapture_user_audio_attachmentsandcapture_agent_audio_attachments.Supports one
OpenAILiveLLMServicesession per pipeline with hosted Responses delegation. Client delegation and session resets are not covered.Design