From 4da3ea6e1f45057498688d893b18eeea827230c0 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 --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index a2bb529..f54647d 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 2/6] Added SlackGPT to the README --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index a2bb529..f975550 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 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 3/6] feat: add OpenAI-API-Service for readme --- readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.md b/readme.md index a2bb529..ea96a6c 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 4/6] 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 3559373..6589a7e 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 5/6] 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 7b54614..cf6e86c 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 0072dc6..169b621 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 6/6] Update readme.md --- readme.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index ea96a6c..a42c5a4 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.