Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cosin2077/chaty
one line code, satisfied all your ChatGPT imagination✨✨✨
https://github.com/cosin2077/chaty
chatbot chatgpt chatgpt3 nodejs typescript wechat
Last synced: about 2 months ago
JSON representation
one line code, satisfied all your ChatGPT imagination✨✨✨
- Host: GitHub
- URL: https://github.com/cosin2077/chaty
- Owner: cosin2077
- Created: 2023-03-03T11:07:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T07:53:08.000Z (10 months ago)
- Last Synced: 2024-07-31T08:19:21.510Z (5 months ago)
- Topics: chatbot, chatgpt, chatgpt3, nodejs, typescript, wechat
- Language: TypeScript
- Homepage:
- Size: 1.79 MB
- Stars: 448
- Watchers: 8
- Forks: 42
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ChatGPT-repositories - chaty - one line code, satisfied all your ChatGPT imagination✨✨✨ (Chatbots)
- StarryDivineSky - cosin2077/chaty
README
## ✨✨✨Chaty – ChatGPT ALl In One!
Read this in other languages: English | [简体中文](./README.zh-CN.md)
With Chaty, your needs about ChatGPT will come to life! Chaty allows you to:
- Use it as a command-line assistant;
- Deploy a private ChatGPT web service;
- Deploy NodeJS API for ChatGPT;
- Deploy WeChat ChatGPT bot;
- Deploy Telegram ChatGPT bot;
- More services are under coding!Let Chaty take you beyond expectations and into the exciting world of ChatGPT.
## Update
2023.03.13 Support for WeChat robot to reply to group chats! Just add the WeChat robot into the group and @\ to start a conversation!
2023.03.15 ❗️Based on some feedback, WeChat may impose restrictions on robot logins, which may result in account suspension. Please try runningchaty run wechat
with a secondary account.
2023.03.17 web dialog saving supported!## Usage
Chaty is very easy to use!
install ichaty first
```javascript
npm i -g ichaty
```
then login with your openAI key
```javascript
chaty login
```
```javascript
chaty // show you all commands and options
chaty run command // run as a command chatGPT bot
chaty run web // deploy a web chatGPT service
chaty run node // deploy a node chatGPT api service
chaty run wechat // deploy a wechat chatGPT bot
chaty run telegram // deploy a telegram chatGPT bot
```## ⚙️Installation
Tips: Node v16 or above version is required.
Chaty is a application based on Node.js, and can be installed with the following command:
If you have not installed NodeJS, [click here](https://nodejs.org/)```
npm i -g ichaty
```
## 🔑LoginLogin with your openAI key.You can find your API key at https://platform.openai.com/account/api-keys.
Then you can start your journey
```
chaty login
```## 🚀Services
Chaty provides multiple service options, and you can choose the most suitable one according to your needs.
```
-[x] command line Service📁
-[x] private Web Service🚀
-[x] weChat Robot Service💬
-[x] nodeJS API Service💻
-[] telegram Bot Service🤖
```### 📁command line Service
```
chaty run command
```
![](./assets/images/command.jpg)
### 🌍Private Web ServiceChaty can deploy a private web service, and you can access the Chaty service you created anytime by visiting http://localhost:9522.
you can specify port withchaty run web --port \
```
chaty run web --port 9555
```
![](./assets/images/web.jpg)
![](./assets/images/web2.jpg)### 💬WeChat Robot Service
Chaty can also deploy a WeChat robot service, allowing you to chat with Chaty through a WeChat account.
```
chaty run wechat
```
Scan qrcode on terminal then login your wechat!
![](./assets/images/wechat.jpg)Just send message with hello/你好 to start your journey~
![](./assets/images/wechat2.png)### 🤖Telegram Bot Service(under construction...)
Chaty can also deploy Telegram Bot service, enabling your users to chat with Chaty in Telegram. Simply send a message to '@your-bot' to initiate the chatbot service.
## Troubleshooting
1. If your network cannot access [https://api.openai.com](https://api.openai.com), you can try run
```
chaty proxy default
```
as a temporary proxy solution.
For a long-term solution, it is recommended to run on a server that supports accessingapi.openai.com
or use a stable proxy.2. when you got error like below(wechat security authorization). Auth your wechat account(me->Pay->upper right corner···->Real-Name Authentication).
```
uncaughtException AssertionError [ERR_ASSERTION]: 1 == 0
```
## under coding- [] support SSE
- [] support command line/ web service save dialog
- [] faster service
- [] config wechat robot params
- [] better web service ui
## Additional FeaturesMore services are under construction!(discord, telegram, slack...)
Thank you for choosing Chaty! If you have any questions or suggestions, please feel free to contact us!