fuliai commited on
Commit
c231a4f
1 Parent(s): 6f919e1

Create config.yaml

Browse files
Files changed (1) hide show
  1. config.yaml +141 -0
config.yaml ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # Enables IPv6 and/or IPv4 protocols. Need to have at least one enabled!
8
+ protocol:
9
+ ipv4: true
10
+ ipv6: false
11
+ # Prefers IPv6 for DNS. Enable this on ISPs that don't have issues with IPv6
12
+ dnsPreferIPv6: false
13
+ # The hostname that autorun opens.
14
+ # - Use "auto" to let the server decide
15
+ # - Use options like 'localhost', 'st.example.com'
16
+ autorunHostname: "0.0.0.0"
17
+ # Server port
18
+ port: 7860
19
+ # Overrides the port for autorun in browser.
20
+ # - Use -1 to use the server port.
21
+ # - Specify a port to override the default.
22
+ autorunPortOverride: -1
23
+ # -- SECURITY CONFIGURATION --
24
+ # Toggle whitelist mode
25
+ whitelistMode: false
26
+ # Whitelist will also verify IP in X-Forwarded-For / X-Real-IP headers
27
+ enableForwardedWhitelist: true
28
+ # Whitelist of allowed IP addresses
29
+ whitelist:
30
+ - ::1
31
+ - 127.0.0.1
32
+ # Toggle basic authentication for endpoints
33
+ basicAuthMode: false
34
+ # Basic authentication credentials
35
+ basicAuthUser:
36
+ username: "user"
37
+ password: "password"
38
+ # Enables CORS proxy middleware
39
+ enableCorsProxy: false
40
+ # Enable multi-user mode
41
+ enableUserAccounts: false
42
+ # Enable discreet login mode: hides user list on the login screen
43
+ enableDiscreetLogin: false
44
+ # User session timeout *in seconds* (defaults to 24 hours).
45
+ ## Set to a positive number to expire session after a certain time of inactivity
46
+ ## Set to 0 to expire session when the browser is closed
47
+ ## Set to a negative number to disable session expiration
48
+ sessionTimeout: 86400
49
+ # Used to sign session cookies. Will be auto-generated if not set
50
+ cookieSecret: ''
51
+ # Disable CSRF protection - NOT RECOMMENDED
52
+ disableCsrfProtection: false
53
+ # Disable startup security checks - NOT RECOMMENDED
54
+ securityOverride: false
55
+ # -- ADVANCED CONFIGURATION --
56
+ # Open the browser automatically
57
+ autorun: true
58
+ # Avoids using 'localhost' for autorun in auto mode.
59
+ # use if you don't have 'localhost' in your hosts file
60
+ avoidLocalhost: false
61
+ # Disable thumbnail generation
62
+ disableThumbnails: false
63
+ # Thumbnail quality (0-100)
64
+ thumbnailsQuality: 90
65
+ # Generate avatar thumbnails as PNG instead of JPG (preserves transparency but increases filesize by about 100%)
66
+ # Changing this only affects new thumbnails. To recreate the old ones, clear out your ST/thumbnails/ folder.
67
+ avatarThumbnailsPng: false
68
+ # Allow secret keys exposure via API
69
+ allowKeysExposure: false
70
+ # Skip new default content checks
71
+ skipContentCheck: false
72
+ # Disable automatic chats backup
73
+ disableChatBackup: false
74
+ # Number of backups to keep for each chat and settings file
75
+ numberOfBackups: 50
76
+ # Allowed hosts for card downloads
77
+ whitelistImportDomains:
78
+ - localhost
79
+ - cdn.discordapp.com
80
+ - files.catbox.moe
81
+ - raw.githubusercontent.com
82
+ # API request overrides (for KoboldAI and Text Completion APIs)
83
+ ## Note: host includes the port number if it's not the default (80 or 443)
84
+ ## Format is an array of objects:
85
+ ## - hosts:
86
+ ## - example.com
87
+ ## headers:
88
+ ## Content-Type: application/json
89
+ ## - 127.0.0.1:5001
90
+ ## headers:
91
+ ## User-Agent: "Googlebot/2.1 (+http://www.google.com/bot.html)"
92
+ requestOverrides: []
93
+ # -- PLUGIN CONFIGURATION --
94
+ # Enable UI extensions
95
+ enableExtensions: true
96
+ # Extension settings
97
+ extras:
98
+ # Disables automatic model download from HuggingFace
99
+ disableAutoDownload: false
100
+ # Extra models for plugins. Expects model IDs from HuggingFace model hub in ONNX format
101
+ classificationModel: Cohee/distilbert-base-uncased-go-emotions-onnx
102
+ captioningModel: Xenova/vit-gpt2-image-captioning
103
+ embeddingModel: Cohee/jina-embeddings-v2-base-en
104
+ promptExpansionModel: Cohee/fooocus_expansion-onnx
105
+ speechToTextModel: Xenova/whisper-small
106
+ textToSpeechModel: Xenova/speecht5_tts
107
+ # -- OPENAI CONFIGURATION --
108
+ openai:
109
+ # Will send a random user ID to OpenAI completion API
110
+ randomizeUserId: false
111
+ # If not empty, will add this as a system message to the start of every caption completion prompt
112
+ # Example: "Perform the instructions to the best of your ability.\n" (for LLaVA)
113
+ # Not used in image inlining mode
114
+ captionSystemPrompt: ""
115
+ # -- DEEPL TRANSLATION CONFIGURATION --
116
+ deepl:
117
+ # Available options: default, more, less, prefer_more, prefer_less
118
+ formality: default
119
+ # -- MISTRAL API CONFIGURATION --
120
+ mistral:
121
+ # Enables prefilling of the reply with the last assistant message in the prompt
122
+ # CAUTION: The prefix is echoed into the completion. You may want to use regex to trim it out.
123
+ enablePrefix: false
124
+ # -- OLLAMA API CONFIGURATION --
125
+ ollama:
126
+ # Controls how long the model will stay loaded into memory following the request
127
+ # * -1: Keep the model loaded indefinitely
128
+ # * 0: Unload the model immediately after the request
129
+ # * N (any positive number): Keep the model loaded for N seconds after the request.
130
+ keepAlive: -1
131
+ # -- ANTHROPIC CLAUDE API CONFIGURATION --
132
+ claude:
133
+ # Enables caching of the system prompt (if supported).
134
+ # https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
135
+ # -- IMPORTANT! --
136
+ # Use only when the prompt before the chat history is static and doesn't change between requests
137
+ # (e.g {{random}} macro or lorebooks not as in-chat injections).
138
+ # Otherwise, you'll just waste money on cache misses.
139
+ enableSystemPromptCache: false
140
+ # -- SERVER PLUGIN CONFIGURATION --
141
+ enableServerPlugins: false