kopia lustrzana https://codeberg.org/pluja/openai-telegram-bot
32 wiersze
812 B
Bash
32 wiersze
812 B
Bash
# # # # # # # # # #
|
|
# OpenAI / ChatGPT #
|
|
# # # # # # # # # #
|
|
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 ENABLE_TTS=1, you can set the following options
|
|
# Remove any language you don't want to not downlad its voice
|
|
VOICE_LANGUAGE_LIST=en,es,fr,it,pt,ca,no,nl,de
|
|
DEFAULT_VOICE_LANGUAGE=en
|
|
|
|
# Do not change this line
|
|
LANGUAGES_H_SR=en,fr,nl,no
|
|
|
|
# # # # # # # # # #
|
|
# Telegram Options #
|
|
# # # # # # # # # #
|
|
BOT_TOKEN=your-telegram-bot-token
|
|
BOT_ALLOWED_USERS= XXXX,YYYY # Comma separated list of Telegram user IDs
|