duzhong commited on
Commit
09e8c1d
·
verified ·
1 Parent(s): 79ccefd

Upload default/config.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. default/config.yaml +302 -0
default/config.yaml ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # -- BROWSER LAUNCH CONFIGURATION --
20
+ browserLaunch:
21
+ # Open the browser automatically on server startup.
22
+ enabled: true
23
+ # Browser to use for opening the URL.
24
+ # NOT SUPPORTED ON ANDROID DEVICES.
25
+ # - Use "default" to use the system default browser
26
+ # - Use "firefox", "chrome", "edge"
27
+ browser: 'default'
28
+ # Overrides the hostname that opens in the browser.
29
+ # - Use "auto" to let the server decide
30
+ # - Use options like 'localhost', 'st.example.com'
31
+ hostname: 'auto'
32
+ # Overrides the port for run in the browser.
33
+ # - Use -1 to use the server port.
34
+ # - Specify a port to override the default.
35
+ port: -1
36
+ # Avoids using 'localhost' as the hostname in auto mode.
37
+ # Use if you don't have 'localhost' in your hosts file
38
+ avoidLocalhost: false
39
+ # Server port
40
+ port: 8000
41
+ # -- SSL options --
42
+ ssl:
43
+ # Enable SSL/TLS encryption
44
+ enabled: false
45
+ # Path to certificate (relative to server root)
46
+ certPath: "./certs/cert.pem"
47
+ # Path to private key (relative to server root)
48
+ keyPath: "./certs/privkey.pem"
49
+ # Private key passphrase (leave empty if not needed)
50
+ # For better security, use a CLI argument or an environment variable (SILLYTAVERN_SSL_KEYPASSPHRASE)
51
+ keyPassphrase: ""
52
+ # -- SECURITY CONFIGURATION --
53
+ # Toggle whitelist mode
54
+ whitelistMode: true
55
+ # Whitelist will also verify IP in X-Forwarded-For / X-Real-IP headers
56
+ enableForwardedWhitelist: true
57
+ # Whitelist of allowed IP addresses
58
+ whitelist:
59
+ - ::1
60
+ - 127.0.0.1
61
+ # Automatically whitelist Docker host and gateway IPs
62
+ whitelistDockerHosts: true
63
+ # Toggle basic authentication for endpoints
64
+ basicAuthMode: false
65
+ # Basic authentication credentials
66
+ basicAuthUser:
67
+ username: "user"
68
+ password: "password"
69
+ # Enables CORS proxy middleware
70
+ enableCorsProxy: false
71
+ # -- REQUEST PROXY CONFIGURATION --
72
+ requestProxy:
73
+ # If a proxy is enabled, all outgoing HTTP/HTTPS requests will be routed through it.
74
+ enabled: false
75
+ # Proxy URL. Possible protocols: http, https, socks, socks5, socks4, pac
76
+ url: "socks5://username:password@example.com:1080"
77
+ # Proxy bypass list. Requests to these hosts won't be routed through the proxy.
78
+ bypass:
79
+ - localhost
80
+ - 127.0.0.1
81
+ # Enable multi-user mode
82
+ enableUserAccounts: false
83
+ # Enable discreet login mode: hides user list on the login screen
84
+ enableDiscreetLogin: false
85
+ # If `basicAuthMode` and this are enabled then
86
+ # the username and passwords for basic auth are the same as those
87
+ # for the individual accounts
88
+ perUserBasicAuth: false
89
+
90
+ # -- SSO LOGIN CONFIGURATION --
91
+ sso:
92
+ # Enable's authlia based auto login. Only enable this if you
93
+ # have setup and installed Authelia as a middle-ware on your
94
+ # reverse proxy
95
+ # https://www.authelia.com/
96
+ # This will use auto login to an account with the same username
97
+ # as that used for authlia. (Ensure the username in authlia
98
+ # is an exact match in lowercase with that in sillytavern)
99
+ autheliaAuth: false
100
+ # Enable's authentik based auto login. Only enable this if you
101
+ # have setup and installed Authentik as a middle-ware on your
102
+ # reverse proxy.
103
+ # https://goauthentik.io/
104
+ # This will use auto login to an account with the same username
105
+ # as that used for authentik. (Ensure the username in authentik
106
+ # is an exact match in lowercase with that in sillytavern).
107
+ authentikAuth: false
108
+
109
+ # Host whitelist configuration. Recommended if you're using a listen mode
110
+ hostWhitelist:
111
+ # Enable or disable host whitelisting
112
+ enabled: false
113
+ # Scan incoming requests for potential host header spoofing
114
+ scan: true
115
+ # List of allowed hosts. Do not include localhost or IPs, these are safe.
116
+ # Use a dot to create subdomain patterns.
117
+ # Examples:
118
+ # - example.com
119
+ hosts: []
120
+
121
+ # User session timeout *in seconds* (defaults to 24 hours).
122
+ ## Set to a positive number to expire session after a certain time of inactivity
123
+ ## Set to 0 to expire session when the browser is closed
124
+ ## Set to a negative number to disable session expiration
125
+ sessionTimeout: -1
126
+ # Disable CSRF protection - NOT RECOMMENDED
127
+ disableCsrfProtection: false
128
+ # Disable startup security checks - NOT RECOMMENDED
129
+ securityOverride: false
130
+ # -- LOGGING CONFIGURATION --
131
+ logging:
132
+ # Enable access logging to access.log file and console output
133
+ # Records new connections with timestamp, IP address and user agent
134
+ enableAccessLog: true
135
+ # Minimum log level to display in the terminal (DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3)
136
+ minLogLevel: 0
137
+ # -- RATE LIMITING CONFIGURATION --
138
+ rateLimiting:
139
+ # Use X-Real-IP header instead of socket IP for rate limiting
140
+ # Only enable this if you are using a properly configured reverse proxy (like Nginx/traefik/Caddy)
141
+ preferRealIpHeader: false
142
+
143
+ ## BACKUP CONFIGURATION
144
+ backups:
145
+ # Common settings for all backup types
146
+ common:
147
+ # Number of backups to keep for each chat and settings file
148
+ numberOfBackups: 50
149
+ chat:
150
+ # Enable automatic chat backups
151
+ enabled: true
152
+ # Verify integrity of chat files before saving
153
+ checkIntegrity: true
154
+ # Maximum number of chat backups to keep per user (starting from the most recent). Set to -1 to keep all backups.
155
+ maxTotalBackups: -1
156
+ # Interval in milliseconds to throttle chat backups per user
157
+ throttleInterval: 10000
158
+
159
+ # THUMBNAILING CONFIGURATION
160
+ thumbnails:
161
+ # Enable thumbnail generation
162
+ enabled: true
163
+ # Image format of avatar thumbnails:
164
+ # * "jpg": best compression with adjustable quality, no transparency
165
+ # * "png": preserves transparency but increases filesize by about 100%
166
+ # Changing this only affects new thumbnails. To recreate the old ones, clear out /thumbnails folder in your user data.
167
+ format: "jpg"
168
+ # JPG thumbnail quality (0-100)
169
+ quality: 95
170
+ # Maximum thumbnail dimensions per type [width, height]
171
+ dimensions: { 'bg': [160, 90], 'avatar': [96, 144], 'persona': [96, 144] }
172
+
173
+ # PERFORMANCE-RELATED CONFIGURATION
174
+ performance:
175
+ # Enables lazy loading of character cards. Improves performances with large card libraries.
176
+ # May have compatibility issues with some extensions.
177
+ lazyLoadCharacters: false
178
+ # The maximum amount of memory that parsed character cards can use. Set to 0 to disable memory caching.
179
+ memoryCacheCapacity: '100mb'
180
+ # Enables disk caching for character cards. Improves performances with large card libraries.
181
+ useDiskCache: true
182
+
183
+ # CACHE BUSTER CONFIGURATION
184
+ # IMPORTANT: Requires localhost or a domain with HTTPS, otherwise will not work!
185
+ cacheBuster:
186
+ # Clear browser cache on first load or after uploading image files
187
+ enabled: false
188
+ # Only clear cache for the specified user agent regex pattern
189
+ # Example: 'firefox|safari' (case-insensitive)
190
+ userAgentPattern: ''
191
+
192
+ # Allow secret keys exposure via API
193
+ allowKeysExposure: false
194
+ # Skip new default content checks
195
+ skipContentCheck: false
196
+ # Allowed hosts for card downloads
197
+ whitelistImportDomains:
198
+ - localhost
199
+ - cdn.discordapp.com
200
+ - files.catbox.moe
201
+ - raw.githubusercontent.com
202
+ - char-archive.evulid.cc
203
+ # API request overrides (for KoboldAI and Text Completion APIs)
204
+ ## Note: host includes the port number if it's not the default (80 or 443)
205
+ ## Format is an array of objects:
206
+ ## - hosts:
207
+ ## - example.com
208
+ ## headers:
209
+ ## Content-Type: application/json
210
+ ## - 127.0.0.1:5001
211
+ ## headers:
212
+ ## User-Agent: "Googlebot/2.1 (+http://www.google.com/bot.html)"
213
+ requestOverrides: []
214
+
215
+ # EXTENSIONS CONFIGURATION
216
+ extensions:
217
+ # Enable UI extensions
218
+ enabled: true
219
+ # Automatically update extensions when a release version changes
220
+ autoUpdate: true
221
+ models:
222
+ # Enables automatic model download from HuggingFace
223
+ autoDownload: true
224
+ # Additional models for extensions. Expects model IDs from HuggingFace model hub in ONNX format
225
+ classification: Cohee/distilbert-base-uncased-go-emotions-onnx
226
+ captioning: Xenova/vit-gpt2-image-captioning
227
+ embedding: Cohee/jina-embeddings-v2-base-en
228
+ speechToText: Xenova/whisper-small
229
+ textToSpeech: Xenova/speecht5_tts
230
+
231
+ # Additional model tokenizers can be downloaded on demand.
232
+ # Disabling will fallback to another locally available tokenizer.
233
+ enableDownloadableTokenizers: true
234
+ # -- OPENAI CONFIGURATION --
235
+ # A placeholder message to use in strict prompt post-processing mode when the prompt doesn't start with a user message
236
+ promptPlaceholder: "[Start a new chat]"
237
+ openai:
238
+ # Will send a random user ID to OpenAI completion API
239
+ randomizeUserId: false
240
+ # If not empty, will add this as a system message to the start of every caption completion prompt
241
+ # Example: "Perform the instructions to the best of your ability.\n" (for LLaVA)
242
+ # Not used in image inlining mode
243
+ captionSystemPrompt: ""
244
+ # -- DEEPL TRANSLATION CONFIGURATION --
245
+ deepl:
246
+ # Available options: default, more, less, prefer_more, prefer_less
247
+ formality: default
248
+ # -- MISTRAL API CONFIGURATION --
249
+ mistral:
250
+ # Enables prefilling of the reply with the last assistant message in the prompt
251
+ # CAUTION: The prefix is echoed into the completion. You may want to use regex to trim it out.
252
+ enablePrefix: false
253
+ # -- OLLAMA API CONFIGURATION --
254
+ ollama:
255
+ # Controls how long the model will stay loaded into memory following the request
256
+ # * -1: Keep the model loaded indefinitely
257
+ # * 0: Unload the model immediately after the request
258
+ # * N (any positive number): Keep the model loaded for N seconds after the request.
259
+ keepAlive: -1
260
+ # Controls the "num_batch" (batch size) parameter of the generation request
261
+ # * -1: Use the default value of the model
262
+ # * N (positive number): Use the specified value. Must be a power of 2, e.g. 128, 256, 512, etc.
263
+ batchSize: -1
264
+ # -- ANTHROPIC CLAUDE API CONFIGURATION --
265
+ claude:
266
+ # Enables caching of the system prompt (if supported).
267
+ # https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
268
+ # -- IMPORTANT! --
269
+ # Use only when the prompt before the chat history is static and doesn't change between requests
270
+ # (e.g {{random}} macro or lorebooks not as in-chat injections).
271
+ # Otherwise, you'll just waste money on cache misses.
272
+ enableSystemPromptCache: false
273
+ # Enables caching of the message history at depth (if supported).
274
+ # https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
275
+ # -- IMPORTANT! --
276
+ # Use with caution. Behavior may be unpredictable and no guarantees can or will be made.
277
+ # Set to an integer to specify the desired depth. 0 (which does NOT include the prefill)
278
+ # should be ideal for most use cases.
279
+ # Any value other than a non-negative integer will be ignored and caching at depth will not be enabled.
280
+ cachingAtDepth: -1
281
+ # Use 1h TTL instead of the default 5m.
282
+ ## 5m: base price x 1.25
283
+ ## 1h: base price x 2
284
+ extendedTTL: false
285
+ # -- GOOGLE GEMINI API CONFIGURATION --
286
+ gemini:
287
+ # API endpoint version ("v1beta" or "v1alpha")
288
+ apiVersion: 'v1beta'
289
+ # Enables caching of the system prompt (if supported). Only for OpenRouter.
290
+ # -- IMPORTANT! --
291
+ # Use only when the prompt before the chat history is static and doesn't change between requests
292
+ # (e.g {{random}} macro or lorebooks not as in-chat injections).
293
+ # Otherwise, you'll just waste money on cache misses.
294
+ enableSystemPromptCache: false
295
+ # https://ai.google.dev/gemini-api/docs/imagen#imagen-configuration
296
+ image:
297
+ # Leave empty to use the API-default value.
298
+ personGeneration: 'allow_adult'
299
+ # -- SERVER PLUGIN CONFIGURATION --
300
+ enableServerPlugins: false
301
+ # Attempt to automatically update server plugins on startup
302
+ enableServerPluginsAutoUpdate: true