Skip to content

fix(streaming): add mode to updateConfiguration and accept camelCase keys - #213

Merged
ccampbell-aai merged 1 commit into
mainfrom
ccampbell/streaming-update-config
Nov 17, 2026
Merged

ccampbell-aai merged 1 commit into
mainfrom
ccampbell/streaming-update-config

Conversation

@ccampbell-aai

@ccampbell-aai ccampbell-aai commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #211.

  • updateConfiguration() takes mode, max_turn_duration and continuous_partials. The streaming API accepts all three mid-session.
  • Accepts each field by its camelCase connection-param name (maxTurnSilence, ...) as well as snake_case, and sends snake_case. Before this, camelCase keys from plain JS were silently ignored by the API.
  • Unknown keys are still sent, with a console.warn. format_turns/filter_profanity are deprecated on the update type and warn, because the API only applies them at connect.
  • Bumps to 4.43.2. feat(streaming): add assemblyai-stt-3-7-realtime speech models #210 also takes 4.43.2, so whichever merges second re-bumps.

Test plan

  • New unit tests in tests/unit/streaming.test.ts (camelCase mapping, mode, conflicts, warnings)
  • prettier, eslint, tsc --noEmit, publint
  • Full unit suite: only the 3 user-agent tests that also fail on main under Node 26
  • Prod (streaming.assemblyai.com, assemblyai-stt-3-7-realtime-agent): updateConfiguration({ mode: "manual" }) stops natural turn ends until forceEndpoint() (control: 4 natural turns); Datadog ctx.mode flips to manual. { maxTurnSilence: 1500, mode: "manual" } goes out as max_turn_silence; conflict, unknown-key and format_turns warnings fire; max_turn_duration accepted

🤖 Generated with Claude Code

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>
@ccampbell-aai
ccampbell-aai merged commit 27d87c9 into main Nov 17, 2026
4 checks passed
@ccampbell-aai
ccampbell-aai deleted the ccampbell/streaming-update-config branch November 17, 2026 01:38
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>
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.

Streaming: updateConfiguration is missing mode and silently ignores camelCase keys

2 participants