2023-04-17 20:28:29 +00:00
|
|
|
# Copy this file to config.ini and replace the values below to match your needs
|
|
|
|
#
|
|
|
|
# The values that are not commented have to be set, everything else comes with
|
|
|
|
# sensible defaults.
|
|
|
|
|
2023-04-16 14:08:57 +00:00
|
|
|
[OpenAI]
|
2023-04-17 20:28:29 +00:00
|
|
|
|
|
|
|
# The Chat Completion model you want to use.
|
|
|
|
#
|
|
|
|
# Unless you are in the GPT-4 beta (if you don't know - you aren't),
|
|
|
|
# leave this as the default value (gpt-3.5-turbo)
|
|
|
|
#
|
|
|
|
# Model = gpt-3.5-turbo
|
|
|
|
|
|
|
|
# Your OpenAI API key
|
|
|
|
#
|
|
|
|
# Find this in your OpenAI account:
|
|
|
|
# https://platform.openai.com/account/api-keys
|
|
|
|
#
|
2023-04-16 14:08:57 +00:00
|
|
|
APIKey = sk-yoursecretkey
|
|
|
|
|
2023-04-17 20:28:29 +00:00
|
|
|
# The maximum amount of input sent to the API
|
|
|
|
#
|
|
|
|
# In conjunction with MaxMessage, this determines how much context (= previous
|
|
|
|
# messages) you can send with your query.
|
|
|
|
#
|
|
|
|
# If you set this too high, the responses you receive will become shorter the
|
|
|
|
# longer the conversation gets.
|
|
|
|
#
|
|
|
|
# https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them
|
|
|
|
#
|
|
|
|
# MaxTokens = 3000
|
|
|
|
|
|
|
|
# The maximum number of messages in the room that will be considered as context
|
|
|
|
#
|
|
|
|
# By default, the last (up to) 20 messages will be sent as context, in addition
|
|
|
|
# to the system message and the current query itself.
|
|
|
|
#
|
|
|
|
# MaxMessages = 20
|
|
|
|
|
2023-04-16 14:08:57 +00:00
|
|
|
[Matrix]
|
2023-04-17 20:28:29 +00:00
|
|
|
|
|
|
|
# The URL to your Matrix homeserver
|
|
|
|
#
|
2023-04-16 14:08:57 +00:00
|
|
|
Homeserver = https://matrix.local
|
2023-04-17 20:28:29 +00:00
|
|
|
|
|
|
|
# An Access Token for the user your bot runs as
|
|
|
|
# Can be obtained using a request like this:
|
|
|
|
#
|
|
|
|
# See https://www.matrix.org/docs/guides/client-server-api#login
|
|
|
|
# for information on how to obtain this value
|
|
|
|
#
|
2023-04-16 14:08:57 +00:00
|
|
|
AccessToken = syt_yoursynapsetoken
|
2023-04-17 20:28:29 +00:00
|
|
|
|
|
|
|
# The Matrix user ID of the bot (@local:domain.tld)
|
|
|
|
# Only specify this if the bot fails to figure it out by itself
|
|
|
|
#
|
|
|
|
# UserID = @gptbot:matrix.local
|
|
|
|
|
|
|
|
[GPTBot]
|
|
|
|
|
|
|
|
# The default room name used by the !newroom command
|
|
|
|
# Defaults to GPTBot if not set
|
|
|
|
#
|
|
|
|
# DefaultRoomName = GPTBot
|
|
|
|
|
|
|
|
# Contents of a special message sent to the GPT API with every request.
|
|
|
|
# Can be used to give the bot some context about the environment it's running in
|
|
|
|
#
|
|
|
|
# SystemMessage = You are a helpful bot.
|
|
|
|
|
|
|
|
[Database]
|
|
|
|
|
|
|
|
# Settings for the DuckDB database.
|
|
|
|
# Currently only used to store details on spent tokens per room.
|
|
|
|
# If not defined, the bot will not store this data.
|
|
|
|
|
|
|
|
Path = database.db
|