Skip to content

fix(tts): preserve final response for non-sentence and usage-only mes… - #248

Merged
luk384090-cloud merged 2 commits into
mainfrom
dev/v2.1.2-4
Nov 27, 2026
Merged

luk384090-cloud merged 2 commits into
mainfrom
dev/v2.1.2-4

Conversation

@luk384090-cloud

Copy link
Copy Markdown
Collaborator

…sages

  • Allow SpeechSynthesisOutput to initialize with None sentence
  • Keep non-timestamp or usage-only messages as final response candidates
  • Ensure output=None final message overwrites earlier extra messages
  • Add unit tests to verify capturing of usage and final response details
  • Test handling of various response payload scenarios in speech synthesizer

Description

[Describe what this PR does and why]

Related Issue: Fixes #[issue_number] or Relates to #[issue_number]

Security Considerations: [Check if API keys or sensitive credentials are exposed in code/logs]

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactoring

Component(s) Affected

  • Model
  • Application
  • Common
  • Documentation
  • Tests
  • CI/CD

Checklist

  • Pre-commit hooks pass
  • Tests pass locally
  • Documentation updated (if needed)
  • Ready for review

Testing

[How to test these changes]

Additional Notes

[Optional: any other context]

luk384090-cloud added 2 commits November 27, 2026 11:33
…sages

- Allow SpeechSynthesisOutput to initialize with None sentence
- Keep non-timestamp or usage-only messages as final response candidates
- Ensure output=None final message overwrites earlier extra messages
- Add unit tests to verify capturing of usage and final response details
- Test handling of various response payload scenarios in speech synthesizer
@luk384090-cloud
luk384090-cloud merged commit c39ed04 into main Nov 27, 2026
11 checks passed
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.

1 participant