An open API service indexing awesome lists of open source software.

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

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`