From c869d1fc0bc7b20fab8e47a8f932057f25634dcf Mon Sep 17 00:00:00 2001 From: Jun Han Date: Fri, 24 Mar 2023 21:53:02 +0800 Subject: [PATCH 01/21] docs: add one WeChat Bot to readme --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index babe9a89..af7568b6 100644 --- a/readme.md +++ b/readme.md @@ -439,6 +439,7 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [WeChat Bot #3](https://github.com/wangrongding/wechat-bot) ( - [WeChat Bot #4](https://github.com/darknightlab/wechat-bot) - [WeChat Bot #5](https://github.com/sunshanpeng/wechaty-chatgpt) +- [WeChat Bot #6](https://github.com/formulahendry/chatgpt-wechat-bot) - [QQ Bot (plugin for Yunzai-bot)](https://github.com/ikechan8370/chatgpt-plugin) - [QQ Bot (plugin for KiviBot)](https://github.com/KiviBotLab/kivibot-plugin-chatgpt) - [QQ Bot (oicq)](https://github.com/easydu2002/chat_gpt_oicq) From 15058598fb89c187cec2acd0b54c2bc236b11921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=A3=AE?= Date: Sat, 25 Mar 2023 09:34:28 +0800 Subject: [PATCH 02/21] docs: add one WeChat Bot to readme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks 🙏 --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index babe9a89..c3bdb074 100644 --- a/readme.md +++ b/readme.md @@ -484,6 +484,7 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [Next.js ChatGPT With Firebase](https://github.com/youngle316/chatgpt) - [ai-commit – GPT-3 Commit Message Generator](https://github.com/insulineru/ai-commit) - [AItinerary – ChatGPT itinerary Generator](https://aitinerary.ai) +- [wechaty-chatgpt - A chatbot based on Wechaty & ChatGPT](https://github.com/zhengxs2018/wechaty-chatgpt) If you create a cool integration, feel free to open a PR and add it to the list. From 34ac22408ed10c63eb9384d6492552049ed1e8f5 Mon Sep 17 00:00:00 2001 From: Elitezen Date: Sat, 25 Mar 2023 17:12:20 -0400 Subject: [PATCH 03/21] Added discordjs-chatgpt under Projects --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index babe9a89..370766c7 100644 --- a/readme.md +++ b/readme.md @@ -484,6 +484,7 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [Next.js ChatGPT With Firebase](https://github.com/youngle316/chatgpt) - [ai-commit – GPT-3 Commit Message Generator](https://github.com/insulineru/ai-commit) - [AItinerary – ChatGPT itinerary Generator](https://aitinerary.ai) +- [discordjs-chatgpt](https://github.com/Elitezen/discordjs-chatgpt) Discord.JS ChatGPT command plugin If you create a cool integration, feel free to open a PR and add it to the list. From 052238fb62094b1b8e99737ea799bc197b81cf08 Mon Sep 17 00:00:00 2001 From: Christophe Date: Sun, 26 Mar 2023 21:50:06 +0200 Subject: [PATCH 04/21] Add new project : Julius GPT --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index babe9a89..18a3c96b 100644 --- a/readme.md +++ b/readme.md @@ -484,6 +484,7 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [Next.js ChatGPT With Firebase](https://github.com/youngle316/chatgpt) - [ai-commit – GPT-3 Commit Message Generator](https://github.com/insulineru/ai-commit) - [AItinerary – ChatGPT itinerary Generator](https://aitinerary.ai) +- [Julius GPT](https://github.com/christophebe/julius-gpt) : Generate and publish your content from the command line with the help of AI (GPT). If you create a cool integration, feel free to open a PR and add it to the list. From c8b73518895469d617d3c10bf3f62d1e11cd5ac8 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Mon, 27 Mar 2023 22:11:15 -0500 Subject: [PATCH 05/21] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 370766c7..9c5b9aba 100644 --- a/readme.md +++ b/readme.md @@ -433,6 +433,7 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [Discord Bot #4 (selfbot)](https://github.com/0x7030676e31/cumsocket) - [Discord Bot #5](https://github.com/itskdhere/ChatGPT-Discord-BOT) - [Discord Bot #6 (Shakespeare bot)](https://gist.github.com/TheBrokenRail/4b37e7c44e8f721d8bd845050d034c16) +- [Discord Bot #7](https://github.com/Elitezen/discordjs-chatgpt) - [Zoom Chat](https://github.com/shixin-guo/my-bot) - [WeChat Bot #1](https://github.com/AutumnWhj/ChatGPT-wechat-bot) - [WeChat Bot #2](https://github.com/fuergaosi233/wechat-chatgpt) @@ -484,7 +485,6 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [Next.js ChatGPT With Firebase](https://github.com/youngle316/chatgpt) - [ai-commit – GPT-3 Commit Message Generator](https://github.com/insulineru/ai-commit) - [AItinerary – ChatGPT itinerary Generator](https://aitinerary.ai) -- [discordjs-chatgpt](https://github.com/Elitezen/discordjs-chatgpt) Discord.JS ChatGPT command plugin If you create a cool integration, feel free to open a PR and add it to the list. From 9eac18fac08e8622c01d6ba984a955bbf350f79c Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Mon, 27 Mar 2023 22:08:28 -0500 Subject: [PATCH 06/21] feat: update deps --- package.json | 16 +- pnpm-lock.yaml | 402 ++++++++++++++++++++++++++----------------------- 2 files changed, 221 insertions(+), 197 deletions(-) diff --git a/package.json b/package.json index 3750bb40..0616fb22 100644 --- a/package.json +++ b/package.json @@ -50,19 +50,19 @@ "devDependencies": { "@keyv/redis": "^2.5.6", "@trivago/prettier-plugin-sort-imports": "^4.1.1", - "@types/node": "^18.15.3", + "@types/node": "^18.15.10", "@types/uuid": "^9.0.1", "del-cli": "^5.0.0", "dotenv-safe": "^8.2.0", - "husky": "^8.0.2", + "husky": "^8.0.3", "lint-staged": "^13.2.0", "npm-run-all": "^4.1.5", - "ora": "^6.1.2", - "prettier": "^2.8.4", - "tsup": "^6.6.3", - "tsx": "^3.12.5", - "typedoc": "^0.23.27", - "typedoc-plugin-markdown": "^3.13.6", + "ora": "^6.3.0", + "prettier": "^2.8.7", + "tsup": "^6.7.0", + "tsx": "^3.12.6", + "typedoc": "^0.23.28", + "typedoc-plugin-markdown": "^3.14.0", "typescript": "^4.9.5" }, "lint-staged": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b3209e9c..054d319f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,26 +4,26 @@ specifiers: '@dqbd/tiktoken': ^1.0.2 '@keyv/redis': ^2.5.6 '@trivago/prettier-plugin-sort-imports': ^4.1.1 - '@types/node': ^18.15.3 + '@types/node': ^18.15.10 '@types/uuid': ^9.0.1 cac: ^6.7.14 conf: ^11.0.1 del-cli: ^5.0.0 dotenv-safe: ^8.2.0 eventsource-parser: ^0.0.5 - husky: ^8.0.2 + husky: ^8.0.3 keyv: ^4.5.2 lint-staged: ^13.2.0 npm-run-all: ^4.1.5 - ora: ^6.1.2 + ora: ^6.3.0 p-timeout: ^6.1.1 - prettier: ^2.8.4 + prettier: ^2.8.7 quick-lru: ^6.1.1 read-pkg-up: ^9.1.0 - tsup: ^6.6.3 - tsx: ^3.12.5 - typedoc: ^0.23.27 - typedoc-plugin-markdown: ^3.13.6 + tsup: ^6.7.0 + tsx: ^3.12.6 + typedoc: ^0.23.28 + typedoc-plugin-markdown: ^3.14.0 typescript: ^4.9.5 uuid: ^9.0.0 @@ -40,20 +40,20 @@ dependencies: devDependencies: '@keyv/redis': 2.5.6 - '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.4 - '@types/node': 18.15.3 + '@trivago/prettier-plugin-sort-imports': 4.1.1_prettier@2.8.7 + '@types/node': 18.15.10 '@types/uuid': 9.0.1 del-cli: 5.0.0 dotenv-safe: 8.2.0 husky: 8.0.3 lint-staged: 13.2.0 npm-run-all: 4.1.5 - ora: 6.1.2 - prettier: 2.8.4 - tsup: 6.6.3_typescript@4.9.5 - tsx: 3.12.5 - typedoc: 0.23.27_typescript@4.9.5 - typedoc-plugin-markdown: 3.14.0_typedoc@0.23.27 + ora: 6.3.0 + prettier: 2.8.7 + tsup: 6.7.0_typescript@4.9.5 + tsx: 3.12.6 + typedoc: 0.23.28_typescript@4.9.5 + typedoc-plugin-markdown: 3.14.0_typedoc@0.23.28 typescript: 4.9.5 packages: @@ -83,21 +83,21 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.20.7 - '@babel/types': 7.21.2 + '@babel/types': 7.21.3 dev: true /@babel/helper-hoist-variables/7.18.6: resolution: {integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.21.2 + '@babel/types': 7.21.3 dev: true /@babel/helper-split-export-declaration/7.18.6: resolution: {integrity: sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.21.2 + '@babel/types': 7.21.3 dev: true /@babel/helper-string-parser/7.19.4: @@ -117,8 +117,8 @@ packages: chalk: 2.4.2 js-tokens: 4.0.0 - /@babel/parser/7.21.2: - resolution: {integrity: sha512-URpaIJQwEkEC2T9Kn+Ai6Xe/02iNaVCuT/PtoRz3GPVJVDpPd7mLo+VddTbhCRU9TXqW5mSrQfXZyi8kDKOVpQ==} + /@babel/parser/7.21.3: + resolution: {integrity: sha512-lobG0d7aOfQRXh8AyklEAgZGvA4FShxo6xQbUrrT/cNBPUdIDojlokwJsQyCC/eKia7ifqM0yP+2DRZ4WKw2RQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: @@ -130,8 +130,8 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.18.6 - '@babel/parser': 7.21.2 - '@babel/types': 7.21.2 + '@babel/parser': 7.21.3 + '@babel/types': 7.21.3 dev: true /@babel/traverse/7.17.3: @@ -144,7 +144,7 @@ packages: '@babel/helper-function-name': 7.21.0 '@babel/helper-hoist-variables': 7.18.6 '@babel/helper-split-export-declaration': 7.18.6 - '@babel/parser': 7.21.2 + '@babel/parser': 7.21.3 '@babel/types': 7.17.0 debug: 4.3.4 globals: 11.12.0 @@ -160,8 +160,8 @@ packages: to-fast-properties: 2.0.0 dev: true - /@babel/types/7.21.2: - resolution: {integrity: sha512-3wRZSs7jiFaB8AjxiiD+VqN5DTG2iRvJGQ+qYFrs/654lg6kGTQWIOFjlBo5RaXuAZjBmP3+OQH4dmhqiiyYxw==} + /@babel/types/7.21.3: + resolution: {integrity: sha512-sBGdETxC+/M4o/zKC0sl6sjWv62WFR/uzxrJ6uYyMLZOUlPnwzw0tKgVHOXxaAd5l2g8pEDM5RZ495GPQI77kg==} engines: {node: '>=6.9.0'} dependencies: '@babel/helper-string-parser': 7.19.4 @@ -177,13 +177,13 @@ packages: resolution: {integrity: sha512-BDXFbYOJzT/NBEtp71cvsrGPwGAMGRB/349rwKuoxNSiKjPraNNnlK6MIIabViCjqZugu6j+xeMDlEkWdHHJSg==} dependencies: '@esbuild-kit/core-utils': 3.1.0 - get-tsconfig: 4.4.0 + get-tsconfig: 4.5.0 dev: true /@esbuild-kit/core-utils/3.1.0: resolution: {integrity: sha512-Uuk8RpCg/7fdHSceR1M6XbSZFSuMrxcePFuGgyvsBn+u339dk5OeL4jv2EojwTN2st/unJGsVm4qHWjWNmJ/tw==} dependencies: - esbuild: 0.17.10 + esbuild: 0.17.14 source-map-support: 0.5.21 dev: true @@ -191,11 +191,11 @@ packages: resolution: {integrity: sha512-Qwfvj/qoPbClxCRNuac1Du01r9gvNOT+pMYtJDapfB1eoGN1YlJ1BixLyL9WVENRx5RXgNLdfYdx/CuswlGhMw==} dependencies: '@esbuild-kit/core-utils': 3.1.0 - get-tsconfig: 4.4.0 + get-tsconfig: 4.5.0 dev: true - /@esbuild/android-arm/0.17.10: - resolution: {integrity: sha512-7YEBfZ5lSem9Tqpsz+tjbdsEshlO9j/REJrfv4DXgKTt1+/MHqGwbtlyxQuaSlMeUZLxUKBaX8wdzlTfHkmnLw==} + /@esbuild/android-arm/0.17.14: + resolution: {integrity: sha512-0CnlwnjDU8cks0yJLXfkaU/uoLyRf9VZJs4p1PskBr2AlAHeEsFEwJEo0of/Z3g+ilw5mpyDwThlxzNEIxOE4g==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -203,8 +203,8 @@ packages: dev: true optional: true - /@esbuild/android-arm64/0.17.10: - resolution: {integrity: sha512-ht1P9CmvrPF5yKDtyC+z43RczVs4rrHpRqrmIuoSvSdn44Fs1n6DGlpZKdK6rM83pFLbVaSUwle8IN+TPmkv7g==} + /@esbuild/android-arm64/0.17.14: + resolution: {integrity: sha512-eLOpPO1RvtsP71afiFTvS7tVFShJBCT0txiv/xjFBo5a7R7Gjw7X0IgIaFoLKhqXYAXhahoXm7qAmRXhY4guJg==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -212,8 +212,8 @@ packages: dev: true optional: true - /@esbuild/android-x64/0.17.10: - resolution: {integrity: sha512-CYzrm+hTiY5QICji64aJ/xKdN70IK8XZ6iiyq0tZkd3tfnwwSWTYH1t3m6zyaaBxkuj40kxgMyj1km/NqdjQZA==} + /@esbuild/android-x64/0.17.14: + resolution: {integrity: sha512-nrfQYWBfLGfSGLvRVlt6xi63B5IbfHm3tZCdu/82zuFPQ7zez4XjmRtF/wIRYbJQ/DsZrxJdEvYFE67avYXyng==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -221,8 +221,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64/0.17.10: - resolution: {integrity: sha512-3HaGIowI+nMZlopqyW6+jxYr01KvNaLB5znXfbyyjuo4lE0VZfvFGcguIJapQeQMS4cX/NEispwOekJt3gr5Dg==} + /@esbuild/darwin-arm64/0.17.14: + resolution: {integrity: sha512-eoSjEuDsU1ROwgBH/c+fZzuSyJUVXQTOIN9xuLs9dE/9HbV/A5IqdXHU1p2OfIMwBwOYJ9SFVGGldxeRCUJFyw==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -230,8 +230,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64/0.17.10: - resolution: {integrity: sha512-J4MJzGchuCRG5n+B4EHpAMoJmBeAE1L3wGYDIN5oWNqX0tEr7VKOzw0ymSwpoeSpdCa030lagGUfnfhS7OvzrQ==} + /@esbuild/darwin-x64/0.17.14: + resolution: {integrity: sha512-zN0U8RWfrDttdFNkHqFYZtOH8hdi22z0pFm0aIJPsNC4QQZv7je8DWCX5iA4Zx6tRhS0CCc0XC2m7wKsbWEo5g==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -239,8 +239,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64/0.17.10: - resolution: {integrity: sha512-ZkX40Z7qCbugeK4U5/gbzna/UQkM9d9LNV+Fro8r7HA7sRof5Rwxc46SsqeMvB5ZaR0b1/ITQ/8Y1NmV2F0fXQ==} + /@esbuild/freebsd-arm64/0.17.14: + resolution: {integrity: sha512-z0VcD4ibeZWVQCW1O7szaLxGsx54gcCnajEJMdYoYjLiq4g1jrP2lMq6pk71dbS5+7op/L2Aod+erw+EUr28/A==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -248,8 +248,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64/0.17.10: - resolution: {integrity: sha512-0m0YX1IWSLG9hWh7tZa3kdAugFbZFFx9XrvfpaCMMvrswSTvUZypp0NFKriUurHpBA3xsHVE9Qb/0u2Bbi/otg==} + /@esbuild/freebsd-x64/0.17.14: + resolution: {integrity: sha512-hd9mPcxfTgJlolrPlcXkQk9BMwNBvNBsVaUe5eNUqXut6weDQH8whcNaKNF2RO8NbpT6GY8rHOK2A9y++s+ehw==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -257,8 +257,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm/0.17.10: - resolution: {integrity: sha512-whRdrrl0X+9D6o5f0sTZtDM9s86Xt4wk1bf7ltx6iQqrIIOH+sre1yjpcCdrVXntQPCNw/G+XqsD4HuxeS+2QA==} + /@esbuild/linux-arm/0.17.14: + resolution: {integrity: sha512-BNTl+wSJ1omsH8s3TkQmIIIQHwvwJrU9u1ggb9XU2KTVM4TmthRIVyxSp2qxROJHhZuW/r8fht46/QE8hU8Qvg==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -266,8 +266,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64/0.17.10: - resolution: {integrity: sha512-g1EZJR1/c+MmCgVwpdZdKi4QAJ8DCLP5uTgLWSAVd9wlqk9GMscaNMEViG3aE1wS+cNMzXXgdWiW/VX4J+5nTA==} + /@esbuild/linux-arm64/0.17.14: + resolution: {integrity: sha512-FhAMNYOq3Iblcj9i+K0l1Fp/MHt+zBeRu/Qkf0LtrcFu3T45jcwB6A1iMsemQ42vR3GBhjNZJZTaCe3VFPbn9g==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -275,8 +275,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32/0.17.10: - resolution: {integrity: sha512-1vKYCjfv/bEwxngHERp7huYfJ4jJzldfxyfaF7hc3216xiDA62xbXJfRlradiMhGZbdNLj2WA1YwYFzs9IWNPw==} + /@esbuild/linux-ia32/0.17.14: + resolution: {integrity: sha512-91OK/lQ5y2v7AsmnFT+0EyxdPTNhov3y2CWMdizyMfxSxRqHazXdzgBKtlmkU2KYIc+9ZK3Vwp2KyXogEATYxQ==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -284,8 +284,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64/0.17.10: - resolution: {integrity: sha512-mvwAr75q3Fgc/qz3K6sya3gBmJIYZCgcJ0s7XshpoqIAIBszzfXsqhpRrRdVFAyV1G9VUjj7VopL2HnAS8aHFA==} + /@esbuild/linux-loong64/0.17.14: + resolution: {integrity: sha512-vp15H+5NR6hubNgMluqqKza85HcGJgq7t6rMH7O3Y6ApiOWPkvW2AJfNojUQimfTp6OUrACUXfR4hmpcENXoMQ==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -293,8 +293,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el/0.17.10: - resolution: {integrity: sha512-XilKPgM2u1zR1YuvCsFQWl9Fc35BqSqktooumOY2zj7CSn5czJn279j9TE1JEqSqz88izJo7yE4x3LSf7oxHzg==} + /@esbuild/linux-mips64el/0.17.14: + resolution: {integrity: sha512-90TOdFV7N+fgi6c2+GO9ochEkmm9kBAKnuD5e08GQMgMINOdOFHuYLPQ91RYVrnWwQ5683sJKuLi9l4SsbJ7Hg==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -302,8 +302,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64/0.17.10: - resolution: {integrity: sha512-kM4Rmh9l670SwjlGkIe7pYWezk8uxKHX4Lnn5jBZYBNlWpKMBCVfpAgAJqp5doLobhzF3l64VZVrmGeZ8+uKmQ==} + /@esbuild/linux-ppc64/0.17.14: + resolution: {integrity: sha512-NnBGeoqKkTugpBOBZZoktQQ1Yqb7aHKmHxsw43NddPB2YWLAlpb7THZIzsRsTr0Xw3nqiPxbA1H31ZMOG+VVPQ==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -311,8 +311,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64/0.17.10: - resolution: {integrity: sha512-r1m9ZMNJBtOvYYGQVXKy+WvWd0BPvSxMsVq8Hp4GzdMBQvfZRvRr5TtX/1RdN6Va8JMVQGpxqde3O+e8+khNJQ==} + /@esbuild/linux-riscv64/0.17.14: + resolution: {integrity: sha512-0qdlKScLXA8MGVy21JUKvMzCYWovctuP8KKqhtE5A6IVPq4onxXhSuhwDd2g5sRCzNDlDjitc5sX31BzDoL5Fw==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -320,8 +320,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x/0.17.10: - resolution: {integrity: sha512-LsY7QvOLPw9WRJ+fU5pNB3qrSfA00u32ND5JVDrn/xG5hIQo3kvTxSlWFRP0NJ0+n6HmhPGG0Q4jtQsb6PFoyg==} + /@esbuild/linux-s390x/0.17.14: + resolution: {integrity: sha512-Hdm2Jo1yaaOro4v3+6/zJk6ygCqIZuSDJHdHaf8nVH/tfOuoEX5Riv03Ka15LmQBYJObUTNS1UdyoMk0WUn9Ww==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -329,8 +329,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64/0.17.10: - resolution: {integrity: sha512-zJUfJLebCYzBdIz/Z9vqwFjIA7iSlLCFvVi7glMgnu2MK7XYigwsonXshy9wP9S7szF+nmwrelNaP3WGanstEg==} + /@esbuild/linux-x64/0.17.14: + resolution: {integrity: sha512-8KHF17OstlK4DuzeF/KmSgzrTWQrkWj5boluiiq7kvJCiQVzUrmSkaBvcLB2UgHpKENO2i6BthPkmUhNDaJsVw==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -338,8 +338,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64/0.17.10: - resolution: {integrity: sha512-lOMkailn4Ok9Vbp/q7uJfgicpDTbZFlXlnKT2DqC8uBijmm5oGtXAJy2ZZVo5hX7IOVXikV9LpCMj2U8cTguWA==} + /@esbuild/netbsd-x64/0.17.14: + resolution: {integrity: sha512-nVwpqvb3yyXztxIT2+VsxJhB5GCgzPdk1n0HHSnchRAcxqKO6ghXwHhJnr0j/B+5FSyEqSxF4q03rbA2fKXtUQ==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -347,8 +347,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64/0.17.10: - resolution: {integrity: sha512-/VE0Kx6y7eekqZ+ZLU4AjMlB80ov9tEz4H067Y0STwnGOYL8CsNg4J+cCmBznk1tMpxMoUOf0AbWlb1d2Pkbig==} + /@esbuild/openbsd-x64/0.17.14: + resolution: {integrity: sha512-1RZ7uQQ9zcy/GSAJL1xPdN7NDdOOtNEGiJalg/MOzeakZeTrgH/DoCkbq7TaPDiPhWqnDF+4bnydxRqQD7il6g==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -356,8 +356,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64/0.17.10: - resolution: {integrity: sha512-ERNO0838OUm8HfUjjsEs71cLjLMu/xt6bhOlxcJ0/1MG3hNqCmbWaS+w/8nFLa0DDjbwZQuGKVtCUJliLmbVgg==} + /@esbuild/sunos-x64/0.17.14: + resolution: {integrity: sha512-nqMjDsFwv7vp7msrwWRysnM38Sd44PKmW8EzV01YzDBTcTWUpczQg6mGao9VLicXSgW/iookNK6AxeogNVNDZA==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -365,8 +365,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64/0.17.10: - resolution: {integrity: sha512-fXv+L+Bw2AeK+XJHwDAQ9m3NRlNemG6Z6ijLwJAAVdu4cyoFbBWbEtyZzDeL+rpG2lWI51cXeMt70HA8g2MqIg==} + /@esbuild/win32-arm64/0.17.14: + resolution: {integrity: sha512-xrD0mccTKRBBIotrITV7WVQAwNJ5+1va6L0H9zN92v2yEdjfAN7864cUaZwJS7JPEs53bDTzKFbfqVlG2HhyKQ==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -374,8 +374,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32/0.17.10: - resolution: {integrity: sha512-3s+HADrOdCdGOi5lnh5DMQEzgbsFsd4w57L/eLKKjMnN0CN4AIEP0DCP3F3N14xnxh3ruNc32A0Na9zYe1Z/AQ==} + /@esbuild/win32-ia32/0.17.14: + resolution: {integrity: sha512-nXpkz9bbJrLLyUTYtRotSS3t5b+FOuljg8LgLdINWFs3FfqZMtbnBCZFUmBzQPyxqU87F8Av+3Nco/M3hEcu1w==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -383,8 +383,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64/0.17.10: - resolution: {integrity: sha512-oP+zFUjYNaMNmjTwlFtWep85hvwUu19cZklB3QsBOcZSs6y7hmH4LNCJ7075bsqzYaNvZFXJlAVaQ2ApITDXtw==} + /@esbuild/win32-x64/0.17.14: + resolution: {integrity: sha512-gPQmsi2DKTaEgG14hc3CHXHp62k8g6qr0Pas+I4lUxRMugGSATh/Bi8Dgusoz9IQ0IfdrvLpco6kujEIBoaogA==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -426,7 +426,7 @@ packages: fastq: 1.15.0 dev: true - /@trivago/prettier-plugin-sort-imports/4.1.1_prettier@2.8.4: + /@trivago/prettier-plugin-sort-imports/4.1.1_prettier@2.8.7: resolution: {integrity: sha512-dQ2r2uzNr1x6pJsuh/8x0IRA3CBUB+pWEW3J/7N98axqt7SQSm+2fy0FLNXvXGg77xEDC7KHxJlHfLYyi7PDcw==} peerDependencies: '@vue/compiler-sfc': 3.x @@ -436,12 +436,12 @@ packages: optional: true dependencies: '@babel/generator': 7.17.7 - '@babel/parser': 7.21.2 + '@babel/parser': 7.21.3 '@babel/traverse': 7.17.3 '@babel/types': 7.17.0 javascript-natural-sort: 0.7.1 lodash: 4.17.21 - prettier: 2.8.4 + prettier: 2.8.7 transitivePeerDependencies: - supports-color dev: true @@ -450,8 +450,8 @@ packages: resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} dev: true - /@types/node/18.15.3: - resolution: {integrity: sha512-p6ua9zBxz5otCmbpb5D3U4B5Nanw6Pk3PPyX05xnxbB/fRv71N7CPmORg7uAD5P70T0xmx1pzAx/FUfa5X+3cw==} + /@types/node/18.15.10: + resolution: {integrity: sha512-9avDaQJczATcXgfmMAW3MIWArOO7A+m90vuCFLr8AotWf8igO/mRoYukrk2cqZVtv38tHs33retzHEilM7FpeQ==} dev: true /@types/normalize-package-data/2.4.1: @@ -546,6 +546,13 @@ packages: picomatch: 2.3.1 dev: true + /array-buffer-byte-length/1.0.0: + resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==} + dependencies: + call-bind: 1.0.2 + is-array-buffer: 3.0.2 + dev: true + /array-union/2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} @@ -591,7 +598,7 @@ packages: dependencies: buffer: 6.0.3 inherits: 2.0.4 - readable-stream: 3.6.0 + readable-stream: 3.6.2 dev: true /brace-expansion/1.1.11: @@ -625,14 +632,14 @@ packages: ieee754: 1.2.1 dev: true - /bundle-require/4.0.1_esbuild@0.17.10: + /bundle-require/4.0.1_esbuild@0.17.14: resolution: {integrity: sha512-9NQkRHlNdNpDBGmLpngF3EFDcwodhMUuLz9PaWYciVcQF9SE4LFjM2DB/xV1Li5JiuDMv7ZUWuC3rGbqR0MAXQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} peerDependencies: esbuild: '>=0.17' dependencies: - esbuild: 0.17.10 - load-tsconfig: 0.2.3 + esbuild: 0.17.14 + load-tsconfig: 0.2.5 dev: true /cac/6.7.14: @@ -860,8 +867,8 @@ packages: clone: 1.0.4 dev: true - /define-properties/1.1.4: - resolution: {integrity: sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==} + /define-properties/1.2.0: + resolution: {integrity: sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==} engines: {node: '>= 0.4'} dependencies: has-property-descriptors: 1.0.0 @@ -882,7 +889,7 @@ packages: engines: {node: '>=14.16'} dependencies: globby: 13.1.3 - graceful-fs: 4.2.10 + graceful-fs: 4.2.11 is-glob: 4.0.3 is-path-cwd: 3.0.0 is-path-inside: 4.0.0 @@ -943,15 +950,15 @@ packages: dependencies: is-arrayish: 0.2.1 - /es-abstract/1.21.1: - resolution: {integrity: sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==} + /es-abstract/1.21.2: + resolution: {integrity: sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==} engines: {node: '>= 0.4'} dependencies: + array-buffer-byte-length: 1.0.0 available-typed-arrays: 1.0.5 call-bind: 1.0.2 es-set-tostringtag: 2.0.1 es-to-primitive: 1.2.1 - function-bind: 1.1.1 function.prototype.name: 1.1.5 get-intrinsic: 1.2.0 get-symbol-description: 1.0.0 @@ -961,8 +968,8 @@ packages: has-property-descriptors: 1.0.0 has-proto: 1.0.1 has-symbols: 1.0.3 - internal-slot: 1.0.4 - is-array-buffer: 3.0.1 + internal-slot: 1.0.5 + is-array-buffer: 3.0.2 is-callable: 1.2.7 is-negative-zero: 2.0.2 is-regex: 1.1.4 @@ -975,6 +982,7 @@ packages: object.assign: 4.1.4 regexp.prototype.flags: 1.4.3 safe-regex-test: 1.0.0 + string.prototype.trim: 1.2.7 string.prototype.trimend: 1.0.6 string.prototype.trimstart: 1.0.6 typed-array-length: 1.0.4 @@ -1000,34 +1008,34 @@ packages: is-symbol: 1.0.4 dev: true - /esbuild/0.17.10: - resolution: {integrity: sha512-n7V3v29IuZy5qgxx25TKJrEm0FHghAlS6QweUcyIgh/U0zYmQcvogWROitrTyZId1mHSkuhhuyEXtI9OXioq7A==} + /esbuild/0.17.14: + resolution: {integrity: sha512-vOO5XhmVj/1XQR9NQ1UPq6qvMYL7QFJU57J5fKBKBKxp17uDt5PgxFDb4A2nEiXhr1qQs4x0F5+66hVVw4ruNw==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.17.10 - '@esbuild/android-arm64': 0.17.10 - '@esbuild/android-x64': 0.17.10 - '@esbuild/darwin-arm64': 0.17.10 - '@esbuild/darwin-x64': 0.17.10 - '@esbuild/freebsd-arm64': 0.17.10 - '@esbuild/freebsd-x64': 0.17.10 - '@esbuild/linux-arm': 0.17.10 - '@esbuild/linux-arm64': 0.17.10 - '@esbuild/linux-ia32': 0.17.10 - '@esbuild/linux-loong64': 0.17.10 - '@esbuild/linux-mips64el': 0.17.10 - '@esbuild/linux-ppc64': 0.17.10 - '@esbuild/linux-riscv64': 0.17.10 - '@esbuild/linux-s390x': 0.17.10 - '@esbuild/linux-x64': 0.17.10 - '@esbuild/netbsd-x64': 0.17.10 - '@esbuild/openbsd-x64': 0.17.10 - '@esbuild/sunos-x64': 0.17.10 - '@esbuild/win32-arm64': 0.17.10 - '@esbuild/win32-ia32': 0.17.10 - '@esbuild/win32-x64': 0.17.10 + '@esbuild/android-arm': 0.17.14 + '@esbuild/android-arm64': 0.17.14 + '@esbuild/android-x64': 0.17.14 + '@esbuild/darwin-arm64': 0.17.14 + '@esbuild/darwin-x64': 0.17.14 + '@esbuild/freebsd-arm64': 0.17.14 + '@esbuild/freebsd-x64': 0.17.14 + '@esbuild/linux-arm': 0.17.14 + '@esbuild/linux-arm64': 0.17.14 + '@esbuild/linux-ia32': 0.17.14 + '@esbuild/linux-loong64': 0.17.14 + '@esbuild/linux-mips64el': 0.17.14 + '@esbuild/linux-ppc64': 0.17.14 + '@esbuild/linux-riscv64': 0.17.14 + '@esbuild/linux-s390x': 0.17.14 + '@esbuild/linux-x64': 0.17.14 + '@esbuild/netbsd-x64': 0.17.14 + '@esbuild/openbsd-x64': 0.17.14 + '@esbuild/sunos-x64': 0.17.14 + '@esbuild/win32-arm64': 0.17.14 + '@esbuild/win32-ia32': 0.17.14 + '@esbuild/win32-x64': 0.17.14 dev: true /escape-string-regexp/1.0.5: @@ -1059,13 +1067,13 @@ packages: strip-final-newline: 2.0.0 dev: true - /execa/7.0.0: - resolution: {integrity: sha512-tQbH0pH/8LHTnwTrsKWideqi6rFB/QNUawEwrn+WHyz7PX1Tuz2u7wfTvbaNBdP5JD5LVWxNo8/A8CHNZ3bV6g==} + /execa/7.1.1: + resolution: {integrity: sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q==} engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0} dependencies: cross-spawn: 7.0.3 get-stream: 6.0.1 - human-signals: 4.3.0 + human-signals: 4.3.1 is-stream: 3.0.0 merge-stream: 2.0.0 npm-run-path: 5.1.0 @@ -1144,8 +1152,8 @@ packages: engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.2 - define-properties: 1.1.4 - es-abstract: 1.21.1 + define-properties: 1.2.0 + es-abstract: 1.21.2 functions-have-names: 1.2.3 dev: true @@ -1174,8 +1182,8 @@ packages: get-intrinsic: 1.2.0 dev: true - /get-tsconfig/4.4.0: - resolution: {integrity: sha512-0Gdjo/9+FzsYhXCEFueo2aY1z1tpXrxWZzP7k8ul9qt1U5o8rYJwTJYmaeHdrVosYIVYkOy2iwCJ9FdpocJhPQ==} + /get-tsconfig/4.5.0: + resolution: {integrity: sha512-MjhiaIWCJ1sAU4pIQ5i5OfOuHHxVo1oYeNsWTON7jxYkod8pHocXeh+SSbmu5OZZZK73B6cbJ2XADzXehLyovQ==} dev: true /glob-parent/5.1.2: @@ -1216,7 +1224,7 @@ packages: resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} engines: {node: '>= 0.4'} dependencies: - define-properties: 1.1.4 + define-properties: 1.2.0 dev: true /globby/11.1.0: @@ -1248,8 +1256,8 @@ packages: get-intrinsic: 1.2.0 dev: true - /graceful-fs/4.2.10: - resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} + /graceful-fs/4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} dev: true /handlebars/4.7.7: @@ -1257,7 +1265,7 @@ packages: engines: {node: '>=0.4.7'} hasBin: true dependencies: - minimist: 1.2.7 + minimist: 1.2.8 neo-async: 2.6.2 source-map: 0.6.1 wordwrap: 1.0.0 @@ -1322,8 +1330,8 @@ packages: engines: {node: '>=10.17.0'} dev: true - /human-signals/4.3.0: - resolution: {integrity: sha512-zyzVyMjpGBX2+6cDVZeFPCdtOtdsxOeseRhB9tkQ6xXmGUNrcnBzdEKPy3VPNYz+4gy1oukVOXcrJCunSyc6QQ==} + /human-signals/4.3.1: + resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==} engines: {node: '>=14.18.0'} dev: true @@ -1363,8 +1371,8 @@ packages: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} dev: true - /internal-slot/1.0.4: - resolution: {integrity: sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==} + /internal-slot/1.0.5: + resolution: {integrity: sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==} engines: {node: '>= 0.4'} dependencies: get-intrinsic: 1.2.0 @@ -1389,8 +1397,8 @@ packages: - supports-color dev: true - /is-array-buffer/3.0.1: - resolution: {integrity: sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==} + /is-array-buffer/3.0.2: + resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==} dependencies: call-bind: 1.0.2 get-intrinsic: 1.2.0 @@ -1630,9 +1638,9 @@ packages: cli-truncate: 3.1.0 commander: 10.0.0 debug: 4.3.4 - execa: 7.0.0 + execa: 7.1.1 lilconfig: 2.1.0 - listr2: 5.0.7 + listr2: 5.0.8 micromatch: 4.0.5 normalize-path: 3.0.0 object-inspect: 1.12.3 @@ -1644,8 +1652,8 @@ packages: - supports-color dev: true - /listr2/5.0.7: - resolution: {integrity: sha512-MD+qXHPmtivrHIDRwPYdfNkrzqDiuaKU/rfBcec3WMyMF3xylQj3jMq344OtvQxz7zaCFViRAeqlr2AFhPvXHw==} + /listr2/5.0.8: + resolution: {integrity: sha512-mC73LitKHj9w6v30nLNGPetZIlfpUniNSsxxrbaPcWOjDb92SHPzJPi/t+v1YC/lxKz/AJ9egOjww0qUuFxBpA==} engines: {node: ^14.13.1 || >=16.0.0} peerDependencies: enquirer: '>= 2.3.0 < 3' @@ -1667,14 +1675,14 @@ packages: resolution: {integrity: sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==} engines: {node: '>=4'} dependencies: - graceful-fs: 4.2.10 + graceful-fs: 4.2.11 parse-json: 4.0.0 pify: 3.0.0 strip-bom: 3.0.0 dev: true - /load-tsconfig/0.2.3: - resolution: {integrity: sha512-iyT2MXws+dc2Wi6o3grCFtGXpeMvHmJqS27sMPGtV2eUu4PeFnG+33I8BlFK1t1NWMjOpcx9bridn5yxLDX2gQ==} + /load-tsconfig/0.2.5: + resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dev: true @@ -1746,8 +1754,8 @@ packages: engines: {node: '>=8'} dev: true - /marked/4.2.12: - resolution: {integrity: sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==} + /marked/4.3.0: + resolution: {integrity: sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==} engines: {node: '>= 12'} hasBin: true dev: true @@ -1770,7 +1778,7 @@ packages: normalize-package-data: 3.0.3 read-pkg-up: 8.0.0 redent: 4.0.0 - trim-newlines: 4.0.2 + trim-newlines: 4.1.1 type-fest: 1.4.0 yargs-parser: 20.2.9 dev: true @@ -1812,8 +1820,8 @@ packages: brace-expansion: 1.1.11 dev: true - /minimatch/7.4.2: - resolution: {integrity: sha512-xy4q7wou3vUoC9k1xGTXc+awNdGaGVHtFUaey8tiX4H1QRc04DZ/rmDFwNm2EBsuYEhAZ6SgMmYf3InGY6OauA==} + /minimatch/7.4.3: + resolution: {integrity: sha512-5UB4yYusDtkRPbRiy1cqZ1IpGNcJCGlEMG17RKzPddpyiPKoCdwohbED8g4QXT0ewCt8LTkQXuljsUfQ3FKM4A==} engines: {node: '>=10'} dependencies: brace-expansion: 2.0.1 @@ -1828,8 +1836,8 @@ packages: kind-of: 6.0.3 dev: true - /minimist/1.2.7: - resolution: {integrity: sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==} + /minimist/1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} dev: true /ms/2.1.2: @@ -1924,7 +1932,7 @@ packages: engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.2 - define-properties: 1.1.4 + define-properties: 1.2.0 has-symbols: 1.0.3 object-keys: 1.1.1 dev: true @@ -1949,17 +1957,17 @@ packages: mimic-fn: 4.0.0 dev: true - /ora/6.1.2: - resolution: {integrity: sha512-EJQ3NiP5Xo94wJXIzAyOtSb0QEIAUu7m8t6UZ9krbz0vAJqr92JpcK/lEXg91q6B9pEGqrykkd2EQplnifDSBw==} + /ora/6.3.0: + resolution: {integrity: sha512-1/D8uRFY0ay2kgBpmAwmSA404w4OoPVhHMqRqtjvrcK/dnzcEZxMJ+V4DUbyICu8IIVRclHcOf5wlD1tMY4GUQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: - bl: 5.1.0 chalk: 5.2.0 cli-cursor: 4.0.0 cli-spinners: 2.7.0 is-interactive: 2.0.0 is-unicode-supported: 1.3.0 log-symbols: 5.1.0 + stdin-discarder: 0.1.0 strip-ansi: 7.0.1 wcwidth: 1.0.1 dev: true @@ -2117,8 +2125,8 @@ packages: yaml: 1.10.2 dev: true - /prettier/2.8.4: - resolution: {integrity: sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==} + /prettier/2.8.7: + resolution: {integrity: sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==} engines: {node: '>=10.13.0'} hasBin: true dev: true @@ -2188,8 +2196,8 @@ packages: type-fest: 2.19.0 dev: false - /readable-stream/3.6.0: - resolution: {integrity: sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==} + /readable-stream/3.6.2: + resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} engines: {node: '>= 6'} dependencies: inherits: 2.0.4 @@ -2229,7 +2237,7 @@ packages: engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.2 - define-properties: 1.1.4 + define-properties: 1.2.0 functions-have-names: 1.2.3 dev: true @@ -2284,8 +2292,8 @@ packages: glob: 7.2.3 dev: true - /rollup/3.18.0: - resolution: {integrity: sha512-J8C6VfEBjkvYPESMQYxKHxNOh4A5a3FlP+0BETGo34HEcE4eTlgCrO2+eWzlu2a/sHs2QUkZco+wscH7jhhgWg==} + /rollup/3.20.2: + resolution: {integrity: sha512-3zwkBQl7Ai7MFYQE0y1MeQ15+9jsi7XxfrqwTb/9EK8D9C9+//EBR4M+CuA1KODRaNbFez/lWxA5vhEGZp4MUg==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true optionalDependencies: @@ -2437,11 +2445,11 @@ packages: whatwg-url: 7.1.0 dev: true - /spdx-correct/3.1.1: - resolution: {integrity: sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==} + /spdx-correct/3.2.0: + resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} dependencies: spdx-expression-parse: 3.0.1 - spdx-license-ids: 3.0.12 + spdx-license-ids: 3.0.13 /spdx-exceptions/2.3.0: resolution: {integrity: sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==} @@ -2450,15 +2458,22 @@ packages: resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} dependencies: spdx-exceptions: 2.3.0 - spdx-license-ids: 3.0.12 + spdx-license-ids: 3.0.13 - /spdx-license-ids/3.0.12: - resolution: {integrity: sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==} + /spdx-license-ids/3.0.13: + resolution: {integrity: sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==} /standard-as-callback/2.1.0: resolution: {integrity: sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==} dev: true + /stdin-discarder/0.1.0: + resolution: {integrity: sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + bl: 5.1.0 + dev: true + /string-argv/0.3.1: resolution: {integrity: sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==} engines: {node: '>=0.6.19'} @@ -2487,24 +2502,33 @@ packages: engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.2 - define-properties: 1.1.4 - es-abstract: 1.21.1 + define-properties: 1.2.0 + es-abstract: 1.21.2 + dev: true + + /string.prototype.trim/1.2.7: + resolution: {integrity: sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.21.2 dev: true /string.prototype.trimend/1.0.6: resolution: {integrity: sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==} dependencies: call-bind: 1.0.2 - define-properties: 1.1.4 - es-abstract: 1.21.1 + define-properties: 1.2.0 + es-abstract: 1.21.2 dev: true /string.prototype.trimstart/1.0.6: resolution: {integrity: sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==} dependencies: call-bind: 1.0.2 - define-properties: 1.1.4 - es-abstract: 1.21.1 + define-properties: 1.2.0 + es-abstract: 1.21.2 dev: true /string_decoder/1.3.0: @@ -2553,8 +2577,8 @@ packages: resolution: {integrity: sha512-KRa4nIRJ8q6uApQbPwYZVhOof8979fw4xbajBWa5kPJFa4nyY3aFaMWVyIVCDnkNCCG/3HLipUZ4QaNlYsmX1w==} dev: false - /sucrase/3.29.0: - resolution: {integrity: sha512-bZPAuGA5SdFHuzqIhTAqt9fvNEo9rESqXIG3oiKdF8K4UmkQxC4KlNL3lVyAErXp+mPvUqZ5l13qx6TrDIGf3A==} + /sucrase/3.31.0: + resolution: {integrity: sha512-6QsHnkqyVEzYcaiHsOKkzOtOgdJcb8i54x6AV2hDwyZcY9ZyykGZVw6L/YN98xC0evwTP6utsWWrKRaa8QlfEQ==} engines: {node: '>=8'} hasBin: true dependencies: @@ -2617,8 +2641,8 @@ packages: hasBin: true dev: true - /trim-newlines/4.0.2: - resolution: {integrity: sha512-GJtWyq9InR/2HRiLZgpIKv+ufIKrVrvjQWEj7PxAXNc5dwbNJkqhAUoAGgzRmULAnoOM5EIpveYd3J2VeSAIew==} + /trim-newlines/4.1.1: + resolution: {integrity: sha512-jRKj0n0jXWo6kh62nA5TEh3+4igKDXLvzBJcPpiizP7oOolUrYIxmVBG9TOtHYFHoddUk6YvAkGeGoSVTXfQXQ==} engines: {node: '>=12'} dev: true @@ -2630,14 +2654,14 @@ packages: resolution: {integrity: sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==} dev: true - /tsup/6.6.3_typescript@4.9.5: - resolution: {integrity: sha512-OLx/jFllYlVeZQ7sCHBuRVEQBBa1tFbouoc/gbYakyipjVQdWy/iQOvmExUA/ewap9iQ7tbJf9pW0PgcEFfJcQ==} + /tsup/6.7.0_typescript@4.9.5: + resolution: {integrity: sha512-L3o8hGkaHnu5TdJns+mCqFsDBo83bJ44rlK7e6VdanIvpea4ArPcU3swWGsLVbXak1PqQx/V+SSmFPujBK+zEQ==} engines: {node: '>=14.18'} hasBin: true peerDependencies: '@swc/core': ^1 postcss: ^8.4.12 - typescript: ^4.1.0 + typescript: '>=4.1.0' peerDependenciesMeta: '@swc/core': optional: true @@ -2646,19 +2670,19 @@ packages: typescript: optional: true dependencies: - bundle-require: 4.0.1_esbuild@0.17.10 + bundle-require: 4.0.1_esbuild@0.17.14 cac: 6.7.14 chokidar: 3.5.3 debug: 4.3.4 - esbuild: 0.17.10 + esbuild: 0.17.14 execa: 5.1.1 globby: 11.1.0 joycon: 3.1.1 postcss-load-config: 3.1.4 resolve-from: 5.0.0 - rollup: 3.18.0 + rollup: 3.20.2 source-map: 0.8.0-beta.0 - sucrase: 3.29.0 + sucrase: 3.31.0 tree-kill: 1.2.2 typescript: 4.9.5 transitivePeerDependencies: @@ -2666,8 +2690,8 @@ packages: - ts-node dev: true - /tsx/3.12.5: - resolution: {integrity: sha512-/TLj30xF1zcN9JkoFCyROtIQUi8cRQG+AFchsg5YkWou3+RXxTZS/ffWB3nCxyZPoBqF2+8ohs07N815dNb1wQ==} + /tsx/3.12.6: + resolution: {integrity: sha512-q93WgS3lBdHlPgS0h1i+87Pt6n9K/qULIMNYZo07nSeu2z5QE2CellcAZfofVXBo2tQg9av2ZcRMQ2S2i5oadQ==} hasBin: true dependencies: '@esbuild-kit/cjs-loader': 2.4.2 @@ -2700,25 +2724,25 @@ packages: is-typed-array: 1.1.10 dev: true - /typedoc-plugin-markdown/3.14.0_typedoc@0.23.27: + /typedoc-plugin-markdown/3.14.0_typedoc@0.23.28: resolution: {integrity: sha512-UyQLkLRkfTFhLdhSf3RRpA3nNInGn+k6sll2vRXjflaMNwQAAiB61SYbisNZTg16t4K1dt1bPQMMGLrxS0GZ0Q==} peerDependencies: typedoc: '>=0.23.0' dependencies: handlebars: 4.7.7 - typedoc: 0.23.27_typescript@4.9.5 + typedoc: 0.23.28_typescript@4.9.5 dev: true - /typedoc/0.23.27_typescript@4.9.5: - resolution: {integrity: sha512-YKjlxX3LEhYbMCkemjlpNh1OKDiFa+ynqP0VRPsH28bEugrMTGI6l8DC6oX5kzFcUKKlYWKpZDSGWszuO/FR3g==} + /typedoc/0.23.28_typescript@4.9.5: + resolution: {integrity: sha512-9x1+hZWTHEQcGoP7qFmlo4unUoVJLB0H/8vfO/7wqTnZxg4kPuji9y3uRzEu0ZKez63OJAUmiGhUrtukC6Uj3w==} engines: {node: '>= 14.14'} hasBin: true peerDependencies: - typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x + typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x dependencies: lunr: 2.3.9 - marked: 4.2.12 - minimatch: 7.4.2 + marked: 4.3.0 + minimatch: 7.4.3 shiki: 0.14.1 typescript: 4.9.5 dev: true @@ -2764,7 +2788,7 @@ packages: /validate-npm-package-license/3.0.4: resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} dependencies: - spdx-correct: 3.1.1 + spdx-correct: 3.2.0 spdx-expression-parse: 3.0.1 /vscode-oniguruma/1.7.0: From 5f239e53bb2f4fb7585fb7a176742c49e5e08064 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Mon, 27 Mar 2023 22:13:37 -0500 Subject: [PATCH 07/21] chore: update ts docs --- docs/classes/ChatGPTAPI.md | 8 ++--- docs/classes/ChatGPTError.md | 8 ++--- docs/classes/ChatGPTUnofficialProxyAPI.md | 8 ++--- docs/interfaces/ChatMessage.md | 16 ++++----- .../openai.ChatCompletionRequestMessage.md | 6 ++-- .../openai.ChatCompletionResponseMessage.md | 4 +-- ...penai.CreateChatCompletionDeltaResponse.md | 10 +++--- .../openai.CreateChatCompletionRequest.md | 24 ++++++------- .../openai.CreateChatCompletionResponse.md | 12 +++---- ...reateChatCompletionResponseChoicesInner.md | 6 ++-- .../openai.CreateCompletionResponseUsage.md | 6 ++-- docs/modules.md | 35 ++++++++++--------- docs/modules/openai.md | 18 +++++----- docs/readme.md | 10 ++++-- 14 files changed, 89 insertions(+), 82 deletions(-) diff --git a/docs/classes/ChatGPTAPI.md b/docs/classes/ChatGPTAPI.md index 9224ed46..9f8c8018 100644 --- a/docs/classes/ChatGPTAPI.md +++ b/docs/classes/ChatGPTAPI.md @@ -32,7 +32,7 @@ Creates a new client wrapper around OpenAI's chat completion API, mimicing the o #### Defined in -[src/chatgpt-api.ts:49](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/chatgpt-api.ts#L49) +[src/chatgpt-api.ts:49](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/chatgpt-api.ts#L49) ## Accessors @@ -46,7 +46,7 @@ Creates a new client wrapper around OpenAI's chat completion API, mimicing the o #### Defined in -[src/chatgpt-api.ts:308](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/chatgpt-api.ts#L308) +[src/chatgpt-api.ts:311](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/chatgpt-api.ts#L311) • `set` **apiKey**(`apiKey`): `void` @@ -62,7 +62,7 @@ Creates a new client wrapper around OpenAI's chat completion API, mimicing the o #### Defined in -[src/chatgpt-api.ts:312](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/chatgpt-api.ts#L312) +[src/chatgpt-api.ts:315](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/chatgpt-api.ts#L315) ## Methods @@ -94,4 +94,4 @@ The response from ChatGPT #### Defined in -[src/chatgpt-api.ts:131](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/chatgpt-api.ts#L131) +[src/chatgpt-api.ts:132](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/chatgpt-api.ts#L132) diff --git a/docs/classes/ChatGPTError.md b/docs/classes/ChatGPTError.md index 7b026847..3796bc95 100644 --- a/docs/classes/ChatGPTError.md +++ b/docs/classes/ChatGPTError.md @@ -66,7 +66,7 @@ node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib/lib.es2022.error #### Defined in -[src/types.ts:77](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L77) +[src/types.ts:80](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L80) ___ @@ -76,7 +76,7 @@ ___ #### Defined in -[src/types.ts:76](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L76) +[src/types.ts:79](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L79) ___ @@ -86,7 +86,7 @@ ___ #### Defined in -[src/types.ts:74](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L74) +[src/types.ts:77](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L77) ___ @@ -96,4 +96,4 @@ ___ #### Defined in -[src/types.ts:75](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L75) +[src/types.ts:78](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L78) diff --git a/docs/classes/ChatGPTUnofficialProxyAPI.md b/docs/classes/ChatGPTUnofficialProxyAPI.md index eea3ec08..20574ecb 100644 --- a/docs/classes/ChatGPTUnofficialProxyAPI.md +++ b/docs/classes/ChatGPTUnofficialProxyAPI.md @@ -36,7 +36,7 @@ #### Defined in -[src/chatgpt-unofficial-proxy-api.ts:20](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/chatgpt-unofficial-proxy-api.ts#L20) +[src/chatgpt-unofficial-proxy-api.ts:20](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/chatgpt-unofficial-proxy-api.ts#L20) ## Accessors @@ -50,7 +50,7 @@ #### Defined in -[src/chatgpt-unofficial-proxy-api.ts:66](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/chatgpt-unofficial-proxy-api.ts#L66) +[src/chatgpt-unofficial-proxy-api.ts:66](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/chatgpt-unofficial-proxy-api.ts#L66) • `set` **accessToken**(`value`): `void` @@ -66,7 +66,7 @@ #### Defined in -[src/chatgpt-unofficial-proxy-api.ts:70](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/chatgpt-unofficial-proxy-api.ts#L70) +[src/chatgpt-unofficial-proxy-api.ts:70](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/chatgpt-unofficial-proxy-api.ts#L70) ## Methods @@ -101,4 +101,4 @@ The response from ChatGPT #### Defined in -[src/chatgpt-unofficial-proxy-api.ts:97](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/chatgpt-unofficial-proxy-api.ts#L97) +[src/chatgpt-unofficial-proxy-api.ts:97](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/chatgpt-unofficial-proxy-api.ts#L97) diff --git a/docs/interfaces/ChatMessage.md b/docs/interfaces/ChatMessage.md index 1b0958f0..6d5215d2 100644 --- a/docs/interfaces/ChatMessage.md +++ b/docs/interfaces/ChatMessage.md @@ -23,7 +23,7 @@ #### Defined in -[src/types.ts:70](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L70) +[src/types.ts:73](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L73) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[src/types.ts:64](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L64) +[src/types.ts:67](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L67) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[src/types.ts:65](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L65) +[src/types.ts:68](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L68) ___ @@ -53,7 +53,7 @@ ___ #### Defined in -[src/types.ts:60](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L60) +[src/types.ts:63](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L63) ___ @@ -63,7 +63,7 @@ ___ #### Defined in -[src/types.ts:63](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L63) +[src/types.ts:66](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L66) ___ @@ -73,7 +73,7 @@ ___ #### Defined in -[src/types.ts:68](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L68) +[src/types.ts:71](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L71) ___ @@ -83,7 +83,7 @@ ___ #### Defined in -[src/types.ts:62](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L62) +[src/types.ts:65](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L65) ___ @@ -93,4 +93,4 @@ ___ #### Defined in -[src/types.ts:61](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L61) +[src/types.ts:64](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L64) diff --git a/docs/interfaces/openai.ChatCompletionRequestMessage.md b/docs/interfaces/openai.ChatCompletionRequestMessage.md index 991abb07..55ee0416 100644 --- a/docs/interfaces/openai.ChatCompletionRequestMessage.md +++ b/docs/interfaces/openai.ChatCompletionRequestMessage.md @@ -32,7 +32,7 @@ ChatCompletionRequestMessage #### Defined in -[src/types.ts:208](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L208) +[src/types.ts:211](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L211) ___ @@ -48,7 +48,7 @@ ChatCompletionRequestMessage #### Defined in -[src/types.ts:214](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L214) +[src/types.ts:217](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L217) ___ @@ -64,4 +64,4 @@ ChatCompletionRequestMessage #### Defined in -[src/types.ts:202](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L202) +[src/types.ts:205](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L205) diff --git a/docs/interfaces/openai.ChatCompletionResponseMessage.md b/docs/interfaces/openai.ChatCompletionResponseMessage.md index 4ec64450..16bddd0d 100644 --- a/docs/interfaces/openai.ChatCompletionResponseMessage.md +++ b/docs/interfaces/openai.ChatCompletionResponseMessage.md @@ -31,7 +31,7 @@ ChatCompletionResponseMessage #### Defined in -[src/types.ts:240](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L240) +[src/types.ts:243](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L243) ___ @@ -47,4 +47,4 @@ ChatCompletionResponseMessage #### Defined in -[src/types.ts:234](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L234) +[src/types.ts:237](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L237) diff --git a/docs/interfaces/openai.CreateChatCompletionDeltaResponse.md b/docs/interfaces/openai.CreateChatCompletionDeltaResponse.md index a351be24..0f2c3f16 100644 --- a/docs/interfaces/openai.CreateChatCompletionDeltaResponse.md +++ b/docs/interfaces/openai.CreateChatCompletionDeltaResponse.md @@ -22,7 +22,7 @@ #### Defined in -[src/types.ts:179](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L179) +[src/types.ts:182](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L182) ___ @@ -32,7 +32,7 @@ ___ #### Defined in -[src/types.ts:177](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L177) +[src/types.ts:180](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L180) ___ @@ -42,7 +42,7 @@ ___ #### Defined in -[src/types.ts:175](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L175) +[src/types.ts:178](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L178) ___ @@ -52,7 +52,7 @@ ___ #### Defined in -[src/types.ts:178](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L178) +[src/types.ts:181](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L181) ___ @@ -62,4 +62,4 @@ ___ #### Defined in -[src/types.ts:176](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L176) +[src/types.ts:179](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L179) diff --git a/docs/interfaces/openai.CreateChatCompletionRequest.md b/docs/interfaces/openai.CreateChatCompletionRequest.md index 9c3899b1..533eea88 100644 --- a/docs/interfaces/openai.CreateChatCompletionRequest.md +++ b/docs/interfaces/openai.CreateChatCompletionRequest.md @@ -41,7 +41,7 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:314](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L314) +[src/types.ts:317](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L317) ___ @@ -57,7 +57,7 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:320](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L320) +[src/types.ts:323](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L323) ___ @@ -73,7 +73,7 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:302](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L302) +[src/types.ts:305](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L305) ___ @@ -89,7 +89,7 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:266](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L266) +[src/types.ts:269](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L269) ___ @@ -105,7 +105,7 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:260](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L260) +[src/types.ts:263](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L263) ___ @@ -121,7 +121,7 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:284](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L284) +[src/types.ts:287](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L287) ___ @@ -137,7 +137,7 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:308](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L308) +[src/types.ts:311](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L311) ___ @@ -151,7 +151,7 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:296](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L296) +[src/types.ts:299](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L299) ___ @@ -167,7 +167,7 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:290](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L290) +[src/types.ts:293](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L293) ___ @@ -183,7 +183,7 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:272](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L272) +[src/types.ts:275](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L275) ___ @@ -199,7 +199,7 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:278](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L278) +[src/types.ts:281](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L281) ___ @@ -215,4 +215,4 @@ CreateChatCompletionRequest #### Defined in -[src/types.ts:326](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L326) +[src/types.ts:329](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L329) diff --git a/docs/interfaces/openai.CreateChatCompletionResponse.md b/docs/interfaces/openai.CreateChatCompletionResponse.md index 7f57dcf6..7edce91b 100644 --- a/docs/interfaces/openai.CreateChatCompletionResponse.md +++ b/docs/interfaces/openai.CreateChatCompletionResponse.md @@ -33,7 +33,7 @@ CreateChatCompletionResponse #### Defined in -[src/types.ts:369](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L369) +[src/types.ts:372](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L372) ___ @@ -47,7 +47,7 @@ CreateChatCompletionResponse #### Defined in -[src/types.ts:357](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L357) +[src/types.ts:360](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L360) ___ @@ -61,7 +61,7 @@ CreateChatCompletionResponse #### Defined in -[src/types.ts:345](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L345) +[src/types.ts:348](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L348) ___ @@ -75,7 +75,7 @@ CreateChatCompletionResponse #### Defined in -[src/types.ts:363](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L363) +[src/types.ts:366](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L366) ___ @@ -89,7 +89,7 @@ CreateChatCompletionResponse #### Defined in -[src/types.ts:351](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L351) +[src/types.ts:354](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L354) ___ @@ -103,4 +103,4 @@ CreateChatCompletionResponse #### Defined in -[src/types.ts:375](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L375) +[src/types.ts:378](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L378) diff --git a/docs/interfaces/openai.CreateChatCompletionResponseChoicesInner.md b/docs/interfaces/openai.CreateChatCompletionResponseChoicesInner.md index 3e3909fa..e2ccb3df 100644 --- a/docs/interfaces/openai.CreateChatCompletionResponseChoicesInner.md +++ b/docs/interfaces/openai.CreateChatCompletionResponseChoicesInner.md @@ -30,7 +30,7 @@ CreateChatCompletionResponseChoicesInner #### Defined in -[src/types.ts:400](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L400) +[src/types.ts:403](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L403) ___ @@ -44,7 +44,7 @@ CreateChatCompletionResponseChoicesInner #### Defined in -[src/types.ts:388](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L388) +[src/types.ts:391](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L391) ___ @@ -58,4 +58,4 @@ CreateChatCompletionResponseChoicesInner #### Defined in -[src/types.ts:394](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L394) +[src/types.ts:397](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L397) diff --git a/docs/interfaces/openai.CreateCompletionResponseUsage.md b/docs/interfaces/openai.CreateCompletionResponseUsage.md index 2d1f7f3f..31816ed5 100644 --- a/docs/interfaces/openai.CreateCompletionResponseUsage.md +++ b/docs/interfaces/openai.CreateCompletionResponseUsage.md @@ -30,7 +30,7 @@ CreateCompletionResponseUsage #### Defined in -[src/types.ts:419](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L419) +[src/types.ts:422](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L422) ___ @@ -44,7 +44,7 @@ CreateCompletionResponseUsage #### Defined in -[src/types.ts:413](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L413) +[src/types.ts:416](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L416) ___ @@ -58,4 +58,4 @@ CreateCompletionResponseUsage #### Defined in -[src/types.ts:425](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L425) +[src/types.ts:428](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L428) diff --git a/docs/modules.md b/docs/modules.md index ff7d3479..b49f1e8d 100644 --- a/docs/modules.md +++ b/docs/modules.md @@ -49,7 +49,7 @@ | :------ | :------ | :------ | | `apiBaseUrl?` | `string` | **`Default Value`** `'https://api.openai.com'` * | | `apiKey` | `string` | - | -| `completionParams?` | `Partial`<`Omit`<[`CreateChatCompletionRequest`](interfaces/openai.CreateChatCompletionRequest.md), ``"messages"`` \| ``"n"``\>\> | - | +| `completionParams?` | `Partial`<`Omit`<[`CreateChatCompletionRequest`](interfaces/openai.CreateChatCompletionRequest.md), ``"messages"`` \| ``"n"`` \| ``"stream"``\>\> | - | | `debug?` | `boolean` | **`Default Value`** `false` * | | `fetch?` | [`FetchFn`](modules.md#fetchfn) | - | | `getMessageById?` | [`GetMessageByIdFunction`](modules.md#getmessagebyidfunction) | - | @@ -61,7 +61,7 @@ #### Defined in -[src/types.ts:7](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L7) +[src/types.ts:7](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L7) ___ @@ -71,7 +71,7 @@ ___ #### Defined in -[src/types.ts:133](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L133) +[src/types.ts:136](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L136) ___ @@ -93,7 +93,7 @@ https://chat.openapi.com/backend-api/conversation #### Defined in -[src/types.ts:89](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L89) +[src/types.ts:92](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L92) ___ @@ -111,7 +111,7 @@ ___ #### Defined in -[src/types.ts:147](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L147) +[src/types.ts:150](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L150) ___ @@ -121,7 +121,7 @@ ___ #### Defined in -[src/types.ts:5](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L5) +[src/types.ts:5](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L5) ___ @@ -147,7 +147,7 @@ Returns a chat message from a store by it's ID (or null if not found). #### Defined in -[src/types.ts:81](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L81) +[src/types.ts:84](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L84) ___ @@ -172,7 +172,7 @@ ___ #### Defined in -[src/types.ts:153](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L153) +[src/types.ts:156](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L156) ___ @@ -182,7 +182,7 @@ ___ #### Defined in -[src/types.ts:47](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L47) +[src/types.ts:50](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L50) ___ @@ -199,7 +199,7 @@ ___ #### Defined in -[src/types.ts:166](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L166) +[src/types.ts:169](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L169) ___ @@ -209,7 +209,7 @@ ___ #### Defined in -[src/types.ts:171](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L171) +[src/types.ts:174](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L174) ___ @@ -227,7 +227,7 @@ ___ #### Defined in -[src/types.ts:116](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L116) +[src/types.ts:119](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L119) ___ @@ -244,7 +244,7 @@ ___ #### Defined in -[src/types.ts:135](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L135) +[src/types.ts:138](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L138) ___ @@ -254,7 +254,7 @@ ___ #### Defined in -[src/types.ts:3](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L3) +[src/types.ts:3](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L3) ___ @@ -276,7 +276,7 @@ ___ #### Defined in -[src/types.ts:49](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L49) +[src/types.ts:52](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L52) ___ @@ -289,6 +289,7 @@ ___ | Name | Type | Description | | :------ | :------ | :------ | | `abortSignal?` | `AbortSignal` | - | +| `completionParams?` | `Partial`<`Omit`<[`CreateChatCompletionRequest`](interfaces/openai.CreateChatCompletionRequest.md), ``"messages"`` \| ``"n"`` \| ``"stream"``\>\> | - | | `messageId?` | `string` | - | | `name?` | `string` | The name of a user in a multi-user chat. | | `onProgress?` | (`partialResponse`: [`ChatMessage`](interfaces/ChatMessage.md)) => `void` | - | @@ -299,7 +300,7 @@ ___ #### Defined in -[src/types.ts:35](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L35) +[src/types.ts:35](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L35) ___ @@ -325,4 +326,4 @@ Upserts a chat message to a store. #### Defined in -[src/types.ts:84](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L84) +[src/types.ts:87](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L87) diff --git a/docs/modules/openai.md b/docs/modules/openai.md index c6f56e13..08c0543b 100644 --- a/docs/modules/openai.md +++ b/docs/modules/openai.md @@ -33,9 +33,9 @@ #### Defined in -[src/types.ts:216](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L216) +[src/types.ts:219](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L219) -[src/types.ts:221](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L221) +[src/types.ts:224](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L224) ___ @@ -45,9 +45,9 @@ ___ #### Defined in -[src/types.ts:242](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L242) +[src/types.ts:245](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L245) -[src/types.ts:247](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L247) +[src/types.ts:250](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L250) ___ @@ -59,7 +59,7 @@ ___ #### Defined in -[src/types.ts:333](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L333) +[src/types.ts:336](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L336) ## Variables @@ -77,9 +77,9 @@ ___ #### Defined in -[src/types.ts:216](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L216) +[src/types.ts:219](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L219) -[src/types.ts:221](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L221) +[src/types.ts:224](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L224) ___ @@ -97,6 +97,6 @@ ___ #### Defined in -[src/types.ts:242](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L242) +[src/types.ts:245](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L245) -[src/types.ts:247](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L247) +[src/types.ts:250](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L250) diff --git a/docs/readme.md b/docs/readme.md index e370947a..b0a95499 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -334,8 +334,8 @@ Known reverse proxies run by community members include: | Reverse Proxy URL | Author | Rate Limits | Last Checked | | ------------------------------------------------ | -------------------------------------------- | ----------------- | ------------ | -| `https://bypass.duti.tech/api/conversation` | [@acheong08](https://github.com/acheong08) | 5 req / 10 seconds by IP | 3/11/2023 | -| `https://gpt.pawan.krd/backend-api/conversation` | [@PawanOsman](https://github.com/PawanOsman) | ? | 2/19/2023 | +| `https://bypass.churchless.tech/api/conversation` | [@acheong08](https://github.com/acheong08) | 5 req / 10 seconds by IP | 3/24/2023 | +| `https://api.pawan.krd/backend-api/conversation` | [@PawanOsman](https://github.com/PawanOsman) | 50 req / 15 seconds (~3 r/s) | 3/23/2023 | Note: info on how the reverse proxies work is not being published at this time in order to prevent OpenAI from disabling access. @@ -424,6 +424,7 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [Telegram Bot #2](https://github.com/dawangraoming/chatgpt-telegram-bot) - [Telegram Bot #3](https://github.com/RainEggplant/chatgpt-telegram-bot) (group privacy mode, ID-based auth) - [Telegram Bot #4](https://github.com/ArdaGnsrn/chatgpt-telegram) (queue system, ID-based chat thread) +- [Telegram Bot #5](https://github.com/azoway/chatgpt-telegram-bot) (group privacy mode, ID-based chat thread) - [Deno Telegram Bot](https://github.com/Ciyou/chatbot-telegram) - [Go Telegram Bot](https://github.com/m1guelpf/chatgpt-telegram) - [Telegram Bot for YouTube Summaries](https://github.com/codextde/youtube-summary) @@ -434,11 +435,14 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [Discord Bot #4 (selfbot)](https://github.com/0x7030676e31/cumsocket) - [Discord Bot #5](https://github.com/itskdhere/ChatGPT-Discord-BOT) - [Discord Bot #6 (Shakespeare bot)](https://gist.github.com/TheBrokenRail/4b37e7c44e8f721d8bd845050d034c16) +- [Discord Bot #7](https://github.com/Elitezen/discordjs-chatgpt) +- [Zoom Chat](https://github.com/shixin-guo/my-bot) - [WeChat Bot #1](https://github.com/AutumnWhj/ChatGPT-wechat-bot) - [WeChat Bot #2](https://github.com/fuergaosi233/wechat-chatgpt) - [WeChat Bot #3](https://github.com/wangrongding/wechat-bot) ( - [WeChat Bot #4](https://github.com/darknightlab/wechat-bot) - [WeChat Bot #5](https://github.com/sunshanpeng/wechaty-chatgpt) +- [WeChat Bot #6](https://github.com/formulahendry/chatgpt-wechat-bot) - [QQ Bot (plugin for Yunzai-bot)](https://github.com/ikechan8370/chatgpt-plugin) - [QQ Bot (plugin for KiviBot)](https://github.com/KiviBotLab/kivibot-plugin-chatgpt) - [QQ Bot (oicq)](https://github.com/easydu2002/chat_gpt_oicq) @@ -484,6 +488,8 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [Next.js ChatGPT With Firebase](https://github.com/youngle316/chatgpt) - [ai-commit – GPT-3 Commit Message Generator](https://github.com/insulineru/ai-commit) - [AItinerary – ChatGPT itinerary Generator](https://aitinerary.ai) +- [wechaty-chatgpt - A chatbot based on Wechaty & ChatGPT](https://github.com/zhengxs2018/wechaty-chatgpt) +- [Julius GPT](https://github.com/christophebe/julius-gpt) : Generate and publish your content from the command line with the help of AI (GPT). If you create a cool integration, feel free to open a PR and add it to the list. From 4613b95cc382d6aaa6245aff3684c8da197c4392 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Mon, 27 Mar 2023 22:13:51 -0500 Subject: [PATCH 08/21] 5.1.3 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0c08e0a7..7b546148 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "chatgpt", - "version": "5.1.2", + "version": "5.1.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "chatgpt", - "version": "5.1.2", + "version": "5.1.3", "license": "MIT", "dependencies": { "@dqbd/tiktoken": "^0.4.0", diff --git a/package.json b/package.json index 0616fb22..0072dc61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chatgpt", - "version": "5.1.2", + "version": "5.1.3", "description": "Node.js client for the official ChatGPT API.", "author": "Travis Fischer ", "repository": "transitive-bullshit/chatgpt-api", From cf29a97c0b1afe997564046e16b84d27dbc5b89d Mon Sep 17 00:00:00 2001 From: Daniil Pankov Date: Wed, 29 Mar 2023 20:42:49 +0300 Subject: [PATCH 09/21] Update how to use with commonJS Add another workaround for commonJS libraries --- readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 6b9745b5..a2bb5296 100644 --- a/readme.md +++ b/readme.md @@ -280,8 +280,11 @@ Note that we automatically handle appending the previous messages to the prompt ```js async function example() { - // To use ESM in CommonJS, you can use a dynamic import + // To use ESM in CommonJS, you can use a dynamic import like this: const { ChatGPTAPI } = await import('chatgpt') + // You can also try dynamic importing like this: + // const importDynamic = new Function('modulePath', 'return import(modulePath)') + // const { ChatGPTAPI } = await importDynamic('chatgpt') const api = new ChatGPTAPI({ apiKey: process.env.OPENAI_API_KEY }) From dd6b4579326064258f6eb56f0a3ab2cd1c71f53b Mon Sep 17 00:00:00 2001 From: Oleksii Myronenko Date: Wed, 29 Mar 2023 23:34:06 +0300 Subject: [PATCH 10/21] #477 Estimate tokens usage with streaming completions --- src/chatgpt-api.ts | 16 +++++++++++++--- src/types.ts | 14 +++++++++++++- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/chatgpt-api.ts b/src/chatgpt-api.ts index b44cce2d..3ae23a06 100644 --- a/src/chatgpt-api.ts +++ b/src/chatgpt-api.ts @@ -211,16 +211,17 @@ export class ChatGPTAPI { result.id = response.id } - if (response?.choices?.length) { + if (response.choices?.length) { const delta = response.choices[0].delta result.delta = delta.content if (delta?.content) result.text += delta.content - result.detail = response if (delta.role) { result.role = delta.role } + result.detail = response + onProgress?.(result) } } catch (err) { @@ -286,7 +287,16 @@ export class ChatGPTAPI { } } } - ).then((message) => { + ).then(async (message) => { + if (message.detail && !message.detail.usage) { + const promptTokens = numTokens + const completionTokens = await this._getTokenCount(message.text) + message.detail.usage = { + prompt_tokens: promptTokens, + completion_tokens: completionTokens, + total_tokens: promptTokens + completionTokens + } + } return this._upsertMessage(message).then(() => message) }) diff --git a/src/types.ts b/src/types.ts index fd23cf7b..cb6bbfa3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -59,13 +59,25 @@ export type SendMessageBrowserOptions = { abortSignal?: AbortSignal } +interface CreateChatCompletionStreamResponse + extends openai.CreateChatCompletionDeltaResponse { + usage: CreateCompletionStreamResponseUsage +} + +interface CreateCompletionStreamResponseUsage + extends openai.CreateCompletionResponseUsage { + estimated: true +} + export interface ChatMessage { id: string text: string role: Role name?: string delta?: string - detail?: any + detail?: + | openai.CreateChatCompletionResponse + | CreateChatCompletionStreamResponse // relevant for both ChatGPTAPI and ChatGPTUnofficialProxyAPI parentMessageId?: string From 7cd6e06bdd5ad495c4e257613abfe42b03ef6842 Mon Sep 17 00:00:00 2001 From: Oleksii Myronenko Date: Wed, 29 Mar 2023 23:48:50 +0300 Subject: [PATCH 11/21] #477 Mark tokens as estimated --- src/chatgpt-api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chatgpt-api.ts b/src/chatgpt-api.ts index 3ae23a06..292202b5 100644 --- a/src/chatgpt-api.ts +++ b/src/chatgpt-api.ts @@ -294,7 +294,8 @@ export class ChatGPTAPI { message.detail.usage = { prompt_tokens: promptTokens, completion_tokens: completionTokens, - total_tokens: promptTokens + completionTokens + total_tokens: promptTokens + completionTokens, + estimated: true } } return this._upsertMessage(message).then(() => message) From 4da3ea6e1f45057498688d893b18eeea827230c0 Mon Sep 17 00:00:00 2001 From: Gefei Li Date: Thu, 30 Mar 2023 19:53:50 +0800 Subject: [PATCH 12/21] add a wechat bot with wechaty+chatgpt api --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index a2bb5296..f54647d7 100644 --- a/readme.md +++ b/readme.md @@ -444,6 +444,7 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [WeChat Bot #4](https://github.com/darknightlab/wechat-bot) - [WeChat Bot #5](https://github.com/sunshanpeng/wechaty-chatgpt) - [WeChat Bot #6](https://github.com/formulahendry/chatgpt-wechat-bot) +- [WeChat Bot #7](https://github.com/gfl94/Chatbot004) - [QQ Bot (plugin for Yunzai-bot)](https://github.com/ikechan8370/chatgpt-plugin) - [QQ Bot (plugin for KiviBot)](https://github.com/KiviBotLab/kivibot-plugin-chatgpt) - [QQ Bot (oicq)](https://github.com/easydu2002/chat_gpt_oicq) From 507a2962496fba81f8c072564c66d6d2580dde6e Mon Sep 17 00:00:00 2001 From: Benjamin Janssens Date: Thu, 30 Mar 2023 22:47:13 +0200 Subject: [PATCH 13/21] Added SlackGPT to the README --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index a2bb5296..f975550b 100644 --- a/readme.md +++ b/readme.md @@ -471,6 +471,8 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [Slack Bot #2](https://github.com/lokwkin/chatgpt-slackbot-node/) (with queueing mechanism) - [Slack Bot #3](https://github.com/NessunKim/slack-chatgpt/) - [Slack Bot #4](https://github.com/MarkusGalant/chatgpt-slackbot-serverless/) ( Serverless AWS Lambda ) +- [Slack Bot #5](https://github.com/benjiJanssens/SlackGPT) (Hosted) + - [Add to Slack](https://slackgpt.benji.sh/slack/install) - [Electron Bot](https://github.com/ShiranAbir/chaty) - [Kodyfire CLI](https://github.com/nooqta/chatgpt-kodyfire) - [Twitch Bot](https://github.com/BennyDeeDev/chatgpt-twitch-bot) From 52d39182555bb5d5e15ffb0bf2feb4fc7e759d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=A3=AE?= Date: Fri, 31 Mar 2023 15:29:07 +0800 Subject: [PATCH 14/21] feat: support multiple organizations --- bin/cli.js | 3 +++ readme.md | 1 + src/chatgpt-api.ts | 18 ++++++++++++++++++ src/types.ts | 2 ++ 4 files changed, 24 insertions(+) diff --git a/bin/cli.js b/bin/cli.js index 35593733..6048e2de 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -31,11 +31,13 @@ async function main() { }) .option('-t, --timeout', 'Timeout in milliseconds') .option('-k, --apiKey ', 'OpenAI API key') + .option('-o, --apiOrg ', 'OpenAI API key') .option( '-n, --conversationName ', 'Unique name for the conversation' ) .action(async (prompt, options) => { + const apiOrg = options.apiOrg|| process.env.OPENAI_API_ORG const apiKey = options.apiKey || process.env.OPENAI_API_KEY if (!apiKey) { console.error('error: either set OPENAI_API_KEY or use --apiKey\n') @@ -67,6 +69,7 @@ async function main() { const api = new ChatGPTAPI({ apiKey, + apiOrg, debug: options.debug, getMessageById: async (id) => { if (options.store) { diff --git a/readme.md b/readme.md index a2bb5296..2f12b81e 100644 --- a/readme.md +++ b/readme.md @@ -150,6 +150,7 @@ Options: -s, --store Enables the local message cache (default: true) -t, --timeout Timeout in milliseconds -k, --apiKey OpenAI API key + -o, --apiOrg OpenAI API organization -n, --conversationName Unique name for the conversation -h, --help Display this message -v, --version Display version number diff --git a/src/chatgpt-api.ts b/src/chatgpt-api.ts index b44cce2d..b0599026 100644 --- a/src/chatgpt-api.ts +++ b/src/chatgpt-api.ts @@ -16,6 +16,7 @@ const ASSISTANT_LABEL_DEFAULT = 'ChatGPT' export class ChatGPTAPI { protected _apiKey: string protected _apiBaseUrl: string + protected _apiOrg?: string protected _debug: boolean protected _systemMessage: string @@ -36,6 +37,7 @@ export class ChatGPTAPI { * Creates a new client wrapper around OpenAI's chat completion API, mimicing the official ChatGPT webapp's functionality as closely as possible. * * @param apiKey - OpenAI API key (required). + * @param apiOrg - OpenAI API organization (optional). * @param apiBaseUrl - Optional override for the OpenAI API base URL. * @param debug - Optional enables logging debugging info to stdout. * @param completionParams - Param overrides to send to the [OpenAI chat completion API](https://platform.openai.com/docs/api-reference/chat/create). Options like `temperature` and `presence_penalty` can be tweaked to change the personality of the assistant. @@ -49,6 +51,7 @@ export class ChatGPTAPI { constructor(opts: types.ChatGPTAPIOptions) { const { apiKey, + apiOrg, apiBaseUrl = 'https://api.openai.com/v1', debug = false, messageStore, @@ -62,6 +65,7 @@ export class ChatGPTAPI { } = opts this._apiKey = apiKey + this._apiOrg = apiOrg this._apiBaseUrl = apiBaseUrl this._debug = !!debug this._fetch = fetch @@ -185,6 +189,12 @@ export class ChatGPTAPI { stream } + // Support multiple organizations + // See https://platform.openai.com/account/api-keys + if (this._apiOrg) { + headers['OpenAI-Organization'] = this._apiOrg + } + if (this._debug) { console.log(`sendMessage (${numTokens} tokens)`, body) } @@ -316,6 +326,14 @@ export class ChatGPTAPI { this._apiKey = apiKey } + get apiOrg(): string { + return this._apiOrg + } + + set apiOrg(apiOrg: string) { + this._apiOrg = apiOrg + } + protected async _buildMessages(text: string, opts: types.SendMessageOptions) { const { systemMessage = this._systemMessage } = opts let { parentMessageId } = opts diff --git a/src/types.ts b/src/types.ts index fd23cf7b..84fdeea4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -10,6 +10,8 @@ export type ChatGPTAPIOptions = { /** @defaultValue `'https://api.openai.com'` **/ apiBaseUrl?: string + apiOrg: string + /** @defaultValue `false` **/ debug?: boolean From 79a9d50ec0e83d4f67488433ebddd86127f9c4c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=A3=AE?= Date: Fri, 31 Mar 2023 15:32:37 +0800 Subject: [PATCH 15/21] Update chatgpt-api.ts --- src/chatgpt-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chatgpt-api.ts b/src/chatgpt-api.ts index b0599026..3ba16191 100644 --- a/src/chatgpt-api.ts +++ b/src/chatgpt-api.ts @@ -190,7 +190,7 @@ export class ChatGPTAPI { } // Support multiple organizations - // See https://platform.openai.com/account/api-keys + // See https://platform.openai.com/docs/api-reference/authentication if (this._apiOrg) { headers['OpenAI-Organization'] = this._apiOrg } From de78787bc9a7d0162601a42b9fe3e083ff6ad826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=A3=AE?= Date: Fri, 31 Mar 2023 16:31:20 +0800 Subject: [PATCH 16/21] style: prettier code --- bin/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cli.js b/bin/cli.js index 6048e2de..786757c3 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -37,7 +37,7 @@ async function main() { 'Unique name for the conversation' ) .action(async (prompt, options) => { - const apiOrg = options.apiOrg|| process.env.OPENAI_API_ORG + const apiOrg = options.apiOrg || process.env.OPENAI_API_ORG const apiKey = options.apiKey || process.env.OPENAI_API_KEY if (!apiKey) { console.error('error: either set OPENAI_API_KEY or use --apiKey\n') From afa5aea5df3662e1175c45fa95bedf16c62189ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E5=8B=87?= Date: Sat, 1 Apr 2023 18:44:39 +0800 Subject: [PATCH 17/21] feat: add OpenAI-API-Service for readme --- readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.md b/readme.md index a2bb5296..ea96a6c2 100644 --- a/readme.md +++ b/readme.md @@ -491,6 +491,9 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [AItinerary – ChatGPT itinerary Generator](https://aitinerary.ai) - [wechaty-chatgpt - A chatbot based on Wechaty & ChatGPT](https://github.com/zhengxs2018/wechaty-chatgpt) - [Julius GPT](https://github.com/christophebe/julius-gpt) : Generate and publish your content from the command line with the help of AI (GPT). +- [OpenAI-API-Service](https://github.com/Jarvan-via/api-service): Provide OpenAI related APIs for businesses, as well as other AI related APIs + + If you create a cool integration, feel free to open a PR and add it to the list. From e1d536e62f861d53d5e814aac18e52bb6765022a Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sat, 1 Apr 2023 14:39:39 -0500 Subject: [PATCH 18/21] feat: add cli support for model --- bin/cli.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/cli.js b/bin/cli.js index 35593733..6589a7e8 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -29,8 +29,11 @@ async function main() { .option('-s, --store', 'Enables the local message cache', { default: true }) - .option('-t, --timeout', 'Timeout in milliseconds') + .option('-t, --timeout ', 'Timeout in milliseconds') .option('-k, --apiKey ', 'OpenAI API key') + .option('-m, --model ', 'Model (gpt-3.5-turbo, gpt-4)', { + default: 'gpt-3.5-turbo' + }) .option( '-n, --conversationName ', 'Unique name for the conversation' @@ -50,6 +53,7 @@ async function main() { options.continue && options.store ? config.get(conversationKey, {}) || {} : {} + const model = options.model let conversationId = undefined let parentMessageId = undefined @@ -68,6 +72,9 @@ async function main() { const api = new ChatGPTAPI({ apiKey, debug: options.debug, + completionParams: { + model + }, getMessageById: async (id) => { if (options.store) { return conversation[id] From 828510c1a04df2363514941376d8521431f4e0a9 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sat, 1 Apr 2023 14:40:06 -0500 Subject: [PATCH 19/21] 5.1.4 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7b546148..cf6e86cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "chatgpt", - "version": "5.1.3", + "version": "5.1.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "chatgpt", - "version": "5.1.3", + "version": "5.1.4", "license": "MIT", "dependencies": { "@dqbd/tiktoken": "^0.4.0", diff --git a/package.json b/package.json index 0072dc61..169b621f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chatgpt", - "version": "5.1.3", + "version": "5.1.4", "description": "Node.js client for the official ChatGPT API.", "author": "Travis Fischer ", "repository": "transitive-bullshit/chatgpt-api", From 59b20771a9773ed2c601074e6a1454c019d3b1f6 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sun, 2 Apr 2023 11:14:57 -0500 Subject: [PATCH 20/21] Update readme.md --- readme.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index ea96a6c2..a42c5a43 100644 --- a/readme.md +++ b/readme.md @@ -490,10 +490,8 @@ All of these awesome projects are built using the `chatgpt` package. 🤯 - [ai-commit – GPT-3 Commit Message Generator](https://github.com/insulineru/ai-commit) - [AItinerary – ChatGPT itinerary Generator](https://aitinerary.ai) - [wechaty-chatgpt - A chatbot based on Wechaty & ChatGPT](https://github.com/zhengxs2018/wechaty-chatgpt) -- [Julius GPT](https://github.com/christophebe/julius-gpt) : Generate and publish your content from the command line with the help of AI (GPT). -- [OpenAI-API-Service](https://github.com/Jarvan-via/api-service): Provide OpenAI related APIs for businesses, as well as other AI related APIs - - +- [Julius GPT](https://github.com/christophebe/julius-gpt) - Generate and publish your content from the CLI +- [OpenAI-API-Service](https://github.com/Jarvan-via/api-service) - Provides OpenAI related APIs for businesses If you create a cool integration, feel free to open a PR and add it to the list. From 0f966dc4029b86b69f679bcfefeaa772e7236796 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sun, 2 Apr 2023 11:27:20 -0500 Subject: [PATCH 21/21] chore: minor fixes --- src/chatgpt-api.ts | 21 +++++++++++++-------- src/types.ts | 20 ++++++++++---------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/chatgpt-api.ts b/src/chatgpt-api.ts index 696367c8..b2ce8b26 100644 --- a/src/chatgpt-api.ts +++ b/src/chatgpt-api.ts @@ -231,7 +231,6 @@ export class ChatGPTAPI { } result.detail = response - onProgress?.(result) } } catch (err) { @@ -299,15 +298,21 @@ export class ChatGPTAPI { } ).then(async (message) => { if (message.detail && !message.detail.usage) { - const promptTokens = numTokens - const completionTokens = await this._getTokenCount(message.text) - message.detail.usage = { - prompt_tokens: promptTokens, - completion_tokens: completionTokens, - total_tokens: promptTokens + completionTokens, - estimated: true + try { + const promptTokens = numTokens + const completionTokens = await this._getTokenCount(message.text) + message.detail.usage = { + prompt_tokens: promptTokens, + completion_tokens: completionTokens, + total_tokens: promptTokens + completionTokens, + estimated: true + } + } catch (err) { + // TODO: this should really never happen, but if it does, + // we should handle notify the user gracefully } } + return this._upsertMessage(message).then(() => message) }) diff --git a/src/types.ts b/src/types.ts index 95874ade..2c1ad218 100644 --- a/src/types.ts +++ b/src/types.ts @@ -61,16 +61,6 @@ export type SendMessageBrowserOptions = { abortSignal?: AbortSignal } -interface CreateChatCompletionStreamResponse - extends openai.CreateChatCompletionDeltaResponse { - usage: CreateCompletionStreamResponseUsage -} - -interface CreateCompletionStreamResponseUsage - extends openai.CreateCompletionResponseUsage { - estimated: true -} - export interface ChatMessage { id: string text: string @@ -100,6 +90,16 @@ export type GetMessageByIdFunction = (id: string) => Promise /** Upserts a chat message to a store. */ export type UpsertMessageFunction = (message: ChatMessage) => Promise +export interface CreateChatCompletionStreamResponse + extends openai.CreateChatCompletionDeltaResponse { + usage: CreateCompletionStreamResponseUsage +} + +export interface CreateCompletionStreamResponseUsage + extends openai.CreateCompletionResponseUsage { + estimated: true +} + /** * https://chat.openapi.com/backend-api/conversation */