sillytavern 1.10.0 → 1.10.2

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.
Files changed (69) hide show
  1. package/SECURITY.md +25 -0
  2. package/colab/GPU.ipynb +11 -0
  3. package/default/config.conf +16 -12
  4. package/default/settings.json +1 -3
  5. package/jsconfig.json +17 -0
  6. package/package.json +2 -4
  7. package/public/css/mobile-styles.css +11 -1
  8. package/public/css/promptmanager.css +6 -1
  9. package/public/css/st-tailwind.css +2 -1
  10. package/public/css/toggle-dependent.css +4 -8
  11. package/public/i18n.json +360 -178
  12. package/public/index.html +195 -107
  13. package/public/script.js +223 -165
  14. package/public/scripts/PromptManager.js +18 -25
  15. package/public/scripts/RossAscends-mods.js +39 -9
  16. package/public/scripts/extensions/backgrounds/index.js +6 -4
  17. package/public/scripts/extensions/cfg/index.js +1 -1
  18. package/public/scripts/extensions/dice/style.css +26 -26
  19. package/public/scripts/extensions/expressions/index.js +5 -0
  20. package/public/scripts/extensions/gallery/index.js +388 -0
  21. package/public/scripts/extensions/gallery/jquery.nanogallery2.min.js +80 -0
  22. package/public/scripts/extensions/gallery/manifest.json +12 -0
  23. package/public/scripts/extensions/gallery/nanogallery2.woff.min.css +1 -0
  24. package/public/scripts/extensions/stable-diffusion/index.js +569 -148
  25. package/public/scripts/extensions/stable-diffusion/settings.html +122 -0
  26. package/public/scripts/extensions/translate/index.js +3 -2
  27. package/public/scripts/extensions/tts/edge.js +1 -1
  28. package/public/scripts/extensions/tts/elevenlabs.js +1 -1
  29. package/public/scripts/extensions/tts/index.js +17 -5
  30. package/public/scripts/extensions/tts/novel.js +1 -1
  31. package/public/scripts/extensions/tts/silerotts.js +1 -1
  32. package/public/scripts/extensions/tts/system.js +1 -1
  33. package/public/scripts/group-chats.js +1 -1
  34. package/public/scripts/kai-settings.js +87 -15
  35. package/public/scripts/nai-settings.js +28 -16
  36. package/public/scripts/openai.js +9 -27
  37. package/public/scripts/power-user.js +66 -23
  38. package/public/scripts/tags.js +2 -2
  39. package/public/scripts/templates/hotkeys.html +2 -2
  40. package/public/scripts/textgen-settings.js +1 -1
  41. package/public/scripts/tokenizers.js +2 -5
  42. package/public/scripts/utils.js +36 -0
  43. package/public/scripts/world-info.js +5 -1
  44. package/public/st-launcher.ico +0 -0
  45. package/public/style.css +79 -8
  46. package/server.js +892 -463
  47. package/src/novelai.js +1 -58
  48. package/public/KoboldAI Settings/Adventurer-NeoX-20B-Erebus.settings +0 -21
  49. package/public/KoboldAI Settings/Calibrated-Pygmalion-6b.settings +0 -20
  50. package/public/KoboldAI Settings/Classic-Pygmalion-2.7b.settings +0 -20
  51. package/public/KoboldAI Settings/Classic-Pygmalion-6b.settings +0 -20
  52. package/public/KoboldAI Settings/Default-TavernAI.settings +0 -20
  53. package/public/KoboldAI Settings/DragonSlayer-Pygmalion-6b.settings +0 -20
  54. package/public/KoboldAI Settings/GPU-Pygmalion-6b.settings +0 -20
  55. package/public/KoboldAI Settings/Lancer-OPT-2.7B-Erebus.settings +0 -20
  56. package/public/KoboldAI Settings/RA - Pygmalion-1.3b.settings +0 -20
  57. package/public/NovelAI Settings/Ace_of_Spades-Euterpe.settings +0 -17
  58. package/public/NovelAI Settings/All_Nighter-Euterpe.settings +0 -17
  59. package/public/NovelAI Settings/Basic_Coherence-Euterpe.settings +0 -17
  60. package/public/NovelAI Settings/Classic-Euterpe.settings +0 -17
  61. package/public/NovelAI Settings/Classic-Krake.settings +0 -17
  62. package/public/NovelAI Settings/Fandango-Euterpe.settings +0 -17
  63. package/public/NovelAI Settings/Genesis-Euterpe.settings +0 -17
  64. package/public/NovelAI Settings/Low_Rider-Euterpe.settings +0 -17
  65. package/public/NovelAI Settings/Moonlit_Chronicler-Euterpe.settings +0 -17
  66. package/public/NovelAI Settings/Morpho-Euterpe.settings +0 -17
  67. package/public/NovelAI Settings/Ouroborous-Euterpe.settings +0 -17
  68. package/public/NovelAI Settings/Pro_Writer-Euterpe.settings +0 -17
  69. package/public/TextGen Settings/Pygmalion.settings +0 -21
