Skip to content

Commit

Permalink
Format docs
Browse files Browse the repository at this point in the history
  • Loading branch information
leafduo committed Mar 4, 2023
1 parent b8bc63b commit 964fd92
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ go install github.com/leafduo/chatgpt-telegram-bot@latest
```bash
export OPENAI_API_KEY=<your_openai_api_key>
export TELEGRAM_APITOKEN=<your_telegram_bot_token>
export ALLOWED_TELEGRAM_ID=<your_telegram_id>,<your_friend_telegram_id> # optional, default is empty. Only allow these users to use the bot. Empty means allow all users.
export MODEL_TEMPERATURE=1.0 # optional, default is 1.0. Higher temperature means more random responses. See https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature
# optional, default is empty. Only allow these users to use the bot. Empty means allow all users.
export ALLOWED_TELEGRAM_ID=<your_telegram_id>,<your_friend_telegram_id>
# optional, default is 1.0. Higher temperature means more random responses.
# See https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature
export MODEL_TEMPERATURE=1.0

chatgpt-telegram-bot
```
12 changes: 7 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ services:
image: ghcr.io/leafduo/chatgpt-telegram-bot:latest
restart: always
environment:
- TELEGRAM_APITOKEN=xxxx # Telegram bot API token
- OPENAI_API_KEY=xxxx # OpenAI API key
- ALLOWED_TELEGRAM_ID=12345,23456
# Telegram user ids allowed to use this bot, multiple ids seperated by comma
# Leave it empty if you want to allow everyone to use this bot
- export OPENAI_API_KEY=<your_openai_api_key>
- export TELEGRAM_APITOKEN=<your_telegram_bot_token>
# optional, default is empty. Only allow these users to use the bot. Empty means allow all users.
- export ALLOWED_TELEGRAM_ID=<your_telegram_id>,<your_friend_telegram_id>
# optional, default is 1.0. Higher temperature means more random responses.
# See https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature
- export MODEL_TEMPERATURE=1.0

0 comments on commit 964fd92

Please sign in to comment.