周泳恩 commited on
Commit
d17d3db
·
1 Parent(s): e397673

修改.gitattributes文件,将所有YAML文件从LFS中排除,改为普通文本格式

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