Skip to content

Commit f7f3c37

Browse files
authored
add allow_connection to hume.empathicVoice.chat.connect (#587)
1 parent 4c7bbe0 commit f7f3c37

File tree

1 file changed

+6
-0
lines changed
  • src/api/resources/empathicVoice/resources/chat/client

1 file changed

+6
-0
lines changed

src/api/resources/empathicVoice/resources/chat/client/Client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export declare namespace Chat {
2424
eventLimit?: number | undefined;
2525
resumedChatGroupId?: string | undefined;
2626
verboseTranscription?: boolean | undefined;
27+
allowConnection?: boolean | undefined;
2728
/** @deprecated Use sessionSettings.voiceId instead */
2829
voiceId?: string | undefined;
2930
apiKey?: string | undefined;
@@ -61,6 +62,7 @@ export class Chat {
6162
headers,
6263
debug,
6364
reconnectAttempts,
65+
allowConnection,
6466
} = args;
6567
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
6668

@@ -97,6 +99,10 @@ export class Chat {
9799
_queryParams["api_key"] = apiKey;
98100
}
99101

102+
if (allowConnection != null) {
103+
_queryParams["allow_connection"] = allowConnection === true ? "true" : "false";
104+
}
105+
100106
if (sessionSettings != null) {
101107
_queryParams["session_settings"] = serializers.empathicVoice.ConnectSessionSettings.jsonOrThrow(
102108
sessionSettings,

0 commit comments

Comments
 (0)