SillyTavern/default/config.yaml

98 lines
3.3 KiB
YAML
Raw Normal View History

2024-04-07 16:44:40 +02:00
# -- DATA CONFIGURATION --
# 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
2023-11-25 22:45:33 +01:00
# Server port
port: 8000
2024-04-07 16:44:40 +02:00
# -- SECURITY CONFIGURATION --
2023-11-25 22:45:33 +01:00
# Toggle whitelist mode
whitelistMode: true
# 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:
- 127.0.0.1
# Toggle basic authentication for endpoints
basicAuthMode: false
# Basic authentication credentials
basicAuthUser:
username: "user"
password: "password"
2023-11-25 22:45:33 +01:00
# Enables CORS proxy middleware
enableCorsProxy: false
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
# 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
2023-11-25 22:45:33 +01:00
securityOverride: false
# -- ADVANCED CONFIGURATION --
# Open the browser automatically
autorun: true
# 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
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
# Number of backups to keep for each chat and settings file
numberOfBackups: 50
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)
## 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
## - 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: []
# -- PLUGIN CONFIGURATION --
# Enable UI extensions
enableExtensions: 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
2023-12-31 03:00:27 +01:00
embeddingModel: Cohee/jina-embeddings-v2-base-en
2023-11-25 22:45:33 +01:00
promptExpansionModel: Cohee/fooocus_expansion-onnx
speechToTextModel: Xenova/whisper-small
2024-02-02 00:51:02 +01:00
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
2023-12-20 14:51:00 +01:00
# Example: "Perform the instructions to the best of your ability.\n" (for LLaVA)
# 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
2023-12-16 21:21:40 +01:00
# -- SERVER PLUGIN CONFIGURATION --
enableServerPlugins: false