-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[VoiceLive]Support explicit None values in RequestSession serialization #44628
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for explicit None value serialization in the RequestSession model, enabling scenarios where turn_detection=None needs to be sent as "turn_detection": null in WebSocket messages rather than being omitted. The change updates the package to version 1.2.0b3 (beta status) and bumps the azure-core dependency to 1.36.0.
Changes:
- Extended
RequestSessionclass to track explicitly set None values and include them in serialization - Updated test to use
turn_detection=Noneinstead of{"type": "none"} - Bumped version to 1.2.0b3 and changed development status from Production/Stable to Beta
- Updated minimum azure-core dependency from 1.35.0 to 1.36.0
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/ai/azure-ai-voicelive/azure/ai/voicelive/models/_patch.py | Adds RequestSession extension with _explicit_none_fields tracking and custom as_dict method to preserve explicit None values |
| sdk/ai/azure-ai-voicelive/tests/test_live_realtime_service.py | Updates test to use turn_detection=None instead of {"type": "none"} |
| sdk/ai/azure-ai-voicelive/pyproject.toml | Updates development status to Beta and azure-core dependency to 1.36.0 |
| sdk/ai/azure-ai-voicelive/_version.py | Changes version from 1.2.0 to 1.2.0b3 |
| sdk/ai/azure-ai-voicelive/CHANGELOG.md | Documents the new feature and dependency update for version 1.2.0b3 |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines