-
Notifications
You must be signed in to change notification settings - Fork 967
feat: opt tts remove turnid #1632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughRemoved per-turn state ( Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client as Client
participant Ext as TTS Extension
participant Signaler as Signaling/Telemetry
Note over Client,Ext: New request-based flow (no current_turn_id)
Client->>Ext: request_tts(request_id, t, config)
Ext->>Signaler: send_tts_audio_start(request_id)
Note right of Signaler: start event recorded
Ext->>Ext: stream audio chunks
Ext->>Signaler: send_tts_ttfb_metrics(request_id, ttfb_ms, extra_metadata)
Note right of Signaler: include model/voice in extra_metadata
Ext->>Signaler: send_tts_audio_end(request_id, request_event_interval_ms, request_total_audio_duration_ms, reason)
Note right of Signaler: end event recorded
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
🔇 Additional comments (3)
Comment |
Pull Request Review: feat: opt tts remove turnidSummaryThis PR removes the turn_id parameter from three TTS extensions. The change simplifies the TTS interface by removing conversation turn tracking and adds provider-specific metadata to TTFB metrics. Positive Aspects
Code QualityGood practices: Clean removal of turn_id references, updated log messages, no unnecessary code. Areas for consideration:
Potential Issues
Security: No issues identifiedPerformance: Positive impact from removing unused state trackingTest CoverageTest files exist. Recommendation: Verify tests cover new method signatures and extra_metadata. Action Items Before Merging
Overall AssessmentQuality: 4/5 stars Clean refactoring with good execution. Main concern is ensuring consistent application across ALL TTS extensions in the codebase. Please confirm if only these three needed updates or if this is part 1 of a larger refactoring. Great work on the consistent implementation! |
PR Review: feat: opt tts remove turnidSummaryThis PR removes the ✅ Strengths
|
Summary by CodeRabbit
Refactor
Chores