package/SECURITY.md ADDED
@@ -0,0 +1,25 @@
1
+ # Security Policy
2
+
3
+ We take the security of this project seriously. If you discover any security vulnerabilities or have concerns regarding the security of this repository, please reach out to us immediately. We appreciate your efforts in responsibly disclosing the issue and will make every effort to address it promptly.
4
+
5
+ ## Reporting a Vulnerability
6
+
7
+ To report a security vulnerability, please follow these steps:
8
+
9
+ 1. Go to the **Security** tab of this repository on GitHub.
10
+ 2. Click on **"Report a vulnerability"**.
11
+ 3. Provide a clear description of the vulnerability and its potential impact. Be as detailed as possible.
12
+ 4. If applicable, include steps or a PoC (Proof of Concept) to reproduce the vulnerability.
13
+ 5. Submit the report.
14
+
15
+ Once we receive the private report notification, we will promptly investigate and assess the reported vulnerability.
16
+
17
+ Please do not disclose any potential vulnerabilities in public repositories, issue trackers, or forums until we have had a chance to review and address the issue.
18
+
19
+ ## Scope
20
+
21
+ This security policy applies to all the code and files within this repository and its dependencies actively maintained by us. If you encounter a security issue in a dependency that is not directly maintained by us, please follow responsible disclosure practices and report it to the respective project.
22
+
23
+ While we strive to ensure the security of this project, please note that there may be limitations on resources, response times, and mitigations.
24
+
25
+ Thank you for your help in making this project more secure.
package/colab/GPU.ipynb CHANGED
@@ -116,6 +116,17 @@
116
116
  "!npm install -g localtunnel\n",
117
117
  "!pip install -r requirements-complete.txt\n",
118
118
  "!pip install tensorflow==2.12\n",
119
+ "!pip install Flask-Cors\n",
120
+ "!pip install Flask-Compress\n",
121
+ "!pip install transformers\n",
122
+ "!pip install Flask_Cloudflared\n",
123
+ "!pip install webuiapi\n",
124
+ "!pip install diffusers\n",
125
+ "!pip install accelerate\n",
126
+ "!pip install silero_api_server\n",
127
+ "!pip install edge_tts\n",
128
+ "!pip install chromadb\n",
129
+ "!pip install sentence_transformers\n",
119
130
  "!wget https://github.com/cloudflare/cloudflared/releases/download/2023.5.0/cloudflared-linux-amd64 -O /tmp/cloudflared-linux-amd64\n",
120
131
  "!chmod +x /tmp/cloudflared-linux-amd64\n",
121
132
  "\n",
@@ -15,17 +15,21 @@ const skipContentCheck = false; // If true, no new default content will be deliv
15
15
  // Change this setting only on "trusted networks". Do not change this value unless you are aware of the issues that can arise from changing this setting and configuring a insecure setting.
16
16
  const securityOverride = false;
17
17
 
18
+ // Request overrides for additional headers
19
+ const requestOverrides = [];
20
+
18
21
  module.exports = {
19
- port,
20
- whitelist,
21
- whitelistMode,
22
- basicAuthMode,
23
- basicAuthUser,
24
- autorun,
25
- enableExtensions,
26
- listen,
27
- disableThumbnails,
28
- allowKeysExposure,
29
- securityOverride,
30
- skipContentCheck,
22
+ port,
23
+ whitelist,
24
+ whitelistMode,
25
+ basicAuthMode,
26
+ basicAuthUser,
27
+ autorun,
28
+ enableExtensions,
29
+ listen,
30
+ disableThumbnails,
31
+ allowKeysExposure,
32
+ securityOverride,
33
+ skipContentCheck,
34
+ requestOverrides,
31
35
  };
@@ -68,7 +68,6 @@
68
68
  "tokenizer": 99,
69
69
  "token_padding": 64,
70
70
  "collapse_newlines": false,
71
- "pygmalion_formatting": 0,
72
71
  "pin_examples": false,
73
72
  "strip_examples": false,
74
73
  "trim_sentences": false,
@@ -604,7 +603,6 @@
604
603
  "proxy_password": "",
605
604
  "assistant_prefill": "",
606
605
  "use_ai21_tokenizer": false,
607
- "exclude_assistant": false,
608
- "nsfw_avoidance_prompt": "Avoid writing a NSFW/Smut reply. Creatively write around it NSFW/Smut scenarios in character."
606
+ "exclude_assistant": false
609
607
  }
610
608
  }
package/jsconfig.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "ESNext",
4
+ "target": "ESNext",
5
+ "moduleResolution": "node",
6
+ "strictNullChecks": true,
7
+ "strictFunctionTypes": true,
8
+ "checkJs": true,
9
+ "allowUmdGlobalAccess": true,
10
+ "allowSyntheticDefaultImports": true,
11
+ "resolveJsonModule": true
12
+ },
13
+ "exclude": [
14
+ "node_modules",
15
+ "**/node_modules/*"
16
+ ]
17
+ }
package/package.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "@agnai/sentencepiece-js": "^1.1.1",
4
4
  "@agnai/web-tokenizers": "^0.1.3",
