Repository navigation
fix(streaming): add mode to updateConfiguration and accept camelCase keys - #213
Merged
Merged
Conversation
updateConfiguration() now takes mode, max_turn_duration and continuous_partials, accepts each field by its camelCase connection-param name as well as its snake_case wire name, and warns on unrecognized keys (still sent) and on format_turns/filter_profanity, which the server does not apply mid-stream. Bumps to 4.43.2. Fixes #211 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bgotthold-aai
approved these changes
Nov 17, 2026
ccampbell-aai
added a commit
that referenced
this pull request
Nov 17, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccampbell-aai
added a commit
that referenced
this pull request
Nov 19, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes #211.
updateConfiguration()takesmode,max_turn_durationandcontinuous_partials. The streaming API accepts all three mid-session.maxTurnSilence, ...) as well as snake_case, and sends snake_case. Before this, camelCase keys from plain JS were silently ignored by the API.console.warn.format_turns/filter_profanityare deprecated on the update type and warn, because the API only applies them at connect.Test plan
tests/unit/streaming.test.ts(camelCase mapping, mode, conflicts, warnings)tsc --noEmit, publintstreaming.assemblyai.com,assemblyai-stt-3-7-realtime-agent):updateConfiguration({ mode: "manual" })stops natural turn ends untilforceEndpoint()(control: 4 natural turns); Datadogctx.modeflips to manual.{ maxTurnSilence: 1500, mode: "manual" }goes out asmax_turn_silence; conflict, unknown-key andformat_turnswarnings fire;max_turn_durationaccepted🤖 Generated with Claude Code