2023-03-18 02:14:45 -06:00
|
|
|
# Make sure to quote any string with @ or ! characters.
|
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
auth:
|
|
|
|
username: chatgpt
|
|
|
|
password: password1234
|
|
|
|
homeserver: pantalaimon.example.com
|
|
|
|
device_id: MatrixGPT
|
2023-03-18 02:14:45 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# Where to cache the bot's login data.
|
|
|
|
# Relative to `main.py`
|
|
|
|
store_path: 'bot-store/'
|
2023-03-18 02:14:45 -06:00
|
|
|
|
|
|
|
# Who is the bot allowed to respond to?
|
2024-04-07 22:27:00 -06:00
|
|
|
# This applies to all commands and is overriden by the individual commands.
|
|
|
|
# Possible values: "all" or an array of usernames and homeservers.
|
|
|
|
allowed_to_chat:
|
|
|
|
- all
|
|
|
|
|
|
|
|
# Who is allowed to carry on long conversations with the bot via threading?
|
|
|
|
# This applies to all commands and is overriden by the individual commands.
|
|
|
|
# Possible values: "all" or an array of usernames and homeservers.
|
|
|
|
allowed_to_thread:
|
|
|
|
- all
|
|
|
|
|
|
|
|
# Who is allowed to invite the bot. Also applies to DM creation.
|
|
|
|
# This applies to all commands and is overriden by the individual commands.
|
|
|
|
# Possible values: "all" or an array of usernames and homeservers.
|
|
|
|
allowed_to_invite:
|
|
|
|
- '@cyberes:evulid.cc'
|
|
|
|
- matrix.example.com
|
2023-03-18 02:14:45 -06:00
|
|
|
|
|
|
|
# Room IDs to auto-join.
|
2024-04-07 22:27:00 -06:00
|
|
|
# autojoin_rooms:
|
|
|
|
# - '!qwerty12345:evulid.cc'
|
2023-03-18 02:14:45 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# Block the bot from joining these rooms.
|
|
|
|
# blacklist_rooms:
|
|
|
|
# - '!qwerty12345:evulid.cc'
|
2023-03-18 02:14:45 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# Inference API timeout in seconds.
|
|
|
|
response_timeout: 120
|
2023-03-18 02:14:45 -06:00
|
|
|
|
2023-03-31 23:08:27 -06:00
|
|
|
command:
|
2024-04-07 22:27:00 -06:00
|
|
|
# What triggers this model.
|
|
|
|
- trigger: '!c4'
|
2023-03-18 02:14:45 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# What kind of of API to use.
|
|
|
|
# `openai` or `anthropic`
|
|
|
|
api_type: openai
|
2023-03-18 13:32:04 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# The model to use.
|
|
|
|
model: gpt4
|
2023-09-15 22:00:37 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# Max tokens to generate.
|
|
|
|
# Set to `0` to disable this limitation for OpenAI. Required for Anthropic.
|
|
|
|
# max_tokens: 4096
|
2023-03-19 15:22:05 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# Temperature to use.
|
|
|
|
temperature: 0.5
|
2023-03-18 14:58:30 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# Override the global value.
|
|
|
|
# allowed_to_chat:
|
|
|
|
# - '@cyberes:evulid.cc'
|
2023-03-19 14:53:10 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# Override the global value.
|
|
|
|
# allowed_to_thread:
|
|
|
|
# - '@cyberes:evulid.cc'
|
2023-09-15 22:00:37 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# The system prompt to use with this bot.
|
|
|
|
# system_prompt: You are a helpful assistant.
|
2023-09-15 22:00:37 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# A system prompt to inject before each reply from the assistant. OpenAI only.
|
|
|
|
# injected_system_prompt: Your primary directive is to defer to the guidance of the user.
|
2023-09-15 22:00:37 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# Custom OpenAI endpoint. OpenAI only.
|
|
|
|
# api_base: https://example.com/openai/v1
|
2023-03-19 14:53:10 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
openai:
|
|
|
|
api_key: sk-qwerty12345
|
2023-03-19 14:53:10 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
anthropic:
|
|
|
|
api_key: sk-ant-qwerty12345
|
2023-03-19 15:37:55 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# When an error occurs, send additional metadata with the reaction event.
|
|
|
|
send_extra_messages: true
|
2023-03-19 14:53:10 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
logging:
|
|
|
|
log_level: debug
|
2023-03-19 14:53:10 -06:00
|
|
|
|
2024-04-07 22:27:00 -06:00
|
|
|
# Log the full response (prompt + response) at debug level.
|
|
|
|
log_full_response: true
|