kopia lustrzana https://codeberg.org/pluja/openai-telegram-bot
update docker compose
rodzic
486a6157a9
commit
c1879465d6
|
@ -1,4 +1,3 @@
|
|||
docker-compose.yml
|
||||
venv/
|
||||
.env
|
||||
*.db
|
||||
|
|
|
@ -46,7 +46,6 @@ Self hosting this chatbot is pretty easy. You just need to follow this steps:
|
|||
|
||||
4. Setup the bot:
|
||||
1. Clone this repo.
|
||||
2. Rename the `example.docker-compose.yml` file to `docker-compose.yml`.
|
||||
2. Rename the `example.env` file to `.env`.
|
||||
3. Edit the environment variables from the `.env` file:
|
||||
1. Set your OPENAI_TOKEN.
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
version: '3.9'
|
||||
services:
|
||||
chatbot:
|
||||
build: .
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./db_data:/app/db_data
|
|
@ -1,14 +0,0 @@
|
|||
version: '3.9'
|
||||
services:
|
||||
chatbot:
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
OPENAI_API_KEY: "XXX"
|
||||
OPENAI_MODEL: gpt-3.5-turbo
|
||||
CHATGPT_SYSTEM_PROMPT: "You are a helpful assistant."
|
||||
CHATGPT_TEMPERATURE: 1.0
|
||||
CHATGPT_MAX_USER_CONTEXT: 5
|
||||
WHISPER_TO_CHAT: 1
|
||||
BOT_TOKEN: "XXX"
|
||||
BOT_ALLOWED_USERS: USER_ID_1,USER_ID_2
|
Ładowanie…
Reference in New Issue