diff --git a/README.md b/README.md index 57886d6..c161fad 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,11 @@ go install github.com/leafduo/chatgpt-telegram-bot@latest ```bash export OPENAI_API_KEY= export TELEGRAM_APITOKEN= -export ALLOWED_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=, +# 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 ``` diff --git a/docker-compose.yml b/docker-compose.yml index a503542..22f94e4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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= + - export TELEGRAM_APITOKEN= + # optional, default is empty. Only allow these users to use the bot. Empty means allow all users. + - export ALLOWED_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