From a00248b0e7584609ba83288b02e1cf9126505a4f Mon Sep 17 00:00:00 2001 From: Gefei Li Date: Thu, 30 Mar 2023 19:53:50 +0800 Subject: [PATCH 1/6] add a wechat bot with wechaty+chatgpt api --- legacy/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/legacy/readme.md b/legacy/readme.md index a2bb5296..f54647d7 100644 --- a/legacy/readme.md +++ b/legacy/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 b2b4d99ec5a05787840b58fdb4d9fe5d852e98d6 Mon Sep 17 00:00:00 2001 From: Benjamin Janssens Date: Thu, 30 Mar 2023 22:47:13 +0200 Subject: [PATCH 2/6] Added SlackGPT to the README --- legacy/readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legacy/readme.md b/legacy/readme.md index a2bb5296..f975550b 100644 --- a/legacy/readme.md +++ b/legacy/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 980c9259ffe40aeff0023bdb1252e0503e15076a 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 3/6] feat: add OpenAI-API-Service for readme --- legacy/readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy/readme.md b/legacy/readme.md index a2bb5296..ea96a6c2 100644 --- a/legacy/readme.md +++ b/legacy/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 54b5c4bdef35b94a7e419a03ac12d33d29e87c56 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sat, 1 Apr 2023 14:39:39 -0500 Subject: [PATCH 4/6] feat: add cli support for model --- legacy/bin/cli.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/legacy/bin/cli.js b/legacy/bin/cli.js index 35593733..6589a7e8 100755 --- a/legacy/bin/cli.js +++ b/legacy/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 9060dd84fcdb895698a620b2ff19dd30837c743e Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sat, 1 Apr 2023 14:40:06 -0500 Subject: [PATCH 5/6] 5.1.4 --- legacy/package-lock.json | 4 ++-- legacy/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/legacy/package-lock.json b/legacy/package-lock.json index 7b546148..cf6e86cc 100644 --- a/legacy/package-lock.json +++ b/legacy/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/legacy/package.json b/legacy/package.json index 0072dc61..169b621f 100644 --- a/legacy/package.json +++ b/legacy/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 a258617cd0503f0dd010fbb4ab2770634ffebae9 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sun, 2 Apr 2023 11:14:57 -0500 Subject: [PATCH 6/6] Update readme.md --- legacy/readme.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/legacy/readme.md b/legacy/readme.md index ea96a6c2..a42c5a43 100644 --- a/legacy/readme.md +++ b/legacy/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.