2023-05-05 10:55:29 -04:00
|
|
|
# Discord Token
|
2023-04-09 20:19:50 -04:00
|
|
|
THE_TOKEN = "DISCORD_TOKEN_HERE"
|
2023-05-05 10:55:29 -04:00
|
|
|
|
|
|
|
# The Channel IDs the bot will operate in seperated by commas
|
2023-04-11 08:50:19 -04:00
|
|
|
CHANNEL_IDS = 1094494101631680653,1094628334727614605
|
2023-05-05 10:55:29 -04:00
|
|
|
|
|
|
|
# The INIT prompt for all conversations.
|
2023-04-16 18:50:04 -04:00
|
|
|
INIT_PROMPT = "Assistant name: ChatAI. You code, write and provide any information without any mistakes."
|
2023-05-05 10:55:29 -04:00
|
|
|
|
|
|
|
# Loading Emebed Refresh Timing
|
|
|
|
REFRESH_INTERVAL=10
|
|
|
|
|
2023-05-05 15:07:39 -04:00
|
|
|
# When a message is too large for discord we chunk the response into seperate messages.
|
|
|
|
# To ensure we do not rate limit the bot we send these at a delay interval.
|
|
|
|
# DEFAULT: 3 a good setting is between 3 and 7 seconds.
|
|
|
|
OVERFLOW_DELAY=3
|
|
|
|
|
2023-05-05 10:55:29 -04:00
|
|
|
# Max Content to fetch from given URLs
|
|
|
|
MAX_CONTENT_LENGTH=2000
|
|
|
|
|
|
|
|
# Max tokens for Generations
|
2023-04-26 20:56:27 -04:00
|
|
|
MAX_TOKENS = 1024
|
2023-04-16 20:07:41 -04:00
|
|
|
|
|
|
|
# ROOT_IP is only used when running the bot without docker compose
|
|
|
|
ROOT_IP = 192.168.0.15
|
|
|
|
|
2023-05-05 10:55:29 -04:00
|
|
|
# PORT is only used when running the bot without docker compose
|
|
|
|
ROOT_PORT = 8000
|
2023-04-16 20:07:41 -04:00
|
|
|
|
2023-05-05 10:55:29 -04:00
|
|
|
# Directory to your models (llama.cpp specfic settings)
|
|
|
|
DATA_DIR = /home/USERNAME/weights
|
2023-05-05 13:31:17 -04:00
|
|
|
|
|
|
|
# Enable Expirmental Message Caches (Limited to single session)
|
|
|
|
# Cache will use ~1.4 GB or MORE of RAM. ONLY ENABLE IF YOUR SYSTEM CAN HANDLE THIS.
|
2023-05-05 10:55:29 -04:00
|
|
|
CACHE = 1
|
2023-05-05 13:31:17 -04:00
|
|
|
|
|
|
|
# Set number of threads to use, currently, a standard thread will utilize 1 whole core
|
|
|
|
# I usually will set this between all cores I physcally have OR 2 cores less to allow for other processes.
|
2023-05-05 10:55:29 -04:00
|
|
|
N_THREADS = 4
|
2023-05-08 15:12:57 -04:00
|
|
|
|
|
|
|
# Always use MMAP unless you know what you are doing
|
|
|
|
USE_MMAP=1
|
|
|
|
|
|
|
|
# Only use MLOCK if you know what it does!
|
|
|
|
USE_MLOCK=0
|