@open-wa/wa-automate-types-only 4.62.4 → 4.63.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/Client.d.ts +10 -0
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -1068,6 +1068,16 @@ export declare class Client {
|
|
1068
1068
|
* @returns array of [Chat]
|
1069
1069
|
*/
|
1070
1070
|
getAllChatsWithMessages(withNewMessageOnly?: boolean): Promise<Chat[]>;
|
1071
|
+
/**
|
1072
|
+
* Returns a properly formatted array of messages from to send to the openai api
|
1073
|
+
*
|
1074
|
+
* @param last The amount of previous messages to retrieve. Defaults to 10
|
1075
|
+
* @returns
|
1076
|
+
*/
|
1077
|
+
getGptArray(last?: number): Promise<{
|
1078
|
+
role: "user" | "assistant";
|
1079
|
+
content: string;
|
1080
|
+
}[]>;
|
1071
1081
|
/**
|
1072
1082
|
* Retrieve all groups
|
1073
1083
|
* @returns array of groups
|