Skip to content

Commit 6ea8e69

Browse files
authored
(feat): support ascending_order (#35)
1 parent 7eeae44 commit 6ea8e69

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hume",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"private": false,
55
"repository": "https://github.com/HumeAI/hume-typescript-sdk",
66
"main": "./index.js",

src/wrapper/empathicVoice/chat/ChatClient.ts

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export declare namespace ChatClient {
2121
/** The ID of a chat group, used to resume a previous chat. */
2222
resumedChatGroupId?: string;
2323

24+
/** List chats in ascending order. */
25+
ascendingOrder?: boolean;
26+
2427
onOpen?: () => void;
2528
onMessage?: (message: Hume.empathicVoice.SubscribeEvent) => void;
2629
onError?: (error: Hume.empathicVoice.WebSocketError) => void;
@@ -45,6 +48,9 @@ export class ChatClient {
4548
if (args.resumedChatGroupId != null) {
4649
queryParams["resumed_chat_group_id"] = args.resumedChatGroupId;
4750
}
51+
if (args.ascendingOrder != null) {
52+
queryParams["ascending_order"] = args.ascendingOrder.toString();
53+
}
4854

4955
const websocket = await core.connect(`wss://api.hume.ai/v0/evi/chat?${qs.stringify(queryParams)}`);
5056

0 commit comments

Comments
 (0)