diff --git a/CHANGELOG.md b/CHANGELOG.md index de32594550..4351577b25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -## [4.62.5](https://github.com/open-wa/wa-automate-nodejs/compare/4.62.4...4.62.5) +## [4.63.0](https://github.com/open-wa/wa-automate-nodejs/compare/4.62.5...4.63.0) ### Commits +- feat: `client.getGptArray` #3090 [`443e1c1`](https://github.com/open-wa/wa-automate-nodejs/commit/443e1c169910291e5ce2e12a08e5468793a2fbf3) +- updated types-only package [`c8a9500`](https://github.com/open-wa/wa-automate-nodejs/commit/c8a95008384880c50d7541fc393d7e36c87f4b1b) + +## [4.62.5](https://github.com/open-wa/wa-automate-nodejs/compare/4.62.4...4.62.5) - 2023-04-02 + +### Commits + +- Release 4.62.5 [`d637660`](https://github.com/open-wa/wa-automate-nodejs/commit/d637660757d453b66775afe8db00cb2cf6393d94) - 📝 add some documentation around `pup` [`45fd3b5`](https://github.com/open-wa/wa-automate-nodejs/commit/45fd3b569c740099b499a7b2fa57f132d933fd9e) - 🔇 prevent reconnection logspam #3094 [`686a4ff`](https://github.com/open-wa/wa-automate-nodejs/commit/686a4ff8ed3f74dd6119b919c70a59ababc9937d) - updated types-only package [`5293232`](https://github.com/open-wa/wa-automate-nodejs/commit/5293232a2b15b30be68064e355111c018db2539b) diff --git a/docs-v3/docs/api/classes/api_Client.Client.md b/docs-v3/docs/api/classes/api_Client.Client.md index 412692df28..fa19b5ab57 100644 --- a/docs-v3/docs/api/classes/api_Client.Client.md +++ b/docs-v3/docs/api/classes/api_Client.Client.md @@ -1434,6 +1434,24 @@ String useragent of wa-web session ___ +### getGptArray + +▸ **getGptArray**(`last?`): `Promise`<{ `content`: `string` ; `role`: ``"user"`` \| ``"assistant"`` }[]\> + +Returns a properly formatted array of messages from to send to the openai api + +#### Parameters + +| Name | Type | Default value | Description | +| :------ | :------ | :------ | :------ | +| `last` | `number` | `10` | The amount of previous messages to retrieve. Defaults to 10 | + +#### Returns + +`Promise`<{ `content`: `string` ; `role`: ``"user"`` \| ``"assistant"`` }[]\> + +___ + ### getGroupAdmins ▸ **getGroupAdmins**(`groupId`): `Promise`<[`ContactId`](/api/types/api_model_aliases.ContactId.md)[]\> diff --git a/docs-v3/docs/api/reference b/docs-v3/docs/api/reference index 8614636aaa..1c015e1ffc 100644 --- a/docs-v3/docs/api/reference +++ b/docs-v3/docs/api/reference @@ -1,6 +1,6 @@ --- id: "reference" -title: "@open-wa/wa-automate - v4.62.5" +title: "@open-wa/wa-automate - v4.63.0" sidebar_label: "Readme" sidebar_position: 0 custom_edit_url: null diff --git a/package-lock.json b/package-lock.json index bd792d299a..56bf173864 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@open-wa/wa-automate", - "version": "4.62.5", + "version": "4.63.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@open-wa/wa-automate", - "version": "4.62.5", + "version": "4.63.0", "hasInstallScript": true, "license": "H-DNH V1.0", "dependencies": { diff --git a/package.json b/package.json index 53611a3db7..db94e73254 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@open-wa/wa-automate", - "version": "4.62.5", + "version": "4.63.0", "licenseCheckUrl": "https://funcs.openwa.dev/license-check", "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm", "patches": "https://cdn.openwa.dev/patches.json", diff --git a/release.png b/release.png index ffec851646..d54c5a8d20 100644 Binary files a/release.png and b/release.png differ