2024-04-07 16:44:40 +02:00
|
|
|
# -- DATA CONFIGURATION --
|
2024-04-06 19:09:39 +02:00
|
|
|
# Root directory for user data storage
|
|
|
|
dataRoot: ./data
|
2024-04-07 16:44:40 +02:00
|
|
|
# -- SERVER CONFIGURATION --
|
2023-11-25 22:45:33 +01:00
|
|
|
# Listen for incoming connections
|
2023-12-02 23:54:28 +01:00
|
|
|
listen: false
|
2024-08-15 19:29:17 +02:00
|
|
|
# Enables IPv6 and/or IPv4 protocols. Need to have at least one enabled!
|
2024-08-15 19:12:12 +02:00
|
|
|
protocol:
|
|
|
|
ipv4: true
|
|
|
|
ipv6: false
|
2024-08-15 19:29:17 +02:00
|
|
|
# Prefers IPv6 for DNS. Enable this on ISPs that don't have issues with IPv6
|
2024-08-15 19:12:12 +02:00
|
|
|
dnsPreferIPv6: false
|
2024-08-15 19:29:17 +02:00
|
|
|
# The hostname that autorun opens.
|
|
|
|
# - Use "auto" to let the server decide
|
|
|
|
# - Use options like 'localhost', 'st.example.com'
|
2024-08-15 19:12:12 +02:00
|
|
|
autorunHostname: "auto"
|
2023-11-25 22:45:33 +01:00
|
|
|
# Server port
|
|
|
|
port: 8000
|
2024-08-15 19:29:17 +02:00
|
|
|
# Overrides the port for autorun in browser.
|
|
|
|
# - Use -1 to use the server port.
|
|
|
|
# - Specify a port to override the default.
|
2024-08-15 19:12:12 +02:00
|
|
|
autorunPortOverride: -1
|
2024-04-07 16:44:40 +02:00
|
|
|
# -- SECURITY CONFIGURATION --
|
2023-11-25 22:45:33 +01:00
|
|
|
# Toggle whitelist mode
|
|
|
|
whitelistMode: true
|
2024-04-22 14:52:59 +02:00
|
|
|
# Whitelist will also verify IP in X-Forwarded-For / X-Real-IP headers
|
|
|
|
enableForwardedWhitelist: true
|
2023-11-25 22:45:33 +01:00
|
|
|
# Whitelist of allowed IP addresses
|
|
|
|
whitelist:
|
2024-08-15 19:12:12 +02:00
|
|
|
- ::1
|
2023-11-25 22:45:33 +01:00
|
|
|
- 127.0.0.1
|
|
|
|
# Toggle basic authentication for endpoints
|
|
|
|
basicAuthMode: false
|
|
|
|
# Basic authentication credentials
|
|
|
|
basicAuthUser:
|
2023-11-29 13:05:19 +01:00
|
|
|
username: "user"
|
|
|
|
password: "password"
|
2023-11-25 22:45:33 +01:00
|
|
|
# Enables CORS proxy middleware
|
|
|
|
enableCorsProxy: false
|
2024-09-11 21:36:50 +02:00
|
|
|
# -- REQUEST PROXY CONFIGURATION --
|
|
|
|
requestProxy:
|
|
|
|
# If a proxy is enabled, all outgoing HTTP/HTTPS requests will be routed through it.
|
|
|
|
enabled: false
|
|
|
|
# Proxy URL. Possible protocols: http, https, socks, socks5, socks4, pac
|
|
|
|
url: "socks5://username:password@example.com:1080"
|
|
|
|
# Proxy bypass list. Requests to these hosts won't be routed through the proxy.
|
|
|
|
bypass:
|
|
|
|
- localhost
|
|
|
|
- 127.0.0.1
|
2024-04-07 16:44:40 +02:00
|
|
|
# Enable multi-user mode
|
2024-04-08 01:38:20 +02:00
|
|
|
enableUserAccounts: false
|
2024-04-10 21:00:08 +02:00
|
|
|
# Enable discreet login mode: hides user list on the login screen
|
|
|
|
enableDiscreetLogin: false
|
2024-10-06 09:35:03 +02:00
|
|
|
# Enable's authlia based auto login. Only enable this if you
|
|
|
|
# have setup and installed Authelia as a middle-ware on your
|
|
|
|
# reverse proxy
|
|
|
|
# https://www.authelia.com/
|
|
|
|
# This will use auto login to an account with the same username
|
|
|
|
# as that used for authlia. (Ensure the username in authlia
|
|
|
|
# is an exact match with that in sillytavern)
|
|
|
|
autheliaAuth: false
|
|
|
|
# If `basicAuthMode` and this are enabled then
|
|
|
|
# the username and passwords for basic auth are the same as those
|
|
|
|
# for the individual accounts
|
|
|
|
perUserBasicAuth: false
|
|
|
|
|
2024-08-15 20:25:08 +02:00
|
|
|
# User session timeout *in seconds* (defaults to 24 hours).
|
|
|
|
## Set to a positive number to expire session after a certain time of inactivity
|
|
|
|
## Set to 0 to expire session when the browser is closed
|
|
|
|
## Set to a negative number to disable session expiration
|
|
|
|
sessionTimeout: 86400
|
2024-04-07 15:41:23 +02:00
|
|
|
# Used to sign session cookies. Will be auto-generated if not set
|
|
|
|
cookieSecret: ''
|
2024-04-13 18:35:27 +02:00
|
|
|
# Disable CSRF protection - NOT RECOMMENDED
|
|
|
|
disableCsrfProtection: false
|
|
|
|
# Disable startup security checks - NOT RECOMMENDED
|
2023-11-25 22:45:33 +01:00
|
|
|
securityOverride: false
|
|
|
|
# -- ADVANCED CONFIGURATION --
|
|
|
|
# Open the browser automatically
|
|
|
|
autorun: true
|
2024-08-15 19:12:12 +02:00
|
|
|
# Avoids using 'localhost' for autorun in auto mode.
|
|
|
|
# use if you don't have 'localhost' in your hosts file
|
|
|
|
avoidLocalhost: false
|
2023-11-25 22:45:33 +01:00
|
|
|
# Disable thumbnail generation
|
|
|
|
disableThumbnails: false
|
|
|
|
# Thumbnail quality (0-100)
|
|
|
|
thumbnailsQuality: 95
|
2023-12-22 15:23:50 +01:00
|
|
|
# Generate avatar thumbnails as PNG instead of JPG (preserves transparency but increases filesize by about 100%)
|
|
|
|
# Changing this only affects new thumbnails. To recreate the old ones, clear out your ST/thumbnails/ folder.
|
|
|
|
avatarThumbnailsPng: false
|
2023-11-25 22:45:33 +01:00
|
|
|
# Allow secret keys exposure via API
|
|
|
|
allowKeysExposure: false
|
|
|
|
# Skip new default content checks
|
|
|
|
skipContentCheck: false
|
|
|
|
# Disable automatic chats backup
|
|
|
|
disableChatBackup: false
|
2024-07-01 00:17:56 +02:00
|
|
|
# Number of backups to keep for each chat and settings file
|
|
|
|
numberOfBackups: 50
|
2024-09-17 17:18:35 +02:00
|
|
|
# Interval in milliseconds to throttle chat backups per user
|
|
|
|
chatBackupThrottleInterval: 10000
|
2024-05-01 18:52:34 +02:00
|
|
|
# Allowed hosts for card downloads
|
|
|
|
whitelistImportDomains:
|
|
|
|
- localhost
|
|
|
|
- cdn.discordapp.com
|
|
|
|
- files.catbox.moe
|
|
|
|
- raw.githubusercontent.com
|
2023-11-25 22:45:33 +01:00
|
|
|
# API request overrides (for KoboldAI and Text Completion APIs)
|
2024-03-13 23:48:08 +01:00
|
|
|
## Note: host includes the port number if it's not the default (80 or 443)
|
2023-11-25 22:45:33 +01:00
|
|
|
## Format is an array of objects:
|
|
|
|
## - hosts:
|
|
|
|
## - example.com
|
|
|
|
## headers:
|
|
|
|
## Content-Type: application/json
|
2024-03-13 23:48:08 +01:00
|
|
|
## - 127.0.0.1:5001
|
|
|
|
## headers:
|
|
|
|
## User-Agent: "Googlebot/2.1 (+http://www.google.com/bot.html)"
|
2023-11-25 22:45:33 +01:00
|
|
|
requestOverrides: []
|
2024-08-25 18:48:01 +02:00
|
|
|
# -- EXTENSIONS CONFIGURATION --
|
2023-11-25 22:45:33 +01:00
|
|
|
# Enable UI extensions
|
|
|
|
enableExtensions: true
|
2024-08-25 18:48:01 +02:00
|
|
|
# Automatically update extensions when a release version changes
|
|
|
|
enableExtensionsAutoUpdate: true
|
2024-09-06 18:28:34 +02:00
|
|
|
# Additional model tokenizers can be downloaded on demand.
|
|
|
|
# Disabling will fallback to another locally available tokenizer.
|
|
|
|
enableDownloadableTokenizers: true
|
2023-11-25 22:45:33 +01:00
|
|
|
# Extension settings
|
|
|
|
extras:
|
|
|
|
# Disables automatic model download from HuggingFace
|
|
|
|
disableAutoDownload: false
|
|
|
|
# Extra models for plugins. Expects model IDs from HuggingFace model hub in ONNX format
|
|
|
|
classificationModel: Cohee/distilbert-base-uncased-go-emotions-onnx
|
|
|
|
captioningModel: Xenova/vit-gpt2-image-captioning
|
2023-12-31 03:00:27 +01:00
|
|
|
embeddingModel: Cohee/jina-embeddings-v2-base-en
|
2024-02-01 23:36:40 +01:00
|
|
|
speechToTextModel: Xenova/whisper-small
|
2024-02-02 00:51:02 +01:00
|
|
|
textToSpeechModel: Xenova/speecht5_tts
|
2023-11-28 23:11:10 +01:00
|
|
|
# -- OPENAI CONFIGURATION --
|
2024-10-05 15:09:39 +02:00
|
|
|
# A placeholder message to use in strict prompt post-processing mode when the prompt doesn't start with a user message
|
|
|
|
promptPlaceholder: "[Start a new chat]"
|
2023-11-28 23:11:10 +01:00
|
|
|
openai:
|
|
|
|
# Will send a random user ID to OpenAI completion API
|
|
|
|
randomizeUserId: false
|
2023-12-17 18:41:20 +01:00
|
|
|
# If not empty, will add this as a system message to the start of every caption completion prompt
|
2023-12-20 14:51:00 +01:00
|
|
|
# Example: "Perform the instructions to the best of your ability.\n" (for LLaVA)
|
2023-12-17 18:41:20 +01:00
|
|
|
# Not used in image inlining mode
|
|
|
|
captionSystemPrompt: ""
|
2023-12-01 13:12:56 +01:00
|
|
|
# -- DEEPL TRANSLATION CONFIGURATION --
|
|
|
|
deepl:
|
|
|
|
# Available options: default, more, less, prefer_more, prefer_less
|
|
|
|
formality: default
|
2024-07-27 18:57:40 +02:00
|
|
|
# -- MISTRAL API CONFIGURATION --
|
|
|
|
mistral:
|
|
|
|
# Enables prefilling of the reply with the last assistant message in the prompt
|
|
|
|
# CAUTION: The prefix is echoed into the completion. You may want to use regex to trim it out.
|
|
|
|
enablePrefix: false
|
2024-08-11 16:32:31 +02:00
|
|
|
# -- OLLAMA API CONFIGURATION --
|
|
|
|
ollama:
|
|
|
|
# Controls how long the model will stay loaded into memory following the request
|
|
|
|
# * -1: Keep the model loaded indefinitely
|
|
|
|
# * 0: Unload the model immediately after the request
|
2024-08-24 09:15:48 +02:00
|
|
|
# * N (any positive number): Keep the model loaded for N seconds after the request.
|
2024-08-11 16:32:31 +02:00
|
|
|
keepAlive: -1
|
2024-08-15 20:25:08 +02:00
|
|
|
# -- ANTHROPIC CLAUDE API CONFIGURATION --
|
|
|
|
claude:
|
|
|
|
# Enables caching of the system prompt (if supported).
|
|
|
|
# https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
|
|
|
|
# -- IMPORTANT! --
|
|
|
|
# Use only when the prompt before the chat history is static and doesn't change between requests
|
|
|
|
# (e.g {{random}} macro or lorebooks not as in-chat injections).
|
|
|
|
# Otherwise, you'll just waste money on cache misses.
|
|
|
|
enableSystemPromptCache: false
|
2024-11-17 12:32:36 +01:00
|
|
|
# Enables caching of the message history at depth (if supported).
|
|
|
|
# https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
|
|
|
|
# -- IMPORTANT! --
|
|
|
|
# Use with caution. Behavior may be unpredictable and no guarantees can or will be made.
|
|
|
|
# Set to an integer to specify the desired depth. 0 (which does NOT include the prefill)
|
|
|
|
# should be ideal for most use cases.
|
|
|
|
cachingAtDepth: false
|
2023-12-16 21:21:40 +01:00
|
|
|
# -- SERVER PLUGIN CONFIGURATION --
|
|
|
|
enableServerPlugins: false
|