2023-01-27 13:43:53 -05:00
|
|
|
# ChatGPT Settings (required)
|
2023-02-02 07:44:14 -05:00
|
|
|
# Set the API Key from OpenAI
|
|
|
|
OPENAI_API_KEY=
|
2023-06-08 11:02:44 -04:00
|
|
|
# To use Azure OpenAI API, set `OPENAI_AZURE` to true and `CHATGPT_REVERSE_PROXY` to your completion endpoint
|
|
|
|
# OPENAI_AZURE=false
|
2023-01-27 13:43:53 -05:00
|
|
|
|
|
|
|
# Set the ChatGPT conversation context to 'thread', 'room' or 'both'.
|
|
|
|
CHATGPT_CONTEXT=thread
|
2023-03-03 06:56:52 -05:00
|
|
|
# Set the ChatGPT model to be used by the API. 'gpt-3.5-turbo' is the official ChatGPT-model from OpenAI
|
|
|
|
# Note that the models are not free and will charge your OpenAI account depending on the usage of tokens
|
|
|
|
CHATGPT_API_MODEL=gpt-3.5-turbo
|
2023-02-06 10:13:32 -05:00
|
|
|
# (Optional) Explicitly set the prefix sent to model at the beginning of a conversation
|
|
|
|
#CHATGPT_PROMPT_PREFIX=Instructions:\nYou are ChatGPT, a large language model trained by OpenAI.
|
2023-02-07 04:36:08 -05:00
|
|
|
# (Optional) Set to true if ChatGPT should ignore any messages which are not text
|
2023-02-07 04:34:43 -05:00
|
|
|
#CHATGPT_IGNORE_MEDIA=false
|
2023-05-09 04:33:22 -04:00
|
|
|
# (Optional) You can change the api url to use another (OpenAI-compatible) API endpoint
|
|
|
|
#CHATGPT_REVERSE_PROXY=https://api.openai.com/v1/chat/completions
|
2023-05-10 06:07:35 -04:00
|
|
|
# (Optional) Set the temperature of the model. 0.0 is deterministic, 1.0 is very creative.
|
|
|
|
# CHATGPT_TEMPERATURE=0.8
|
2023-01-27 13:43:53 -05:00
|
|
|
|
2023-02-04 11:58:43 -05:00
|
|
|
# Set data store settings
|
|
|
|
KEYV_BACKEND=file
|
|
|
|
KEYV_URL=
|
|
|
|
KEYV_BOT_ENCRYPTION=false
|
|
|
|
KEYV_BOT_STORAGE=true
|
|
|
|
|
2023-01-27 13:43:53 -05:00
|
|
|
# Matrix Static Settings (required, see notes)
|
|
|
|
# Defaults to "https://matrix.org"
|
|
|
|
MATRIX_HOMESERVER_URL=
|
|
|
|
# With the @ and :DOMAIN, ie @SOMETHING:DOMAIN - Not used if `MATRIX_ACCESS_TOKEN` is set.
|
|
|
|
MATRIX_BOT_USERNAME=
|
|
|
|
# Set `MATRIX_BOT_PASSWORD` the bot will print an `MATRIX_ACCESS_TOKEN` to the terminal
|
|
|
|
MATRIX_ACCESS_TOKEN=
|
|
|
|
# Not used if `MATRIX_ACCESS_TOKEN` is set.
|
|
|
|
MATRIX_BOT_PASSWORD=
|
|
|
|
|
|
|
|
# Matrix Configurable Settings Defaults (optional)
|
|
|
|
# Leave prefix blank to reply to all messages
|
|
|
|
MATRIX_DEFAULT_PREFIX=!chatgpt
|
|
|
|
MATRIX_DEFAULT_PREFIX_REPLY=false
|
|
|
|
|
|
|
|
# Matrix Access Control (optional)
|
|
|
|
# Can be set to user:homeserver or a wildcard like :anotherhomeserver.example
|
|
|
|
MATRIX_BLACKLIST=
|
|
|
|
# `MATRIX_WHITELIST` is overriden by `MATRIX_BLACKLIST` if they contain same entry
|
|
|
|
MATRIX_WHITELIST=
|
|
|
|
|
|
|
|
# Matrix Feature Flags (optional)
|
|
|
|
MATRIX_AUTOJOIN=true
|
|
|
|
MATRIX_ENCRYPTION=true
|
|
|
|
# If you turn threads off you will have problems if you don't set CHATGPT_CONTEXT=room
|
|
|
|
MATRIX_THREADS=true
|
|
|
|
MATRIX_PREFIX_DM=false
|
2023-02-02 07:44:14 -05:00
|
|
|
MATRIX_RICH_TEXT=true
|