5
5
  "@dqbd/tiktoken": "^1.0.2",
6
- "axios": "^1.4.0",
7
6
  "command-exists": "^1.2.9",
8
7
  "compression": "^1",
9
8
  "cookie-parser": "^1.4.6",
@@ -23,8 +22,7 @@
23
22
  "mime-types": "^2.1.35",
24
23
  "multer": "^1.4.5-lts.1",
25
24
  "node-fetch": "^2.6.11",
26
- "node-rest-client": "^3.1.1",
27
- "open": "^8.4.0",
25
+ "open": "^8.4.2",
28
26
  "piexifjs": "^1.0.6",
29
27
  "png-chunk-text": "^1.0.0",
30
28
  "png-chunks-encode": "^1.0.0",
@@ -51,7 +49,7 @@
51
49
  "type": "git",
52
50
  "url": "https://github.com/SillyTavern/SillyTavern.git"
53
51
  },
54
- "version": "1.10.0",
52
+ "version": "1.10.2",
55
53
  "scripts": {
56
54
  "start": "node server.js",
57
55
  "start-multi": "node server.js --disableCsrf",
@@ -270,6 +270,16 @@
270
270
  }
271
271
  }
272
272
 
273
+ @media screen and (min-width: 1001px) {
274
+ #PygOverrides,
275
+ #ContextFormatting,
276
+ #UI-Theme-Block,
277
+ #UI-Customization,
278
+ #power-user-options-block {
279
+ flex: 1;
280
+ }
281
+ }
282
+
273
283
  /*landscape mode phones and ipads*/
274
284
  @media screen and (max-width: 1000px) and (orientation: landscape) {
275
285
  body.waifuMode img.expression {
@@ -407,4 +417,4 @@
407
417
  #horde_model {
408
418
  height: unset;
409
419
  }
410
- }
420
+ }
@@ -60,6 +60,7 @@
60
60
  #completion_prompt_manager #completion_prompt_manager_list li.completion_prompt_manager_prompt .prompt_manager_prompt_controls {
61
61
  display: flex;
62
62
  justify-content: space-between;
63
+ font-size: calc(var(--mainFontSize)*1.2);
63
64
  }
64
65
 
65
66
  #completion_prompt_manager #completion_prompt_manager_list li.completion_prompt_manager_prompt .prompt_manager_prompt_controls span {
@@ -77,7 +78,7 @@
77
78
  height: 20px;
78
79
  width: 20px;
79
80
  filter: drop-shadow(0px 0px 2px black);
80
- opacity: 0.2;
81
+ opacity: 0.4;
81
82
  }
82
83
 
83
84
  #completion_prompt_manager #completion_prompt_manager_list li.completion_prompt_manager_prompt span span:hover {
@@ -171,6 +172,10 @@
171
172
  color: var(--white30a);
172
173
  }
173
174
 
175
+ #completion_prompt_manager #completion_prompt_manager_list .completion_prompt_manager_prompt:not(.completion_prompt_manager_prompt_disabled) .prompt-manager-toggle-action {
176
+ color: var(--SmartThemeQuoteColor);
177
+ }
178
+
174
179
  #completion_prompt_manager #completion_prompt_manager_list .completion_prompt_manager_prompt.completion_prompt_manager_prompt_disabled {
175
180
  border: 1px solid var(--white20a);
176
181
  }
@@ -404,6 +404,7 @@
404
404
 
405
405
  .widthFitContent {
406
406
  width: fit-content;
407
+ min-width: fit-content;
407
408
  }
408
409
 
409
410
  .flexGap5 {
@@ -416,4 +417,4 @@
416
417
 
417
418
  .opacity1 {
418
419
  opacity: 1 !important;
419
- }
420
+ }
@@ -8,15 +8,10 @@ body.tts .mes_narrate {
8
8
  display: inline-block;
9
9
  }
10
10
 
11
- body.no-hotswap .hotswap {
12
- display: none !important;
13
- }
14
-
15
- body.no-timer .mes_timer {
16
- display: none !important;
17
- }
18
-
11
+ body.no-hotswap .hotswap,
12
+ body.no-timer .mes_timer,
19
13
  body.no-timestamps .timestamp,
14
+ body.no-tokenCount .tokenCounterDisplay,
20
15
  body.no-mesIDDisplay .mesIDDisplay,
21
16
  body.no-modelIcons .icon-svg {
22
17
  display: none !important;
@@ -347,6 +342,7 @@ body.movingUI #sheld,
347
342
  body.movingUI .drawer-content,
348
343
  body.movingUI #expression-holder,
349
344
  body.movingUI .zoomed_avatar,
345
+ body.movingUI .draggable,
350
346
  body.movingUI #floatingPrompt,
351
347
  body.movingUI #groupMemberListPopout {
352
348
  resize: both;