sillytavern 1.4.9 → 1.5.1
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/.dockerignore +1 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +5 -1
- package/.replit +80 -0
- package/Dockerfile +11 -13
- package/LICENSE +661 -0
- package/Start.bat +3 -1
- package/Update-Instructions.txt +55 -0
- package/colab/GPU.ipynb +49 -278
- package/config.conf +12 -1
- package/docker/docker-entrypoint.sh +9 -24
- package/faq.md +15 -10
- package/package.json +9 -1
- package/public/NovelAI Settings/Classic-Krake.settings +2 -2
- package/public/backgrounds/bedroom clean.jpg +0 -0
- package/public/backgrounds/bedroom cyberpunk.jpg +0 -0
- package/public/backgrounds/bedroom red.jpg +0 -0
- package/public/backgrounds/bedroom tatami.jpg +0 -0
- package/public/backgrounds/cityscape medieval market.jpg +0 -0
- package/public/backgrounds/cityscape medieval night.jpg +0 -0
- package/public/backgrounds/cityscape postapoc.jpg +0 -0
- package/public/backgrounds/japan classroom side.jpg +0 -0
- package/public/backgrounds/japan classroom.jpg +0 -0
- package/public/backgrounds/japan path cherry blossom.jpg +0 -0
- package/public/backgrounds/japan university.jpg +0 -0
- package/public/backgrounds/landscape autumn great tree.jpg +0 -0
- package/public/backgrounds/landscape beach day.png +0 -0
- package/public/backgrounds/landscape beach night.jpg +0 -0
- package/public/backgrounds/landscape mountain lake.jpg +0 -0
- package/public/backgrounds/landscape postapoc.jpg +0 -0
- package/public/backgrounds/landscape winter lake house.jpg +0 -0
- package/public/backgrounds/royal.jpg +0 -0
- package/public/backgrounds/tavern day.jpg +0 -0
- package/public/css/bright.min.css +7 -0
- package/public/css/cropper.min.css +9 -0
- package/public/css/jquery-ui.min.css +7 -0
- package/public/css/notes.css +57 -30
- package/public/favicon.ico +0 -0
- package/public/img/apple-icon-114x114.png +0 -0
- package/public/img/apple-icon-144x144.png +0 -0
- package/public/img/apple-icon-57x57.png +0 -0
- package/public/img/apple-icon-72x72.png +0 -0
- package/public/img/five.png +0 -0
- package/public/index.html +1242 -668
- package/public/instruct/Alpaca.json +9 -0
- package/public/instruct/Koala.json +9 -0
- package/public/instruct/Metharme.json +9 -0
- package/public/instruct/Vicuna 1.0.json +9 -0
- package/public/instruct/Vicuna 1.1.json +9 -0
- package/public/instruct/WizardLM.json +9 -0
- package/public/notes/content.md +646 -0
- package/public/notes/faq.md.html +24 -0
- package/public/notes/index.html +24 -0
- package/public/notes/readme.md.html +24 -0
- package/public/notes/update.html +24 -0
- package/public/notes/update.md +64 -0
- package/public/script.js +1677 -772
- package/public/scripts/RossAscends-mods.js +184 -104
- package/public/scripts/bookmarks.js +192 -46
- package/public/scripts/cropper.min.js +10 -0
- package/public/scripts/extensions/backgrounds/index.js +2 -2
- package/public/scripts/extensions/caption/index.js +6 -4
- package/public/scripts/extensions/caption/style.css +2 -1
- package/public/scripts/extensions/dice/index.js +1 -1
- package/public/scripts/extensions/expressions/index.js +9 -10
- package/public/scripts/extensions/expressions/style.css +10 -1
- package/public/scripts/extensions/floating-prompt/index.js +29 -7
- package/public/scripts/extensions/memory/index.js +37 -7
- package/public/scripts/extensions/stable-diffusion/index.js +473 -0
- package/public/scripts/extensions/stable-diffusion/manifest.json +13 -0
- package/public/scripts/extensions/stable-diffusion/style.css +30 -0
- package/public/scripts/extensions/tts/elevenlabs.js +217 -0
- package/public/scripts/extensions/tts/index.js +496 -0
- package/public/scripts/extensions/tts/manifest.json +13 -0
- package/public/scripts/extensions/tts/silerotts.js +141 -0
- package/public/scripts/extensions/tts/style.css +43 -0
- package/public/scripts/extensions/tts/system.js +143 -0
- package/public/scripts/extensions.js +15 -9
- package/public/scripts/group-chats.js +586 -198
- package/public/scripts/highlight.min.js +1361 -0
- package/public/scripts/horde.js +60 -47
- package/public/scripts/jquery-cropper.min.js +10 -0
- package/public/scripts/jquery-ui.min.js +6 -0
- package/public/scripts/moment.min.js +2 -0
- package/public/scripts/moment.min.js.map +1 -0
- package/public/scripts/nai-settings.js +0 -7
- package/public/scripts/notes.js +18 -0
- package/public/scripts/openai.js +545 -179
- package/public/scripts/poe.js +45 -44
- package/public/scripts/power-user.js +585 -80
- package/public/scripts/secrets.js +103 -0
- package/public/scripts/showdown-katex.min.js +36 -0
- package/public/scripts/showdown-katex.min.js.map +1 -0
- package/public/scripts/showdown-toc.min.js +1 -0
- package/public/scripts/slash-commands.js +132 -0
- package/public/scripts/tags.js +441 -0
- package/public/scripts/textgen-settings.js +2 -3
- package/public/scripts/utils.js +109 -27
- package/public/scripts/world-info.js +72 -45
- package/public/sounds/silence.mp3 +0 -0
- package/public/style.css +939 -369
- package/public/themes/Aqua Blue v2.json +1 -0
- package/public/themes/Default (Minimal Dark) v2.json +20 -0
- package/public/themes/Default (Minimal Light).json +1 -0
- package/public/themes/Megumin Red v2.json +1 -0
- package/public/themes/Ross.json +20 -0
- package/readme.md +63 -23
- package/replit.nix +8 -0
- package/server.js +679 -306
- package/src/sentencepiece/sentencepiece.min.js +8 -0
- package/src/sentencepiece/tokenizer.model +0 -0
- package/start.sh +9 -0
- package/tools/charaverter/main.mjs +9 -2
- package/colab/extras_server.py +0 -40
- package/colab/globals.py +0 -2
- package/colab/models.py +0 -77
- package/public/backgrounds/TAI-cozynight.jpg +0 -0
- package/public/backgrounds/TAI-getrest.jpg +0 -0
- package/public/backgrounds/TAI-kingdom.jpg +0 -0
- package/public/backgrounds/TAI-market.jpg +0 -0
- package/public/backgrounds/TAI-noble1.jpg +0 -0
- package/public/backgrounds/TAI-noble2.jpg +0 -0
- package/public/backgrounds/TAI-outdoor.jpg +0 -0
- package/public/backgrounds/TAI-tavern.jpg +0 -0
- package/public/backgrounds/TAI-theredlake.jpg +0 -0
- package/public/backgrounds/TAI-warmtown.jpg +0 -0
- package/public/backgrounds/TAI-whitesnow.jpg +0 -0
- package/public/backgrounds/_pattern-bokeh1.jpg +0 -0
- package/public/backgrounds/_pattern-bokeh2.jpg +0 -0
- package/public/backgrounds/_pattern.jpg +0 -0
- package/public/backgrounds/barmodern.jpg +0 -0
- package/public/backgrounds/beach1.jpg +0 -0
- package/public/backgrounds/beach2.jpg +0 -0
- package/public/backgrounds/bedroom1.jpg +0 -0
- package/public/backgrounds/bedroom2.jpg +0 -0
- package/public/backgrounds/bedroom4.jpg +0 -0
- package/public/backgrounds/bedroom5.jpg +0 -0
- package/public/backgrounds/classroom1.jpg +0 -0
- package/public/backgrounds/classroom3.jpg +0 -0
- package/public/backgrounds/classroom4.jpg +0 -0
- package/public/backgrounds/classroom5.jpg +0 -0
- package/public/backgrounds/cyberpunkbedroom.jpg +0 -0
- package/public/backgrounds/cyberpunkbedroom2.jpg +0 -0
- package/public/backgrounds/cyberpunkcity.jpg +0 -0
- package/public/backgrounds/cyberpunkstreet.jpg +0 -0
- package/public/backgrounds/fantasycity.jpg +0 -0
- package/public/backgrounds/fantasycity2.jpg +0 -0
- package/public/backgrounds/fantasylandscape.jpg +0 -0
- package/public/backgrounds/fantasylandscape3.jpg +0 -0
- package/public/backgrounds/fantasylandscape4.jpg +0 -0
- package/public/backgrounds/fantasylandscape5.jpg +0 -0
- package/public/backgrounds/fantasylandscaperiver.jpg +0 -0
- package/public/backgrounds/fantasylandscapesakura.jpg +0 -0
- package/public/backgrounds/fantasylandscapesakura2.jpg +0 -0
- package/public/backgrounds/fantasytemplesakura.jpg +0 -0
- package/public/backgrounds/hellscape1.jpg +0 -0
- package/public/backgrounds/hellscape2.jpg +0 -0
- package/public/backgrounds/hellscape3.jpg +0 -0
- package/public/backgrounds/hellscape4.jpg +0 -0
- package/public/backgrounds/market2.jpg +0 -0
- package/public/backgrounds/nightclub.jpg +0 -0
- package/public/backgrounds/post-apoc1.jpg +0 -0
- package/public/backgrounds/post-apoc2.jpg +0 -0
- package/public/backgrounds/post-apoc3.jpg +0 -0
- package/public/backgrounds/post-apoc4.jpg +0 -0
- package/public/backgrounds/post-apoc5.jpg +0 -0
- package/public/backgrounds/post-apoc6.jpg +0 -0
- package/public/backgrounds/redlight.jpg +0 -0
- package/public/backgrounds/redlight2.jpg +0 -0
- package/public/backgrounds/redlight3.jpg +0 -0
- package/public/backgrounds/redlight4.jpg +0 -0
- package/public/backgrounds/tatamiroom.jpg +0 -0
- package/public/backgrounds/tatamiroom2.jpg +0 -0
- package/public/backgrounds/tavern1.jpg +0 -0
- package/public/backgrounds/tavern2.jpg +0 -0
- package/public/backgrounds/tavern3.jpg +0 -0
- package/public/backgrounds/tavern5.jpg +0 -0
- package/public/backgrounds/university1.jpg +0 -0
- package/public/backgrounds/university2.jpg +0 -0
- package/public/backgrounds/university3.jpg +0 -0
- package/public/notes/1.html +0 -44
- package/public/notes/10.html +0 -20
- package/public/notes/11.html +0 -33
- package/public/notes/12.html +0 -27
- package/public/notes/13.html +0 -29
- package/public/notes/13_1.html +0 -24
- package/public/notes/13_2.html +0 -25
- package/public/notes/13_3.html +0 -89
- package/public/notes/14.html +0 -30
- package/public/notes/15.html +0 -26
- package/public/notes/2.html +0 -37
- package/public/notes/3.html +0 -37
- package/public/notes/4.html +0 -105
- package/public/notes/6.html +0 -33
- package/public/notes/7.html +0 -40
- package/public/notes/8.html +0 -19
- package/public/notes/9.html +0 -46
- package/public/notes/advanced_formatting.html +0 -91
- package/public/notes/group_reply_strategy.html +0 -63
- package/public/notes/message_sound.html +0 -33
- package/public/notes/multigen.html +0 -36
- package/public/notes/oai_api_key.html +0 -37
- package/public/notes/token-limits.html +0 -68
- package/public/themes/Aqua Blue.json +0 -8
- package/public/themes/Default (Dark).json +0 -8
- package/public/themes/Megumin Red.json +0 -8
package/.dockerignore
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Bug report
|
|
3
|
-
about: Create a report to help us improve
|
|
3
|
+
about: "Create a report to help us improve. PAY ATTENTION: Support requests for extenal programs (reverse proxies, 3rd party servers, other peoples' forks) will be refused!"
|
|
4
4
|
title: "[BUG]"
|
|
5
5
|
labels: ''
|
|
6
6
|
assignees: ''
|
|
@@ -23,6 +23,10 @@ A clear and concise description of what you expected to happen.
|
|
|
23
23
|
**Screenshots**
|
|
24
24
|
If applicable, add screenshots to help explain your problem.
|
|
25
25
|
|
|
26
|
+
**Logs**
|
|
27
|
+
|
|
28
|
+
Providing the logs from the browser DevTools console (opened by pressing the F12 key) or SillyTavern command line window will be highly appreciated.
|
|
29
|
+
|
|
26
30
|
**Desktop (please complete the following information):**
|
|
27
31
|
- OS/Device: [e.g. Windows 11]
|
|
28
32
|
- Environment: [cloud, local]
|
package/.replit
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
hidden = [".config", "package-lock.json"]
|
|
3
|
+
run = "chmod 755 ./start.sh && ./start.sh"
|
|
4
|
+
|
|
5
|
+
[[hints]]
|
|
6
|
+
regex = "Error \\[ERR_REQUIRE_ESM\\]"
|
|
7
|
+
message = "We see that you are using require(...) inside your code. We currently do not support this syntax. Please use 'import' instead when using external modules. (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)"
|
|
8
|
+
|
|
9
|
+
[nix]
|
|
10
|
+
channel = "stable-22_11"
|
|
11
|
+
|
|
12
|
+
[env]
|
|
13
|
+
XDG_CONFIG_HOME = "/home/runner/$REPL_SLUG/.config"
|
|
14
|
+
PATH = "/home/runner/$REPL_SLUG/.config/npm/node_global/bin:/home/runner/$REPL_SLUG/node_modules/.bin"
|
|
15
|
+
npm_config_prefix = "/home/runner/$REPL_SLUG/.config/npm/node_global"
|
|
16
|
+
|
|
17
|
+
[gitHubImport]
|
|
18
|
+
requiredFiles = [".replit", "replit.nix", ".config", "package.json", "package-lock.json"]
|
|
19
|
+
|
|
20
|
+
[packager]
|
|
21
|
+
language = "nodejs"
|
|
22
|
+
|
|
23
|
+
[packager.features]
|
|
24
|
+
packageSearch = true
|
|
25
|
+
guessImports = true
|
|
26
|
+
enabledForHosting = false
|
|
27
|
+
|
|
28
|
+
[unitTest]
|
|
29
|
+
language = "nodejs"
|
|
30
|
+
|
|
31
|
+
[debugger]
|
|
32
|
+
support = true
|
|
33
|
+
|
|
34
|
+
[debugger.interactive]
|
|
35
|
+
transport = "localhost:0"
|
|
36
|
+
startCommand = [ "dap-node" ]
|
|
37
|
+
|
|
38
|
+
[debugger.interactive.initializeMessage]
|
|
39
|
+
command = "initialize"
|
|
40
|
+
type = "request"
|
|
41
|
+
|
|
42
|
+
[debugger.interactive.initializeMessage.arguments]
|
|
43
|
+
clientID = "replit"
|
|
44
|
+
clientName = "replit.com"
|
|
45
|
+
columnsStartAt1 = true
|
|
46
|
+
linesStartAt1 = true
|
|
47
|
+
locale = "en-us"
|
|
48
|
+
pathFormat = "path"
|
|
49
|
+
supportsInvalidatedEvent = true
|
|
50
|
+
supportsProgressReporting = true
|
|
51
|
+
supportsRunInTerminalRequest = true
|
|
52
|
+
supportsVariablePaging = true
|
|
53
|
+
supportsVariableType = true
|
|
54
|
+
|
|
55
|
+
[debugger.interactive.launchMessage]
|
|
56
|
+
command = "launch"
|
|
57
|
+
type = "request"
|
|
58
|
+
|
|
59
|
+
[debugger.interactive.launchMessage.arguments]
|
|
60
|
+
args = []
|
|
61
|
+
console = "externalTerminal"
|
|
62
|
+
cwd = "."
|
|
63
|
+
environment = []
|
|
64
|
+
pauseForSourceMap = false
|
|
65
|
+
program = "./index.js"
|
|
66
|
+
request = "launch"
|
|
67
|
+
sourceMaps = true
|
|
68
|
+
stopOnEntry = false
|
|
69
|
+
type = "pwa-node"
|
|
70
|
+
|
|
71
|
+
[languages]
|
|
72
|
+
|
|
73
|
+
[languages.javascript]
|
|
74
|
+
pattern = "**/{*.js,*.jsx,*.ts,*.tsx,*.json}"
|
|
75
|
+
|
|
76
|
+
[languages.javascript.languageServer]
|
|
77
|
+
start = "typescript-language-server --stdio"
|
|
78
|
+
|
|
79
|
+
[deployment]
|
|
80
|
+
run = ["sh", "-c", "./start.sh"]
|
package/Dockerfile
CHANGED
|
@@ -3,8 +3,10 @@ FROM node:19.1.0-alpine3.16
|
|
|
3
3
|
# Arguments
|
|
4
4
|
ARG APP_HOME=/home/node/app
|
|
5
5
|
|
|
6
|
+
# Install system dependencies
|
|
7
|
+
RUN apk add gcompat tini
|
|
8
|
+
|
|
6
9
|
# Ensure proper handling of kernel signals
|
|
7
|
-
RUN apk add tini
|
|
8
10
|
ENTRYPOINT [ "tini", "--" ]
|
|
9
11
|
|
|
10
12
|
# Create app directory
|
|
@@ -14,31 +16,27 @@ WORKDIR ${APP_HOME}
|
|
|
14
16
|
COPY package*.json ./
|
|
15
17
|
RUN \
|
|
16
18
|
echo "*** Install npm packages ***" && \
|
|
17
|
-
npm install
|
|
19
|
+
npm install && npm cache clean --force
|
|
18
20
|
|
|
19
21
|
# Bundle app source
|
|
20
22
|
COPY . ./
|
|
21
23
|
|
|
22
24
|
# Copy default chats, characters and user avatars to <folder>.default folder
|
|
23
25
|
RUN \
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
mv "
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
IFS="," RESOURCES="characters,chats,User Avatars,settings.json" && \
|
|
27
|
+
\
|
|
28
|
+
echo "*** Store default $RESOURCES in <folder>.default ***" && \
|
|
29
|
+
for R in $RESOURCES; do mv "public/$R" "public/$R.default"; done && \
|
|
30
|
+
\
|
|
30
31
|
echo "*** Create symbolic links to config directory ***" && \
|
|
31
|
-
ln -s "
|
|
32
|
-
|
|
33
|
-
ln -s "${APP_HOME}/config/User Avatars" "${APP_HOME}/public/User Avatars" && \
|
|
34
|
-
ln -s "${APP_HOME}/config/settings.json" "${APP_HOME}/public/settings.json"
|
|
32
|
+
for R in $RESOURCES; do ln -s "../config/$R" "public/$R"; done && \
|
|
33
|
+
mkdir "config"
|
|
35
34
|
|
|
36
35
|
# Cleanup unnecessary files
|
|
37
36
|
RUN \
|
|
38
37
|
echo "*** Cleanup ***" && \
|
|
39
38
|
mv "./docker/docker-entrypoint.sh" "./" && \
|
|
40
39
|
rm -rf "./docker" && \
|
|
41
|
-
rm -rf "./.git" && \
|
|
42
40
|
echo "*** Make docker-entrypoint.sh executable ***" && \
|
|
43
41
|
chmod +x "./docker-entrypoint.sh" && \
|
|
44
42
|
echo "*** Convert line endings to Unix format ***" && \
|