Skip to content

chore(voice): replace operating_point with model in voice SDK#124

Draft
sam-s10s wants to merge 3 commits into
mainfrom
pr/op-model
Draft

chore(voice): replace operating_point with model in voice SDK#124
sam-s10s wants to merge 3 commits into
mainfrom
pr/op-model

Conversation

@sam-s10s

Copy link
Copy Markdown
Member

Switch VoiceAgentConfig, presets and client wiring from operating_point to the new model field (defaulting to Model.ENHANCED).

operating_point is kept as a deprecated field that is automatically migrated to model during validation, so existing configs (including JSON) continue to work.

Docstrings, presets and tests updated accordingly

Switch VoiceAgentConfig, presets and client wiring from
`operating_point` to the new `model` field (defaulting to
`Model.ENHANCED`). `operating_point` is kept as a deprecated field
that is automatically migrated to `model` during validation, so
existing configs (including JSON) continue to work.

Update docstrings, presets and tests accordingly.
@sam-s10s sam-s10s changed the title Replace operating_point with model in voice SDK chore(voice): replace operating_point with model in voice SDK Jul 22, 2026
sam-s10s and others added 2 commits July 22, 2026 12:27
The migration path appended "migrated operating_point to model" to the
validation errors list, which caused every config using the deprecated
`operating_point` to raise a ValueError. Emit a DeprecationWarning and
migrate silently instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Match the RT SDK's handling of the deprecated `operating_point` field:
raise a ValueError when both `model` and `operating_point` are set
explicitly, and use the `from warnings import warn` style and message
wording. Add a test covering migration, no-op and conflict cases.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant