File tree 2 files changed +7
-1
lines changed
src/wrapper/empathicVoice/chat
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " hume" ,
3
- "version" : " 0.6.2 " ,
3
+ "version" : " 0.6.3 " ,
4
4
"private" : false ,
5
5
"repository" : " https://github.com/HumeAI/hume-typescript-sdk" ,
6
6
"main" : " ./index.js" ,
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ export declare namespace ChatClient {
21
21
/** The ID of a chat group, used to resume a previous chat. */
22
22
resumedChatGroupId ?: string ;
23
23
24
+ /** List chats in ascending order. */
25
+ ascendingOrder ?: boolean ;
26
+
24
27
onOpen ?: ( ) => void ;
25
28
onMessage ?: ( message : Hume . empathicVoice . SubscribeEvent ) => void ;
26
29
onError ?: ( error : Hume . empathicVoice . WebSocketError ) => void ;
@@ -45,6 +48,9 @@ export class ChatClient {
45
48
if ( args . resumedChatGroupId != null ) {
46
49
queryParams [ "resumed_chat_group_id" ] = args . resumedChatGroupId ;
47
50
}
51
+ if ( args . ascendingOrder != null ) {
52
+ queryParams [ "ascending_order" ] = args . ascendingOrder . toString ( ) ;
53
+ }
48
54
49
55
const websocket = await core . connect ( `wss://api.hume.ai/v0/evi/chat?${ qs . stringify ( queryParams ) } ` ) ;
50
56
You can’t perform that action at this time.
0 commit comments