https://github.com/serpo-dev/chatgptdemo-bot
A GPT-3-like AI chat bot. Uses API of chat.chatgptdemo.net
https://github.com/serpo-dev/chatgptdemo-bot
ai api bot chat chatbot chatgpt chatgptdemo external gpt-3 openai telegram tg
Last synced: 2 months ago
JSON representation
A GPT-3-like AI chat bot. Uses API of chat.chatgptdemo.net
- Host: GitHub
- URL: https://github.com/serpo-dev/chatgptdemo-bot
- Owner: serpo-dev
- Created: 2023-06-07T13:21:48.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-07T14:22:22.000Z (about 3 years ago)
- Last Synced: 2025-04-03T01:20:08.276Z (about 1 year ago)
- Topics: ai, api, bot, chat, chatbot, chatgpt, chatgptdemo, external, gpt-3, openai, telegram, tg
- Language: JavaScript
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chatgptdemo-bot
A GPT-3 like AI chat bot. With an ability to save a context (see .env configuration). Just a simple bot for conversations. For your own deals without ads and annoying thigs which are usually met in free tg bot chats. Uses API of `https://chat.chatgptdemo.net/`.
## Requirements
- `node v18+`
- `npm v8+`
## Installation
Run the command below:
```
npm install
```
## .env config
Field `CHAT_ID` is intended to save context of the conversation. Just change it to random number/string to clear the context.
```
BOT_TOKEN=your_token
REQUEST_URL=https://chat.chatgptdemo.net/chat_api_stream
REQUEST_METHOD=POST
CHAT_ID=64804e07a5dc0e04417f57ec
MAX_MESSAGE_LENGTH=1000
```
## Commands
- `npm start`
- `npm test`