sillytavern 1.12.3 → 1.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +11 -0
- package/CONTRIBUTING.md +10 -1
- package/config.yaml +44 -0
- package/default/config.yaml +44 -0
- package/default/content/index.json +12 -0
- package/default/content/presets/context/Gemma 2.json +12 -0
- package/default/content/presets/instruct/Gemma 2.json +24 -0
- package/default/content/presets/openai/Default.json +12 -12
- package/default/content/presets/textgen/Asterism.json +64 -2
- package/default/content/presets/textgen/Beam Search.json +65 -3
- package/default/content/presets/textgen/Big O.json +64 -2
- package/default/content/presets/textgen/Contrastive Search.json +64 -2
- package/default/content/presets/textgen/Default.json +64 -2
- package/default/content/presets/textgen/Deterministic.json +64 -2
- package/default/content/presets/textgen/Divine Intellect.json +64 -2
- package/default/content/presets/textgen/Kobold (Godlike).json +64 -2
- package/default/content/presets/textgen/Kobold (Liminal Drift).json +64 -2
- package/default/content/presets/textgen/LLaMa-Precise.json +64 -2
- package/default/content/presets/textgen/Midnight Enigma.json +64 -2
- package/default/content/presets/textgen/Miro Bronze.json +62 -1
- package/default/content/presets/textgen/Miro Gold.json +62 -1
- package/default/content/presets/textgen/Miro Silver.json +62 -1
- package/default/content/presets/textgen/Mirostat.json +64 -2
- package/default/content/presets/textgen/Naive.json +64 -2
- package/default/content/presets/textgen/NovelAI (Best Guess).json +64 -2
- package/default/content/presets/textgen/NovelAI (Decadence).json +65 -3
- package/default/content/presets/textgen/NovelAI (Genesis).json +64 -2
- package/default/content/presets/textgen/NovelAI (Lycaenidae).json +64 -2
- package/default/content/presets/textgen/NovelAI (Ouroboros).json +64 -2
- package/default/content/presets/textgen/NovelAI (Pleasing Results).json +64 -2
- package/default/content/presets/textgen/NovelAI (Sphinx Moth).json +64 -2
- package/default/content/presets/textgen/NovelAI (Storywriter).json +64 -2
- package/default/content/presets/textgen/Shortwave.json +64 -2
- package/default/content/presets/textgen/Simple-1.json +64 -2
- package/default/content/presets/textgen/Space Alien.json +64 -2
- package/default/content/presets/textgen/StarChat.json +64 -2
- package/default/content/presets/textgen/TFS-with-Top-A.json +64 -2
- package/default/content/presets/textgen/Titanic.json +64 -2
- package/default/content/presets/textgen/Universal-Creative.json +39 -4
- package/default/content/presets/textgen/Universal-Light.json +39 -4
- package/default/content/presets/textgen/Universal-Super-Creative.json +39 -4
- package/default/content/presets/textgen/Yara.json +64 -2
- package/default/content/presets/textgen/simple-proxy-for-tavern.json +85 -23
- package/default/content/settings.json +9 -9
- package/default/content/themes/Azure.json +35 -0
- package/index.d.ts +5 -0
- package/package.json +4 -3
- package/public/css/animations.css +6 -7
- package/public/css/character-group-overlay.css +2 -2
- package/public/css/extensions-panel.css +2 -1
- package/public/css/loader.css +3 -3
- package/public/css/logprobs.css +3 -3
- package/public/css/mobile-styles.css +29 -29
- package/public/css/popup-safari-fix.css +7 -2
- package/public/css/popup.css +4 -4
- package/public/css/promptmanager.css +0 -1
- package/public/css/rm-groups.css +1 -1
- package/public/css/tags.css +6 -6
- package/public/css/toggle-dependent.css +10 -2
- package/public/css/world-info.css +12 -0
- package/public/global.d.ts +7 -0
- package/public/img/blockentropy.svg +3 -0
- package/public/img/step-into.svg +149 -0
- package/public/img/step-out.svg +149 -0
- package/public/img/step-over.svg +149 -0
- package/public/img/step-resume.svg +218 -0
- package/public/index.html +265 -117
- package/public/lib/diff_match_patch.js +55 -0
- package/public/locales/ar-sa.json +3 -4
- package/public/locales/de-de.json +3 -4
- package/public/locales/es-es.json +3 -4
- package/public/locales/fr-fr.json +3 -4
- package/public/locales/is-is.json +3 -4
- package/public/locales/it-it.json +3 -4
- package/public/locales/ja-jp.json +69 -70
- package/public/locales/ko-kr.json +3 -4
- package/public/locales/nl-nl.json +2 -3
- package/public/locales/pt-pt.json +3 -4
- package/public/locales/ru-ru.json +25 -5
- package/public/locales/uk-ua.json +3 -4
- package/public/locales/vi-vn.json +3 -4
- package/public/locales/zh-cn.json +103 -34
- package/public/locales/zh-tw.json +3 -4
- package/public/script.js +431 -300
- package/public/scripts/BulkEditOverlay.js +34 -4
- package/public/scripts/PromptManager.js +9 -7
- package/public/scripts/RossAscends-mods.js +36 -29
- package/public/scripts/autocomplete/AutoComplete.js +71 -48
- package/public/scripts/autocomplete/AutoCompleteNameResult.js +3 -30
- package/public/scripts/autocomplete/AutoCompleteNameResultBase.js +31 -0
- package/public/scripts/autocomplete/AutoCompleteOption.js +11 -1
- package/public/scripts/autocomplete/AutoCompleteSecondaryNameResult.js +2 -2
- package/public/scripts/bookmarks.js +2 -2
- package/public/scripts/chats.js +1 -1
- package/public/scripts/extensions/assets/index.js +26 -11
- package/public/scripts/extensions/assets/style.css +9 -1
- package/public/scripts/extensions/assets/window.html +24 -4
- package/public/scripts/extensions/caption/index.js +9 -4
- package/public/scripts/extensions/caption/settings.html +8 -1
- package/public/scripts/extensions/expressions/index.js +8 -5
- package/public/scripts/extensions/gallery/index.i18n.html +2 -0
- package/public/scripts/extensions/gallery/index.js +55 -34
- package/public/scripts/extensions/gallery/manifest.json +1 -1
- package/public/scripts/extensions/gallery/style.css +5 -0
- package/public/scripts/extensions/memory/index.js +181 -36
- package/public/scripts/extensions/memory/settings.html +13 -3
- package/public/scripts/extensions/quick-reply/api/QuickReplyApi.js +94 -66
- package/public/scripts/extensions/quick-reply/html/qrEditor.html +38 -8
- package/public/scripts/extensions/quick-reply/html/settings.html +13 -0
- package/public/scripts/extensions/quick-reply/index.js +16 -9
- package/public/scripts/extensions/quick-reply/lib/morphdom-esm.js +769 -0
- package/public/scripts/extensions/quick-reply/lib/morphdom.LICENSE.txt +21 -0
- package/public/scripts/extensions/quick-reply/src/AutoExecuteHandler.js +9 -0
- package/public/scripts/extensions/quick-reply/src/QuickReply.js +1285 -87
- package/public/scripts/extensions/quick-reply/src/QuickReplyConfig.js +6 -1
- package/public/scripts/extensions/quick-reply/src/QuickReplySet.js +191 -20
- package/public/scripts/extensions/quick-reply/src/QuickReplySetLink.js +1 -1
- package/public/scripts/extensions/quick-reply/src/QuickReplySettings.js +2 -0
- package/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js +267 -19
- package/public/scripts/extensions/quick-reply/src/ui/ButtonUi.js +14 -11
- package/public/scripts/extensions/quick-reply/src/ui/SettingsUi.js +64 -3
- package/public/scripts/extensions/quick-reply/src/ui/ctx/ContextMenu.js +5 -0
- package/public/scripts/extensions/quick-reply/src/ui/ctx/MenuHeader.js +1 -1
- package/public/scripts/extensions/quick-reply/src/ui/ctx/MenuItem.js +34 -7
- package/public/scripts/extensions/quick-reply/style.css +606 -22
- package/public/scripts/extensions/quick-reply/style.less +668 -128
- package/public/scripts/extensions/regex/editor.html +15 -22
- package/public/scripts/extensions/regex/index.js +6 -6
- package/public/scripts/extensions/shared.js +89 -2
- package/public/scripts/extensions/stable-diffusion/button.html +6 -2
- package/public/scripts/extensions/stable-diffusion/index.js +552 -95
- package/public/scripts/extensions/stable-diffusion/settings.html +51 -4
- package/public/scripts/extensions/token-counter/index.js +4 -3
- package/public/scripts/extensions/translate/buttons.html +3 -3
- package/public/scripts/extensions/translate/index.js +13 -2
- package/public/scripts/extensions/tts/azure.js +14 -2
- package/public/scripts/extensions/tts/index.js +35 -12
- package/public/scripts/extensions/tts/openai-compatible.js +193 -0
- package/public/scripts/extensions/tts/system.js +6 -6
- package/public/scripts/extensions/vectors/index.js +75 -13
- package/public/scripts/extensions/vectors/settings.html +8 -11
- package/public/scripts/extensions.js +75 -44
- package/public/scripts/group-chats.js +42 -8
- package/public/scripts/i18n.js +5 -3
- package/public/scripts/instruct-mode.js +30 -3
- package/public/scripts/loader.js +1 -3
- package/public/scripts/logprobs.js +3 -1
- package/public/scripts/macros.js +2 -1
- package/public/scripts/openai.js +314 -62
- package/public/scripts/personas.js +74 -22
- package/public/scripts/popup.js +76 -25
- package/public/scripts/power-user.js +163 -58
- package/public/scripts/preset-manager.js +11 -13
- package/public/scripts/samplerSelect.js +137 -141
- package/public/scripts/secrets.js +5 -1
- package/public/scripts/showdown-underscore.js +13 -3
- package/public/scripts/slash-commands/AbstractEventTarget.js +36 -0
- package/public/scripts/slash-commands/SlashCommand.js +78 -35
- package/public/scripts/slash-commands/SlashCommandAbortController.js +7 -1
- package/public/scripts/slash-commands/SlashCommandArgument.js +8 -5
- package/public/scripts/slash-commands/SlashCommandAutoCompleteNameResult.js +19 -9
- package/public/scripts/slash-commands/SlashCommandBreak.js +7 -0
- package/public/scripts/slash-commands/SlashCommandBreakController.js +7 -0
- package/public/scripts/slash-commands/SlashCommandBreakPoint.js +3 -0
- package/public/scripts/slash-commands/SlashCommandClosure.js +292 -98
- package/public/scripts/slash-commands/SlashCommandClosureResult.js +1 -0
- package/public/scripts/slash-commands/SlashCommandCommonEnumsProvider.js +18 -17
- package/public/scripts/slash-commands/SlashCommandDebugController.js +83 -0
- package/public/scripts/slash-commands/SlashCommandEnumAutoCompleteOption.js +12 -1
- package/public/scripts/slash-commands/SlashCommandEnumValue.js +16 -4
- package/public/scripts/slash-commands/SlashCommandExecutionError.js +60 -0
- package/public/scripts/slash-commands/SlashCommandExecutor.js +12 -0
- package/public/scripts/slash-commands/SlashCommandParser.js +321 -26
- package/public/scripts/slash-commands/SlashCommandScope.js +5 -3
- package/public/scripts/slash-commands.js +492 -76
- package/public/scripts/tags.js +71 -47
- package/public/scripts/templates/charTagImport.i18n.html +5 -0
- package/public/scripts/templates/installExtension.html +7 -0
- package/public/scripts/templates/itemizationChat.html +13 -4
- package/public/scripts/templates/itemizationText.html +11 -2
- package/public/scripts/templates/macros.html +4 -0
- package/public/scripts/templates/promptManagerFooter.html +6 -6
- package/public/scripts/templates/scenarioOverride.html +17 -0
- package/public/scripts/templates/tabbyDownloader.html +61 -0
- package/public/scripts/templates/welcome.html +1 -1
- package/public/scripts/templates/worldInfoKeywordHeaders.html +8 -0
- package/public/scripts/textgen-models.js +101 -3
- package/public/scripts/textgen-settings.js +43 -9
- package/public/scripts/tokenizers.js +74 -5
- package/public/scripts/util/StructuredCloneMap.js +56 -0
- package/public/scripts/utils.js +228 -51
- package/public/scripts/variables.js +115 -50
- package/public/scripts/world-info.js +814 -480
- package/public/style.css +222 -51
- package/server.js +283 -54
- package/src/additional-headers.js +3 -4
- package/src/character-card-parser.js +13 -1
- package/src/constants.js +11 -0
- package/src/endpoints/anthropic.js +1 -1
- package/src/endpoints/backends/chat-completions.js +33 -17
- package/src/endpoints/backends/text-completions.js +50 -3
- package/src/endpoints/characters.js +3 -0
- package/src/endpoints/content-manager.js +1 -1
- package/src/endpoints/google.js +1 -1
- package/src/endpoints/horde.js +11 -0
- package/src/endpoints/images.js +1 -1
- package/src/endpoints/openai.js +52 -1
- package/src/endpoints/secrets.js +3 -0
- package/src/endpoints/speech.js +1 -1
- package/src/endpoints/stable-diffusion.js +241 -0
- package/src/endpoints/stats.js +12 -6
- package/src/endpoints/tokenizers.js +34 -4
- package/src/endpoints/translate.js +11 -4
- package/src/prompt-converters.js +21 -30
- package/src/tokenizers/gemma.model +0 -0
- package/src/transformers.mjs +44 -7
- package/src/users.js +21 -26
- package/src/util.js +41 -3
- package/src/vectors/makersuite-vectors.js +4 -4
- package/tests/.eslintrc.js +37 -0
- package/tests/jest.config.json +9 -0
- package/tests/jest.setup.js +2 -0
- package/tests/package-lock.json +5976 -0
- package/tests/package.json +15 -0
- package/tests/sample.test.js +10 -0
- package/public/scripts/extensions/assets/confirm.html +0 -9
- package/public/scripts/slash-commands/SlashCommandClosureExecutor.js +0 -7
package/.eslintrc.js
CHANGED
|
@@ -17,6 +17,15 @@ module.exports = {
|
|
|
17
17
|
node: true,
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
files: ['src/**/*.mjs'],
|
|
22
|
+
parserOptions: {
|
|
23
|
+
sourceType: 'module',
|
|
24
|
+
},
|
|
25
|
+
env: {
|
|
26
|
+
node: true,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
20
29
|
{
|
|
21
30
|
// Browser-side files
|
|
22
31
|
files: ['public/**/*.js'],
|
|
@@ -45,6 +54,8 @@ module.exports = {
|
|
|
45
54
|
Readability: 'readonly',
|
|
46
55
|
isProbablyReaderable: 'readonly',
|
|
47
56
|
ePub: 'readonly',
|
|
57
|
+
diff_match_patch: 'readonly',
|
|
58
|
+
SillyTavern: 'readonly',
|
|
48
59
|
},
|
|
49
60
|
},
|
|
50
61
|
],
|
package/CONTRIBUTING.md
CHANGED
|
@@ -29,4 +29,13 @@
|
|
|
29
29
|
- Updating GitHub Actions.
|
|
30
30
|
- Hotfixing a critical bug.
|
|
31
31
|
4. Project maintainers will test and can change your code before merging.
|
|
32
|
-
5.
|
|
32
|
+
5. Write at least somewhat meaningful PR descriptions. There's no "right" way to do it, but the following may help with outlining a general structure:
|
|
33
|
+
- What is the reason for a change?
|
|
34
|
+
- What did you do to achieve this?
|
|
35
|
+
- How would a reviewer test the change?
|
|
36
|
+
6. Mind the license. Your contributions will be licensed under the GNU Affero General Public License. If you don't know what that implies, consult your lawyer.
|
|
37
|
+
|
|
38
|
+
## Further reading
|
|
39
|
+
|
|
40
|
+
1. [How to write UI extensions](https://docs.sillytavern.app/for-contributors/writing-extensions/)
|
|
41
|
+
2. [How to write server plugins](https://docs.sillytavern.app/for-contributors/server-plugins)
|
package/config.yaml
CHANGED
|
@@ -4,8 +4,22 @@ dataRoot: ./data
|
|
|
4
4
|
# -- SERVER CONFIGURATION --
|
|
5
5
|
# Listen for incoming connections
|
|
6
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: "auto"
|
|
7
17
|
# Server port
|
|
8
18
|
port: 8000
|
|
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
|
|
9
23
|
# -- SECURITY CONFIGURATION --
|
|
10
24
|
# Toggle whitelist mode
|
|
11
25
|
whitelistMode: true
|
|
@@ -13,6 +27,7 @@ whitelistMode: true
|
|
|
13
27
|
enableForwardedWhitelist: true
|
|
14
28
|
# Whitelist of allowed IP addresses
|
|
15
29
|
whitelist:
|
|
30
|
+
- ::1
|
|
16
31
|
- 127.0.0.1
|
|
17
32
|
# Toggle basic authentication for endpoints
|
|
18
33
|
basicAuthMode: false
|
|
@@ -26,6 +41,11 @@ enableCorsProxy: false
|
|
|
26
41
|
enableUserAccounts: false
|
|
27
42
|
# Enable discreet login mode: hides user list on the login screen
|
|
28
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
|
|
29
49
|
# Used to sign session cookies. Will be auto-generated if not set
|
|
30
50
|
cookieSecret: ''
|
|
31
51
|
# Disable CSRF protection - NOT RECOMMENDED
|
|
@@ -35,6 +55,9 @@ securityOverride: false
|
|
|
35
55
|
# -- ADVANCED CONFIGURATION --
|
|
36
56
|
# Open the browser automatically
|
|
37
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
|
|
38
61
|
# Disable thumbnail generation
|
|
39
62
|
disableThumbnails: false
|
|
40
63
|
# Thumbnail quality (0-100)
|
|
@@ -93,5 +116,26 @@ openai:
|
|
|
93
116
|
deepl:
|
|
94
117
|
# Available options: default, more, less, prefer_more, prefer_less
|
|
95
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
|
|
96
140
|
# -- SERVER PLUGIN CONFIGURATION --
|
|
97
141
|
enableServerPlugins: false
|
package/default/config.yaml
CHANGED
|
@@ -4,8 +4,22 @@ dataRoot: ./data
|
|
|
4
4
|
# -- SERVER CONFIGURATION --
|
|
5
5
|
# Listen for incoming connections
|
|
6
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: "auto"
|
|
7
17
|
# Server port
|
|
8
18
|
port: 8000
|
|
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
|
|
9
23
|
# -- SECURITY CONFIGURATION --
|
|
10
24
|
# Toggle whitelist mode
|
|
11
25
|
whitelistMode: true
|
|
@@ -13,6 +27,7 @@ whitelistMode: true
|
|
|
13
27
|
enableForwardedWhitelist: true
|
|
14
28
|
# Whitelist of allowed IP addresses
|
|
15
29
|
whitelist:
|
|
30
|
+
- ::1
|
|
16
31
|
- 127.0.0.1
|
|
17
32
|
# Toggle basic authentication for endpoints
|
|
18
33
|
basicAuthMode: false
|
|
@@ -26,6 +41,11 @@ enableCorsProxy: false
|
|
|
26
41
|
enableUserAccounts: false
|
|
27
42
|
# Enable discreet login mode: hides user list on the login screen
|
|
28
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
|
|
29
49
|
# Used to sign session cookies. Will be auto-generated if not set
|
|
30
50
|
cookieSecret: ''
|
|
31
51
|
# Disable CSRF protection - NOT RECOMMENDED
|
|
@@ -35,6 +55,9 @@ securityOverride: false
|
|
|
35
55
|
# -- ADVANCED CONFIGURATION --
|
|
36
56
|
# Open the browser automatically
|
|
37
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
|
|
38
61
|
# Disable thumbnail generation
|
|
39
62
|
disableThumbnails: false
|
|
40
63
|
# Thumbnail quality (0-100)
|
|
@@ -93,5 +116,26 @@ openai:
|
|
|
93
116
|
deepl:
|
|
94
117
|
# Available options: default, more, less, prefer_more, prefer_less
|
|
95
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
|
|
96
140
|
# -- SERVER PLUGIN CONFIGURATION --
|
|
97
141
|
enableServerPlugins: false
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
"filename": "themes/Dark V 1.0.json",
|
|
20
20
|
"type": "theme"
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
"filename": "themes/Azure.json",
|
|
24
|
+
"type": "theme"
|
|
25
|
+
},
|
|
22
26
|
{
|
|
23
27
|
"filename": "backgrounds/__transparent.png",
|
|
24
28
|
"type": "background"
|
|
@@ -674,5 +678,13 @@
|
|
|
674
678
|
{
|
|
675
679
|
"filename": "presets/context/ChatML-Names.json",
|
|
676
680
|
"type": "context"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"filename": "presets/context/Gemma 2.json",
|
|
684
|
+
"type": "context"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"filename": "presets/instruct/Gemma 2.json",
|
|
688
|
+
"type": "instruct"
|
|
677
689
|
}
|
|
678
690
|
]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"story_string": "<start_of_turn>user\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}<end_of_turn>",
|
|
3
|
+
"example_separator": "",
|
|
4
|
+
"chat_start": "",
|
|
5
|
+
"use_stop_strings": false,
|
|
6
|
+
"allow_jailbreak": false,
|
|
7
|
+
"always_force_name2": true,
|
|
8
|
+
"trim_sentences": false,
|
|
9
|
+
"include_newline": false,
|
|
10
|
+
"single_line": false,
|
|
11
|
+
"name": "Gemma 2"
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"system_prompt": "Continue writing this story and portray characters realistically.",
|
|
3
|
+
"input_sequence": "<start_of_turn>user",
|
|
4
|
+
"output_sequence": "<start_of_turn>model",
|
|
5
|
+
"last_output_sequence": "",
|
|
6
|
+
"system_sequence": "<start_of_turn>system",
|
|
7
|
+
"stop_sequence": "<end_of_turn>",
|
|
8
|
+
"wrap": true,
|
|
9
|
+
"macro": true,
|
|
10
|
+
"names": false,
|
|
11
|
+
"names_force_groups": false,
|
|
12
|
+
"activation_regex": "",
|
|
13
|
+
"system_sequence_prefix": "",
|
|
14
|
+
"system_sequence_suffix": "",
|
|
15
|
+
"first_output_sequence": "",
|
|
16
|
+
"skip_examples": false,
|
|
17
|
+
"output_suffix": "<end_of_turn>\n",
|
|
18
|
+
"input_suffix": "<end_of_turn>\n",
|
|
19
|
+
"system_suffix": "<end_of_turn>\n",
|
|
20
|
+
"user_alignment_message": "",
|
|
21
|
+
"system_same_as_user": true,
|
|
22
|
+
"last_system_sequence": "",
|
|
23
|
+
"name": "Gemma 2"
|
|
24
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"chat_completion_source": "openai",
|
|
3
|
-
"openai_model": "gpt-
|
|
4
|
-
"claude_model": "claude-
|
|
3
|
+
"openai_model": "gpt-4-turbo",
|
|
4
|
+
"claude_model": "claude-3-5-sonnet-20240620",
|
|
5
5
|
"windowai_model": "",
|
|
6
6
|
"openrouter_model": "OR_Website",
|
|
7
7
|
"openrouter_use_fallback": false,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"openrouter_group_models": false,
|
|
10
10
|
"openrouter_sort_models": "alphabetically",
|
|
11
11
|
"ai21_model": "j2-ultra",
|
|
12
|
-
"mistralai_model": "mistral-
|
|
12
|
+
"mistralai_model": "mistral-large-latest",
|
|
13
13
|
"custom_model": "",
|
|
14
14
|
"custom_url": "",
|
|
15
15
|
"custom_include_body": "",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"count_penalty": 0,
|
|
23
23
|
"top_p": 1,
|
|
24
24
|
"top_k": 0,
|
|
25
|
-
"top_a":
|
|
25
|
+
"top_a": 0,
|
|
26
26
|
"min_p": 0,
|
|
27
27
|
"repetition_penalty": 1,
|
|
28
28
|
"openai_max_context": 4095,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"names_behavior": 0,
|
|
32
32
|
"send_if_empty": "",
|
|
33
33
|
"jailbreak_system": false,
|
|
34
|
-
"impersonation_prompt": "[Write your next reply from the point of view of {{user}}, using the chat history so far as a guideline for the writing style of {{user}}.
|
|
34
|
+
"impersonation_prompt": "[Write your next reply from the point of view of {{user}}, using the chat history so far as a guideline for the writing style of {{user}}. Don't write as {{char}} or system. Don't describe actions of {{char}}.]",
|
|
35
35
|
"new_chat_prompt": "[Start a new Chat]",
|
|
36
36
|
"new_group_chat_prompt": "[Start a new group chat. Group members: {{group}}]",
|
|
37
37
|
"new_example_chat_prompt": "[Example Chat]",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"reverse_proxy": "",
|
|
41
41
|
"proxy_password": "",
|
|
42
42
|
"max_context_unlocked": false,
|
|
43
|
-
"wi_format": "
|
|
43
|
+
"wi_format": "{0}",
|
|
44
44
|
"scenario_format": "[Circumstances and context of the dialogue: {{scenario}}]",
|
|
45
45
|
"personality_format": "[{{char}}'s personality: {{personality}}]",
|
|
46
46
|
"group_nudge_prompt": "[Write the next reply only as {{char}}.]",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"name": "Main Prompt",
|
|
51
51
|
"system_prompt": true,
|
|
52
52
|
"role": "system",
|
|
53
|
-
"content": "Write {{char}}'s next reply in a fictional chat between {{char}} and {{user}}.
|
|
53
|
+
"content": "Write {{char}}'s next reply in a fictional chat between {{char}} and {{user}}.",
|
|
54
54
|
"identifier": "main"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
"name": "
|
|
57
|
+
"name": "Auxiliary Prompt",
|
|
58
58
|
"system_prompt": true,
|
|
59
59
|
"role": "system",
|
|
60
|
-
"content": "
|
|
60
|
+
"content": "",
|
|
61
61
|
"identifier": "nsfw"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"marker": true
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
"name": "
|
|
70
|
+
"name": "Post-History Instructions",
|
|
71
71
|
"system_prompt": true,
|
|
72
72
|
"role": "system",
|
|
73
|
-
"content": "
|
|
73
|
+
"content": "",
|
|
74
74
|
"identifier": "jailbreak"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
@@ -244,4 +244,4 @@
|
|
|
244
244
|
"continue_postfix": " ",
|
|
245
245
|
"seed": -1,
|
|
246
246
|
"n": 1
|
|
247
|
-
}
|
|
247
|
+
}
|
|
@@ -1,23 +1,85 @@
|
|
|
1
1
|
{
|
|
2
2
|
"temp": 1.68,
|
|
3
|
+
"temperature_last": true,
|
|
3
4
|
"top_p": 0.17,
|
|
4
5
|
"top_k": 77,
|
|
5
|
-
"typical_p": 1,
|
|
6
6
|
"top_a": 0.42,
|
|
7
7
|
"tfs": 0.97,
|
|
8
8
|
"epsilon_cutoff": 0,
|
|
9
9
|
"eta_cutoff": 0,
|
|
10
|
+
"typical_p": 1,
|
|
11
|
+
"min_p": 0,
|
|
10
12
|
"rep_pen": 1.02,
|
|
11
13
|
"rep_pen_range": 0,
|
|
14
|
+
"rep_pen_decay": 0,
|
|
15
|
+
"rep_pen_slope": 1,
|
|
12
16
|
"no_repeat_ngram_size": 0,
|
|
13
17
|
"penalty_alpha": 0,
|
|
14
18
|
"num_beams": 1,
|
|
15
19
|
"length_penalty": 1,
|
|
16
20
|
"min_length": 0,
|
|
17
21
|
"encoder_rep_pen": 1,
|
|
22
|
+
"freq_pen": 0,
|
|
23
|
+
"presence_pen": 0,
|
|
24
|
+
"skew": 0,
|
|
18
25
|
"do_sample": true,
|
|
19
26
|
"early_stopping": false,
|
|
27
|
+
"dynatemp": false,
|
|
28
|
+
"min_temp": 0,
|
|
29
|
+
"max_temp": 2,
|
|
30
|
+
"dynatemp_exponent": 1,
|
|
31
|
+
"smoothing_factor": 0,
|
|
32
|
+
"smoothing_curve": 1,
|
|
33
|
+
"dry_allowed_length": 2,
|
|
34
|
+
"dry_multiplier": 0,
|
|
35
|
+
"dry_base": 1.75,
|
|
36
|
+
"dry_sequence_breakers": "[\"\\n\", \":\", \"\\\"\", \"*\"]",
|
|
37
|
+
"dry_penalty_last_n": 0,
|
|
38
|
+
"add_bos_token": true,
|
|
39
|
+
"ban_eos_token": false,
|
|
40
|
+
"skip_special_tokens": true,
|
|
20
41
|
"mirostat_mode": 0,
|
|
21
42
|
"mirostat_tau": 5,
|
|
22
|
-
"mirostat_eta": 0.1
|
|
43
|
+
"mirostat_eta": 0.1,
|
|
44
|
+
"guidance_scale": 1,
|
|
45
|
+
"negative_prompt": "",
|
|
46
|
+
"grammar_string": "",
|
|
47
|
+
"json_schema": {},
|
|
48
|
+
"banned_tokens": "",
|
|
49
|
+
"sampler_priority": [
|
|
50
|
+
"temperature",
|
|
51
|
+
"dynamic_temperature",
|
|
52
|
+
"quadratic_sampling",
|
|
53
|
+
"top_k",
|
|
54
|
+
"top_p",
|
|
55
|
+
"typical_p",
|
|
56
|
+
"epsilon_cutoff",
|
|
57
|
+
"eta_cutoff",
|
|
58
|
+
"tfs",
|
|
59
|
+
"top_a",
|
|
60
|
+
"min_p",
|
|
61
|
+
"mirostat"
|
|
62
|
+
],
|
|
63
|
+
"samplers": [
|
|
64
|
+
"top_k",
|
|
65
|
+
"tfs_z",
|
|
66
|
+
"typical_p",
|
|
67
|
+
"top_p",
|
|
68
|
+
"min_p",
|
|
69
|
+
"temperature"
|
|
70
|
+
],
|
|
71
|
+
"ignore_eos_token": false,
|
|
72
|
+
"spaces_between_special_tokens": true,
|
|
73
|
+
"speculative_ngram": false,
|
|
74
|
+
"sampler_order": [
|
|
75
|
+
6,
|
|
76
|
+
0,
|
|
77
|
+
1,
|
|
78
|
+
3,
|
|
79
|
+
4,
|
|
80
|
+
2,
|
|
81
|
+
5
|
|
82
|
+
],
|
|
83
|
+
"logit_bias": [],
|
|
84
|
+
"rep_pen_size": 0
|
|
23
85
|
}
|
|
@@ -1,23 +1,85 @@
|
|
|
1
1
|
{
|
|
2
2
|
"temp": 0.7,
|
|
3
|
+
"temperature_last": true,
|
|
3
4
|
"top_p": 0.92,
|
|
4
5
|
"top_k": 150,
|
|
5
|
-
"typical_p": 1,
|
|
6
6
|
"top_a": 0,
|
|
7
7
|
"tfs": 1,
|
|
8
8
|
"epsilon_cutoff": 0,
|
|
9
9
|
"eta_cutoff": 0,
|
|
10
|
-
"
|
|
10
|
+
"typical_p": 1,
|
|
11
|
+
"min_p": 0,
|
|
12
|
+
"rep_pen": 3,
|
|
11
13
|
"rep_pen_range": 0,
|
|
14
|
+
"rep_pen_decay": 0,
|
|
15
|
+
"rep_pen_slope": 1,
|
|
12
16
|
"no_repeat_ngram_size": 2,
|
|
13
17
|
"penalty_alpha": 0,
|
|
14
18
|
"num_beams": 10,
|
|
15
19
|
"length_penalty": 1.4,
|
|
16
20
|
"min_length": 200,
|
|
17
21
|
"encoder_rep_pen": 1,
|
|
22
|
+
"freq_pen": 0,
|
|
23
|
+
"presence_pen": 0,
|
|
24
|
+
"skew": 0,
|
|
18
25
|
"do_sample": true,
|
|
19
26
|
"early_stopping": true,
|
|
27
|
+
"dynatemp": false,
|
|
28
|
+
"min_temp": 0,
|
|
29
|
+
"max_temp": 2,
|
|
30
|
+
"dynatemp_exponent": 1,
|
|
31
|
+
"smoothing_factor": 0,
|
|
32
|
+
"smoothing_curve": 1,
|
|
33
|
+
"dry_allowed_length": 2,
|
|
34
|
+
"dry_multiplier": 0,
|
|
35
|
+
"dry_base": 1.75,
|
|
36
|
+
"dry_sequence_breakers": "[\"\\n\", \":\", \"\\\"\", \"*\"]",
|
|
37
|
+
"dry_penalty_last_n": 0,
|
|
38
|
+
"add_bos_token": true,
|
|
39
|
+
"ban_eos_token": false,
|
|
40
|
+
"skip_special_tokens": true,
|
|
20
41
|
"mirostat_mode": 0,
|
|
21
42
|
"mirostat_tau": 5,
|
|
22
|
-
"mirostat_eta": 0.1
|
|
43
|
+
"mirostat_eta": 0.1,
|
|
44
|
+
"guidance_scale": 1,
|
|
45
|
+
"negative_prompt": "",
|
|
46
|
+
"grammar_string": "",
|
|
47
|
+
"json_schema": {},
|
|
48
|
+
"banned_tokens": "",
|
|
49
|
+
"sampler_priority": [
|
|
50
|
+
"temperature",
|
|
51
|
+
"dynamic_temperature",
|
|
52
|
+
"quadratic_sampling",
|
|
53
|
+
"top_k",
|
|
54
|
+
"top_p",
|
|
55
|
+
"typical_p",
|
|
56
|
+
"epsilon_cutoff",
|
|
57
|
+
"eta_cutoff",
|
|
58
|
+
"tfs",
|
|
59
|
+
"top_a",
|
|
60
|
+
"min_p",
|
|
61
|
+
"mirostat"
|
|
62
|
+
],
|
|
63
|
+
"samplers": [
|
|
64
|
+
"top_k",
|
|
65
|
+
"tfs_z",
|
|
66
|
+
"typical_p",
|
|
67
|
+
"top_p",
|
|
68
|
+
"min_p",
|
|
69
|
+
"temperature"
|
|
70
|
+
],
|
|
71
|
+
"ignore_eos_token": false,
|
|
72
|
+
"spaces_between_special_tokens": true,
|
|
73
|
+
"speculative_ngram": false,
|
|
74
|
+
"sampler_order": [
|
|
75
|
+
6,
|
|
76
|
+
0,
|
|
77
|
+
1,
|
|
78
|
+
3,
|
|
79
|
+
4,
|
|
80
|
+
2,
|
|
81
|
+
5
|
|
82
|
+
],
|
|
83
|
+
"logit_bias": [],
|
|
84
|
+
"rep_pen_size": 0
|
|
23
85
|
}
|
|
@@ -1,23 +1,85 @@
|
|
|
1
1
|
{
|
|
2
2
|
"temp": 0.87,
|
|
3
|
+
"temperature_last": true,
|
|
3
4
|
"top_p": 0.99,
|
|
4
5
|
"top_k": 85,
|
|
5
|
-
"typical_p": 0.68,
|
|
6
6
|
"top_a": 0,
|
|
7
7
|
"tfs": 0.68,
|
|
8
8
|
"epsilon_cutoff": 0,
|
|
9
9
|
"eta_cutoff": 0,
|
|
10
|
+
"typical_p": 0.68,
|
|
11
|
+
"min_p": 0,
|
|
10
12
|
"rep_pen": 1.01,
|
|
11
13
|
"rep_pen_range": 0,
|
|
14
|
+
"rep_pen_decay": 0,
|
|
15
|
+
"rep_pen_slope": 1,
|
|
12
16
|
"no_repeat_ngram_size": 0,
|
|
13
17
|
"penalty_alpha": 0,
|
|
14
18
|
"num_beams": 1,
|
|
15
19
|
"length_penalty": 1,
|
|
16
20
|
"min_length": 0,
|
|
17
21
|
"encoder_rep_pen": 1,
|
|
22
|
+
"freq_pen": 0,
|
|
23
|
+
"presence_pen": 0,
|
|
24
|
+
"skew": 0,
|
|
18
25
|
"do_sample": true,
|
|
19
26
|
"early_stopping": false,
|
|
27
|
+
"dynatemp": false,
|
|
28
|
+
"min_temp": 0,
|
|
29
|
+
"max_temp": 2,
|
|
30
|
+
"dynatemp_exponent": 1,
|
|
31
|
+
"smoothing_factor": 0,
|
|
32
|
+
"smoothing_curve": 1,
|
|
33
|
+
"dry_allowed_length": 2,
|
|
34
|
+
"dry_multiplier": 0,
|
|
35
|
+
"dry_base": 1.75,
|
|
36
|
+
"dry_sequence_breakers": "[\"\\n\", \":\", \"\\\"\", \"*\"]",
|
|
37
|
+
"dry_penalty_last_n": 0,
|
|
38
|
+
"add_bos_token": true,
|
|
39
|
+
"ban_eos_token": false,
|
|
40
|
+
"skip_special_tokens": true,
|
|
20
41
|
"mirostat_mode": 0,
|
|
21
42
|
"mirostat_tau": 5,
|
|
22
|
-
"mirostat_eta": 0.1
|
|
43
|
+
"mirostat_eta": 0.1,
|
|
44
|
+
"guidance_scale": 1,
|
|
45
|
+
"negative_prompt": "",
|
|
46
|
+
"grammar_string": "",
|
|
47
|
+
"json_schema": {},
|
|
48
|
+
"banned_tokens": "",
|
|
49
|
+
"sampler_priority": [
|
|
50
|
+
"temperature",
|
|
51
|
+
"dynamic_temperature",
|
|
52
|
+
"quadratic_sampling",
|
|
53
|
+
"top_k",
|
|
54
|
+
"top_p",
|
|
55
|
+
"typical_p",
|
|
56
|
+
"epsilon_cutoff",
|
|
57
|
+
"eta_cutoff",
|
|
58
|
+
"tfs",
|
|
59
|
+
"top_a",
|
|
60
|
+
"min_p",
|
|
61
|
+
"mirostat"
|
|
62
|
+
],
|
|
63
|
+
"samplers": [
|
|
64
|
+
"top_k",
|
|
65
|
+
"tfs_z",
|
|
66
|
+
"typical_p",
|
|
67
|
+
"top_p",
|
|
68
|
+
"min_p",
|
|
69
|
+
"temperature"
|
|
70
|
+
],
|
|
71
|
+
"ignore_eos_token": false,
|
|
72
|
+
"spaces_between_special_tokens": true,
|
|
73
|
+
"speculative_ngram": false,
|
|
74
|
+
"sampler_order": [
|
|
75
|
+
6,
|
|
76
|
+
0,
|
|
77
|
+
1,
|
|
78
|
+
3,
|
|
79
|
+
4,
|
|
80
|
+
2,
|
|
81
|
+
5
|
|
82
|
+
],
|
|
83
|
+
"logit_bias": [],
|
|
84
|
+
"rep_pen_size": 0
|
|
23
85
|
}
|