Upload config.yaml
Browse files- config.yaml +75 -0
config.yaml
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# -- NETWORK CONFIGURATION --
|
2 |
+
# Listen for incoming connections
|
3 |
+
listen: true
|
4 |
+
# Server port
|
5 |
+
port: 7860
|
6 |
+
# Toggle whitelist mode
|
7 |
+
whitelistMode: false
|
8 |
+
# Whitelist of allowed IP addresses
|
9 |
+
whitelist:
|
10 |
+
- 127.0.0.1
|
11 |
+
# Toggle basic authentication for endpoints
|
12 |
+
basicAuthMode: true
|
13 |
+
# Basic authentication credentials
|
14 |
+
basicAuthUser:
|
15 |
+
username: "admin"
|
16 |
+
password: "admin"
|
17 |
+
# Enables CORS proxy middleware
|
18 |
+
enableCorsProxy: false
|
19 |
+
# Disable security checks - NOT RECOMMENDED
|
20 |
+
securityOverride: true
|
21 |
+
# -- ADVANCED CONFIGURATION --
|
22 |
+
# Open the browser automatically
|
23 |
+
autorun: true
|
24 |
+
# Disable thumbnail generation
|
25 |
+
disableThumbnails: false
|
26 |
+
# Thumbnail quality (0-100)
|
27 |
+
thumbnailsQuality: 89
|
28 |
+
# Generate avatar thumbnails as PNG instead of JPG (preserves transparency but increases filesize by about 100%)
|
29 |
+
# Changing this only affects new thumbnails. To recreate the old ones, clear out your ST/thumbnails/ folder.
|
30 |
+
avatarThumbnailsPng: false
|
31 |
+
# Allow secret keys exposure via API
|
32 |
+
allowKeysExposure: true
|
33 |
+
# Skip new default content checks
|
34 |
+
skipContentCheck: false
|
35 |
+
# Disable automatic chats backup
|
36 |
+
disableChatBackup: false
|
37 |
+
# API request overrides (for KoboldAI and Text Completion APIs)
|
38 |
+
## Format is an array of objects:
|
39 |
+
## - hosts:
|
40 |
+
## - example.com
|
41 |
+
## headers:
|
42 |
+
## Content-Type: application/json
|
43 |
+
requestOverrides: []
|
44 |
+
# -- PLUGIN CONFIGURATION --
|
45 |
+
# Enable UI extensions
|
46 |
+
enableExtensions: true
|
47 |
+
# Extension settings
|
48 |
+
extras:
|
49 |
+
# Disables automatic model download from HuggingFace
|
50 |
+
disableAutoDownload: false
|
51 |
+
# Extra models for plugins. Expects model IDs from HuggingFace model hub in ONNX format
|
52 |
+
classificationModel: Cohee/distilbert-base-uncased-go-emotions-onnx
|
53 |
+
captioningModel: Xenova/vit-gpt2-image-captioning
|
54 |
+
embeddingModel: Cohee/jina-embeddings-v2-base-en
|
55 |
+
promptExpansionModel: Cohee/fooocus_expansion-onnx
|
56 |
+
speechToTextModel: Xenova/whisper-small
|
57 |
+
textToSpeechModel: Xenova/speecht5_tts
|
58 |
+
|
59 |
+
mistral:
|
60 |
+
enablePrefix: true
|
61 |
+
|
62 |
+
# -- OPENAI CONFIGURATION --
|
63 |
+
openai:
|
64 |
+
# Will send a random user ID to OpenAI completion API
|
65 |
+
randomizeUserId: false
|
66 |
+
# If not empty, will add this as a system message to the start of every caption completion prompt
|
67 |
+
# Example: "Perform the instructions to the best of your ability.\n" (for LLaVA)
|
68 |
+
# Not used in image inlining mode
|
69 |
+
captionSystemPrompt: ""
|
70 |
+
# -- DEEPL TRANSLATION CONFIGURATION --
|
71 |
+
deepl:
|
72 |
+
# Available options: default, more, less, prefer_more, prefer_less
|
73 |
+
formality: default
|
74 |
+
# -- SERVER PLUGIN CONFIGURATION --
|
75 |
+
enableServerPlugins: true
|