kopia lustrzana https://codeberg.org/pluja/openai-telegram-bot
19 wiersze
526 B
Bash
19 wiersze
526 B
Bash
OPENAI_API_KEY=your-openai-api-key
|
|
OPENAI_MODEL=gpt-3.5-turbo
|
|
|
|
CHATGPT_SYSTEM_PROMPT=You are a helpful assistant. Always use Markdown for formatting.
|
|
CHATGPT_MAX_USER_CONTEXT=5
|
|
CHATGPT_TEMPERATURE=1.0
|
|
|
|
# Use Whisper transcript from voice message with ChatGPT
|
|
WHISPER_TO_GPT=1
|
|
|
|
# TTS Options
|
|
ENABLE_TTS=1
|
|
# If USE_TTS=1, you can set the following options
|
|
VOICE_LANGUAGE_LIST=en,es,fr,it,pt,ca
|
|
DEFAULT_VOICE_LANGUAGE=en
|
|
|
|
BOT_TOKEN=your-telegram-bot-token
|
|
BOT_ALLOWED_USERS= XXXX,YYYY # Comma separated list of Telegram user IDs
|