Skip to content

Streaming: updateConfiguration is missing mode and silently ignores camelCase keys #211

Closed

Description

@bgotthold-aai

UpdateConfiguration accepts mode mid-session (API reference). In 4.43.1, StreamingUpdateConfiguration (src/types/streaming/index.ts) has no mode, so updateConfiguration({ mode: "balanced" }) fails to type-check (it does work at runtime because keys are forwarded).

Connection params in client.streaming.transcriber({...}) are camelCase, but updateConfiguration takes snake_case and forwards keys unchanged (src/services/streaming/service.ts, updateConfiguration). From plain JS, a call like:

transcriber.updateConfiguration({ maxTurnSilence: 1500 });

sends maxTurnSilence, which the API ignores, with no warning.

Suggested fix:

  • Add mode?: StreamingMode to StreamingUpdateConfiguration.
  • Accept the camelCase names and map them to snake_case, consistent with the connection params.
  • Warn on unrecognized keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions