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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -- DATA CONFIGURATION --
|
| 2 |
+
# Root directory for user data storage
|
| 3 |
+
dataRoot: ./data
|
| 4 |
+
# -- SERVER CONFIGURATION --
|
| 5 |
+
# Listen for incoming connections
|
| 6 |
+
listen: false
|
| 7 |
+
# Listen on a specific address, supports IPv4 and IPv6
|
| 8 |
+
listenAddress:
|
| 9 |
+
ipv4: 0.0.0.0
|
| 10 |
+
ipv6: '[::]'
|
| 11 |
+
# Enables IPv6 and/or IPv4 protocols. Need to have at least one enabled!
|
| 12 |
+
# - Use option "auto" to automatically detect support
|
| 13 |
+
# - Use true or false (no qoutes) to enable or disable each protocol
|
| 14 |
+
protocol:
|
| 15 |
+
ipv4: true
|
| 16 |
+
ipv6: false
|
| 17 |
+
# Prefers IPv6 for DNS. Enable this on ISPs that don't have issues with IPv6
|
| 18 |
+
dnsPreferIPv6: false
|
| 19 |
+
# The hostname that autorun opens.
|
| 20 |
+
# - Use "auto" to let the server decide
|
| 21 |
+
# - Use options like 'localhost', 'st.example.com'
|
| 22 |
+
autorunHostname: "auto"
|
| 23 |
+
# Server port
|
| 24 |
+
port: 8000
|
| 25 |
+
# Overrides the port for autorun in browser.
|
| 26 |
+
# - Use -1 to use the server port.
|
| 27 |
+
# - Specify a port to override the default.
|
| 28 |
+
autorunPortOverride: -1
|
| 29 |
+
# -- SSL options --
|
| 30 |
+
ssl:
|
| 31 |
+
enabled: false
|
| 32 |
+
certPath: "./certs/cert.pem"
|
| 33 |
+
keyPath: "./certs/privkey.pem"
|
| 34 |
+
# -- SECURITY CONFIGURATION --
|
| 35 |
+
# Toggle whitelist mode
|
| 36 |
+
whitelistMode: false
|
| 37 |
+
# Whitelist will also verify IP in X-Forwarded-For / X-Real-IP headers
|
| 38 |
+
enableForwardedWhitelist: true
|
| 39 |
+
# Whitelist of allowed IP addresses
|
| 40 |
+
whitelist:
|
| 41 |
+
- ::1
|
| 42 |
+
- 127.0.0.1
|
| 43 |
+
# Automatically whitelist Docker host and gateway IPs
|
| 44 |
+
whitelistDockerHosts: true
|
| 45 |
+
# Toggle basic authentication for endpoints
|
| 46 |
+
basicAuthMode: false
|
| 47 |
+
# Basic authentication credentials
|
| 48 |
+
basicAuthUser:
|
| 49 |
+
username: "user"
|
| 50 |
+
password: "password"
|
| 51 |
+
# Enables CORS proxy middleware
|
| 52 |
+
enableCorsProxy: false
|
| 53 |
+
# -- REQUEST PROXY CONFIGURATION --
|
| 54 |
+
requestProxy:
|
| 55 |
+
# If a proxy is enabled, all outgoing HTTP/HTTPS requests will be routed through it.
|
| 56 |
+
enabled: false
|
| 57 |
+
# Proxy URL. Possible protocols: http, https, socks, socks5, socks4, pac
|
| 58 |
+
url: "socks5://username:password@example.com:1080"
|
| 59 |
+
# Proxy bypass list. Requests to these hosts won't be routed through the proxy.
|
| 60 |
+
bypass:
|
| 61 |
+
- localhost
|
| 62 |
+
- 127.0.0.1
|
| 63 |
+
# Enable multi-user mode
|
| 64 |
+
enableUserAccounts: false
|
| 65 |
+
# Enable discreet login mode: hides user list on the login screen
|
| 66 |
+
enableDiscreetLogin: false
|
| 67 |
+
# Enable's authlia based auto login. Only enable this if you
|
| 68 |
+
# have setup and installed Authelia as a middle-ware on your
|
| 69 |
+
# reverse proxy
|
| 70 |
+
# https://www.authelia.com/
|
| 71 |
+
# This will use auto login to an account with the same username
|
| 72 |
+
# as that used for authlia. (Ensure the username in authlia
|
| 73 |
+
# is an exact match with that in sillytavern)
|
| 74 |
+
autheliaAuth: false
|
| 75 |
+
# If `basicAuthMode` and this are enabled then
|
| 76 |
+
# the username and passwords for basic auth are the same as those
|
| 77 |
+
# for the individual accounts
|
| 78 |
+
perUserBasicAuth: false
|
| 79 |
+
|
| 80 |
+
# User session timeout *in seconds* (defaults to 24 hours).
|
| 81 |
+
## Set to a positive number to expire session after a certain time of inactivity
|
| 82 |
+
## Set to 0 to expire session when the browser is closed
|
| 83 |
+
## Set to a negative number to disable session expiration
|
| 84 |
+
sessionTimeout: -1
|
| 85 |
+
# Disable CSRF protection - NOT RECOMMENDED
|
| 86 |
+
disableCsrfProtection: false
|
| 87 |
+
# Disable startup security checks - NOT RECOMMENDED
|
| 88 |
+
securityOverride: false
|
| 89 |
+
# -- LOGGING CONFIGURATION --
|
| 90 |
+
logging:
|
| 91 |
+
# Enable access logging to access.log file
|
| 92 |
+
# Records new connections with timestamp, IP address and user agent
|
| 93 |
+
enableAccessLog: true
|
| 94 |
+
# Minimum log level to display in the terminal (DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3)
|
| 95 |
+
minLogLevel: 0
|
| 96 |
+
# -- RATE LIMITING CONFIGURATION --
|
| 97 |
+
rateLimiting:
|
| 98 |
+
# Use X-Real-IP header instead of socket IP for rate limiting
|
| 99 |
+
# Only enable this if you are using a properly configured reverse proxy (like Nginx/traefik/Caddy)
|
| 100 |
+
preferRealIpHeader: false
|
| 101 |
+
# -- ADVANCED CONFIGURATION --
|
| 102 |
+
# Open the browser automatically
|
| 103 |
+
autorun: true
|
| 104 |
+
# Avoids using 'localhost' for autorun in auto mode.
|
| 105 |
+
# use if you don't have 'localhost' in your hosts file
|
| 106 |
+
avoidLocalhost: false
|
| 107 |
+
|
| 108 |
+
## BACKUP CONFIGURATION
|
| 109 |
+
backups:
|
| 110 |
+
# Common settings for all backup types
|
| 111 |
+
common:
|
| 112 |
+
# Number of backups to keep for each chat and settings file
|
| 113 |
+
numberOfBackups: 50
|
| 114 |
+
chat:
|
| 115 |
+
# Enable automatic chat backups
|
| 116 |
+
enabled: true
|
| 117 |
+
# Verify integrity of chat files before saving
|
| 118 |
+
checkIntegrity: true
|
| 119 |
+
# Maximum number of chat backups to keep per user (starting from the most recent). Set to -1 to keep all backups.
|
| 120 |
+
maxTotalBackups: -1
|
| 121 |
+
# Interval in milliseconds to throttle chat backups per user
|
| 122 |
+
throttleInterval: 10000
|
| 123 |
+
|
| 124 |
+
# THUMBNAILING CONFIGURATION
|
| 125 |
+
thumbnails:
|
| 126 |
+
# Enable thumbnail generation
|
| 127 |
+
enabled: true
|
| 128 |
+
# Image format of avatar thumbnails:
|
| 129 |
+
# * "jpg": best compression with adjustable quality, no transparency
|
| 130 |
+
# * "png": preserves transparency but increases filesize by about 100%
|
| 131 |
+
# Changing this only affects new thumbnails. To recreate the old ones, clear out /thumbnails folder in your user data.
|
| 132 |
+
format: "jpg"
|
| 133 |
+
# JPG thumbnail quality (0-100)
|
| 134 |
+
quality: 95
|
| 135 |
+
# Maximum thumbnail dimensions per type [width, height]
|
| 136 |
+
dimensions: { 'bg': [160, 90], 'avatar': [96, 144] }
|
| 137 |
+
|
| 138 |
+
# PERFORMANCE-RELATED CONFIGURATION
|
| 139 |
+
performance:
|
| 140 |
+
# Enables lazy loading of character cards. Improves performances with large card libraries.
|
| 141 |
+
# May have compatibility issues with some extensions.
|
| 142 |
+
lazyLoadCharacters: false
|
| 143 |
+
# The maximum amount of memory that parsed character cards can use. Set to 0 to disable memory caching.
|
| 144 |
+
memoryCacheCapacity: '100mb'
|
| 145 |
+
# Enables disk caching for character cards. Improves performances with large card libraries.
|
| 146 |
+
useDiskCache: true
|
| 147 |
+
|
| 148 |
+
# Allow secret keys exposure via API
|
| 149 |
+
allowKeysExposure: false
|
| 150 |
+
# Skip new default content checks
|
| 151 |
+
skipContentCheck: false
|
| 152 |
+
# Allowed hosts for card downloads
|
| 153 |
+
whitelistImportDomains:
|
| 154 |
+
- localhost
|
| 155 |
+
- cdn.discordapp.com
|
| 156 |
+
- files.catbox.moe
|
| 157 |
+
- raw.githubusercontent.com
|
| 158 |
+
- char-archive.evulid.cc
|
| 159 |
+
# API request overrides (for KoboldAI and Text Completion APIs)
|
| 160 |
+
## Note: host includes the port number if it's not the default (80 or 443)
|
| 161 |
+
## Format is an array of objects:
|
| 162 |
+
## - hosts:
|
| 163 |
+
## - example.com
|
| 164 |
+
## headers:
|
| 165 |
+
## Content-Type: application/json
|
| 166 |
+
## - 127.0.0.1:5001
|
| 167 |
+
## headers:
|
| 168 |
+
## User-Agent: "Googlebot/2.1 (+http://www.google.com/bot.html)"
|
| 169 |
+
requestOverrides: []
|
| 170 |
+
|
| 171 |
+
# EXTENSIONS CONFIGURATION
|
| 172 |
+
extensions:
|
| 173 |
+
# Enable UI extensions
|
| 174 |
+
enabled: true
|
| 175 |
+
# Automatically update extensions when a release version changes
|
| 176 |
+
autoUpdate: true
|
| 177 |
+
models:
|
| 178 |
+
# Enables automatic model download from HuggingFace
|
| 179 |
+
autoDownload: true
|
| 180 |
+
# Additional models for extensions. Expects model IDs from HuggingFace model hub in ONNX format
|
| 181 |
+
classification: Cohee/distilbert-base-uncased-go-emotions-onnx
|
| 182 |
+
captioning: Xenova/vit-gpt2-image-captioning
|
| 183 |
+
embedding: Cohee/jina-embeddings-v2-base-en
|
| 184 |
+
speechToText: Xenova/whisper-small
|
| 185 |
+
textToSpeech: Xenova/speecht5_tts
|
| 186 |
+
|
| 187 |
+
# Additional model tokenizers can be downloaded on demand.
|
| 188 |
+
# Disabling will fallback to another locally available tokenizer.
|
| 189 |
+
enableDownloadableTokenizers: true
|
| 190 |
+
# -- OPENAI CONFIGURATION --
|
| 191 |
+
# A placeholder message to use in strict prompt post-processing mode when the prompt doesn't start with a user message
|
| 192 |
+
promptPlaceholder: "[Start a new chat]"
|
| 193 |
+
openai:
|
| 194 |
+
# Will send a random user ID to OpenAI completion API
|
| 195 |
+
randomizeUserId: false
|
| 196 |
+
# If not empty, will add this as a system message to the start of every caption completion prompt
|
| 197 |
+
# Example: "Perform the instructions to the best of your ability.\n" (for LLaVA)
|
| 198 |
+
# Not used in image inlining mode
|
| 199 |
+
captionSystemPrompt: ""
|
| 200 |
+
# -- DEEPL TRANSLATION CONFIGURATION --
|
| 201 |
+
deepl:
|
| 202 |
+
# Available options: default, more, less, prefer_more, prefer_less
|
| 203 |
+
formality: default
|
| 204 |
+
# -- MISTRAL API CONFIGURATION --
|
| 205 |
+
mistral:
|
| 206 |
+
# Enables prefilling of the reply with the last assistant message in the prompt
|
| 207 |
+
# CAUTION: The prefix is echoed into the completion. You may want to use regex to trim it out.
|
| 208 |
+
enablePrefix: false
|
| 209 |
+
# -- OLLAMA API CONFIGURATION --
|
| 210 |
+
ollama:
|
| 211 |
+
# Controls how long the model will stay loaded into memory following the request
|
| 212 |
+
# * -1: Keep the model loaded indefinitely
|
| 213 |
+
# * 0: Unload the model immediately after the request
|
| 214 |
+
# * N (any positive number): Keep the model loaded for N seconds after the request.
|
| 215 |
+
keepAlive: -1
|
| 216 |
+
# Controls the "num_batch" (batch size) parameter of the generation request
|
| 217 |
+
# * -1: Use the default value of the model
|
| 218 |
+
# * N (positive number): Use the specified value. Must be a power of 2, e.g. 128, 256, 512, etc.
|
| 219 |
+
batchSize: -1
|
| 220 |
+
# -- ANTHROPIC CLAUDE API CONFIGURATION --
|
| 221 |
+
claude:
|
| 222 |
+
# Enables caching of the system prompt (if supported).
|
| 223 |
+
# https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
|
| 224 |
+
# -- IMPORTANT! --
|
| 225 |
+
# Use only when the prompt before the chat history is static and doesn't change between requests
|
| 226 |
+
# (e.g {{random}} macro or lorebooks not as in-chat injections).
|
| 227 |
+
# Otherwise, you'll just waste money on cache misses.
|
| 228 |
+
enableSystemPromptCache: false
|
| 229 |
+
# Enables caching of the message history at depth (if supported).
|
| 230 |
+
# https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
|
| 231 |
+
# -- IMPORTANT! --
|
| 232 |
+
# Use with caution. Behavior may be unpredictable and no guarantees can or will be made.
|
| 233 |
+
# Set to an integer to specify the desired depth. 0 (which does NOT include the prefill)
|
| 234 |
+
# should be ideal for most use cases.
|
| 235 |
+
# Any value other than a non-negative integer will be ignored and caching at depth will not be enabled.
|
| 236 |
+
cachingAtDepth: -1
|
| 237 |
+
# -- SERVER PLUGIN CONFIGURATION --
|
| 238 |
+
enableServerPlugins: false
|
| 239 |
+
# Attempt to automatically update server plugins on startup
|
| 240 |
+
enableServerPluginsAutoUpdate: true
|