ENABLE_QUOTING | Whether to enable message quoting in private chats | true |
ENABLE_IMAGE_GENERATION | Whether to enable image generation via the /image command | true |
ENABLE_TRANSCRIPTION | Whether to enable transcriptions of audio and video messages | true |
PROXY | Proxy to be used for OpenAI and Telegram bot (e.g. http://localhost:8080) | - |
OPENAI_MODEL | The OpenAI model to use for generating responses. You can find all available models here | gpt-3.5-turbo |
ASSISTANT_PROMPT | A system message that sets the tone and controls the behavior of the assistant | You are a helpful assistant. |
SHOW_USAGE | Whether to show OpenAI token usage information after each response | false |
STREAM | Whether to stream responses. Note: incompatible, if enabled, with N_CHOICES higher than 1 | true |
MAX_TOKENS | Upper bound on how many tokens the ChatGPT API will return | 1200 for GPT-3, 2400 for GPT-4 |
MAX_HISTORY_SIZE | Max number of messages to keep in memory, after which the conversation will be summarised to avoid excessive token usage | 15 |
MAX_CONVERSATION_AGE_MINUTES | Maximum number of minutes a conversation should live since the last message, after which the conversation will be reset | 180 |
VOICE_REPLY_WITH_TRANSCRIPT_ONLY | Whether to answer to voice messages with the transcript only or with a ChatGPT response of the transcript | false |
VOICE_REPLY_PROMPTS | A semicolon separated list of phrases (i.e. Hi bot;Hello chat). If the transcript starts with any of them, it will be treated as a prompt even if VOICE_REPLY_WITH_TRANSCRIPT_ONLY is set to true | - |
N_CHOICES | Number of answers to generate for each input message. Note: setting this to a number higher than 1 will not work properly if STREAM is enabled | 1 |
TEMPERATURE | Number between 0 and 2. Higher values will make the output more random | 1.0 |
PRESENCE_PENALTY | Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far | 0.0 |
FREQUENCY_PENALTY | Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far | 0.0 |
IMAGE_SIZE | The DALL·E generated image size. Allowed values: 256x256, 512x512 or 1024x1024 | 512x512 |
GROUP_TRIGGER_KEYWORD | If set, the bot in group chats will only respond to messages that start with this keyword | - |
IGNORE_GROUP_TRANSCRIPTIONS | If set to true, the bot will not process transcriptions in group chats | true |
BOT_LANGUAGE | Language of general bot messages. Currently available: en, de, ru, tr, it, fi, es, id, nl, zh-cn, zh-tw, vi, fa, pt-br, uk. Contribute with additional translations | en |