mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 17:36:22 +01:00
158 lines
5.9 KiB
YAML
158 lines
5.9 KiB
YAML
# -- DATA CONFIGURATION --
|
|
# Root directory for user data storage
|
|
dataRoot: ./data
|
|
# -- SERVER CONFIGURATION --
|
|
# Listen for incoming connections
|
|
listen: false
|
|
# Enables IPv6 and/or IPv4 protocols. Need to have at least one enabled!
|
|
protocol:
|
|
ipv4: true
|
|
ipv6: false
|
|
# Prefers IPv6 for DNS. Enable this on ISPs that don't have issues with IPv6
|
|
dnsPreferIPv6: false
|
|
# The hostname that autorun opens.
|
|
# - Use "auto" to let the server decide
|
|
# - Use options like 'localhost', 'st.example.com'
|
|
autorunHostname: "auto"
|
|
# Server port
|
|
port: 8000
|
|
# Overrides the port for autorun in browser.
|
|
# - Use -1 to use the server port.
|
|
# - Specify a port to override the default.
|
|
autorunPortOverride: -1
|
|
# -- SECURITY CONFIGURATION --
|
|
# Toggle whitelist mode
|
|
whitelistMode: true
|
|
# Whitelist will also verify IP in X-Forwarded-For / X-Real-IP headers
|
|
enableForwardedWhitelist: true
|
|
# Whitelist of allowed IP addresses
|
|
whitelist:
|
|
- ::1
|
|
- 127.0.0.1
|
|
# Toggle basic authentication for endpoints
|
|
basicAuthMode: false
|
|
# Basic authentication credentials
|
|
basicAuthUser:
|
|
username: "user"
|
|
password: "password"
|
|
# Enables CORS proxy middleware
|
|
enableCorsProxy: false
|
|
# -- 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
|
|
# Enable multi-user mode
|
|
enableUserAccounts: false
|
|
# Enable discreet login mode: hides user list on the login screen
|
|
enableDiscreetLogin: false
|
|
# 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
|
|
# Used to sign session cookies. Will be auto-generated if not set
|
|
cookieSecret: ''
|
|
# Disable CSRF protection - NOT RECOMMENDED
|
|
disableCsrfProtection: false
|
|
# Disable startup security checks - NOT RECOMMENDED
|
|
securityOverride: false
|
|
# -- ADVANCED CONFIGURATION --
|
|
# Open the browser automatically
|
|
autorun: true
|
|
# Avoids using 'localhost' for autorun in auto mode.
|
|
# use if you don't have 'localhost' in your hosts file
|
|
avoidLocalhost: false
|
|
# Disable thumbnail generation
|
|
disableThumbnails: false
|
|
# Thumbnail quality (0-100)
|
|
thumbnailsQuality: 95
|
|
# 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
|
|
# Allow secret keys exposure via API
|
|
allowKeysExposure: false
|
|
# Skip new default content checks
|
|
skipContentCheck: false
|
|
# Disable automatic chats backup
|
|
disableChatBackup: false
|
|
# Number of backups to keep for each chat and settings file
|
|
numberOfBackups: 50
|
|
# Interval in milliseconds to throttle chat backups per user
|
|
chatBackupThrottleInterval: 10000
|
|
# Allowed hosts for card downloads
|
|
whitelistImportDomains:
|
|
- localhost
|
|
- cdn.discordapp.com
|
|
- files.catbox.moe
|
|
- raw.githubusercontent.com
|
|
# API request overrides (for KoboldAI and Text Completion APIs)
|
|
## Note: host includes the port number if it's not the default (80 or 443)
|
|
## Format is an array of objects:
|
|
## - hosts:
|
|
## - example.com
|
|
## headers:
|
|
## Content-Type: application/json
|
|
## - 127.0.0.1:5001
|
|
## headers:
|
|
## User-Agent: "Googlebot/2.1 (+http://www.google.com/bot.html)"
|
|
requestOverrides: []
|
|
# -- EXTENSIONS CONFIGURATION --
|
|
# Enable UI extensions
|
|
enableExtensions: true
|
|
# Automatically update extensions when a release version changes
|
|
enableExtensionsAutoUpdate: true
|
|
# Additional model tokenizers can be downloaded on demand.
|
|
# Disabling will fallback to another locally available tokenizer.
|
|
enableDownloadableTokenizers: true
|
|
# 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
|
|
embeddingModel: Cohee/jina-embeddings-v2-base-en
|
|
speechToTextModel: Xenova/whisper-small
|
|
textToSpeechModel: Xenova/speecht5_tts
|
|
# -- OPENAI CONFIGURATION --
|
|
openai:
|
|
# Will send a random user ID to OpenAI completion API
|
|
randomizeUserId: false
|
|
# If not empty, will add this as a system message to the start of every caption completion prompt
|
|
# Example: "Perform the instructions to the best of your ability.\n" (for LLaVA)
|
|
# Not used in image inlining mode
|
|
captionSystemPrompt: ""
|
|
# -- DEEPL TRANSLATION CONFIGURATION --
|
|
deepl:
|
|
# Available options: default, more, less, prefer_more, prefer_less
|
|
formality: default
|
|
# -- 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
|
|
# -- 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
|
|
# * N (any positive number): Keep the model loaded for N seconds after the request.
|
|
keepAlive: -1
|
|
# -- 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
|
|
# -- SERVER PLUGIN CONFIGURATION --
|
|
enableServerPlugins: false
|