kopia lustrzana https://codeberg.org/pluja/openai-telegram-bot
15 wiersze
441 B
Bash
15 wiersze
441 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_CHAT=1
|
|
# Use Google TTS for speech to text
|
|
ENABLE_GOOGLE_TTS=0
|
|
|
|
BOT_TOKEN=your-telegram-bot-token
|
|
BOT_ALLOWED_USERS= XXXX,YYYY # Comma separated list of Telegram user IDs
|