sillytavern 1.4.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.
Files changed (259) hide show
  1. package/.dockerignore +4 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +35 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  4. package/.github/workflows/npm-publish.yml +32 -0
  5. package/Dockerfile +49 -0
  6. package/Start.bat +3 -0
  7. package/colab/GPU.ipynb +339 -0
  8. package/colab/extras_server.py +40 -0
  9. package/colab/globals.py +2 -0
  10. package/colab/models.py +77 -0
  11. package/docker/docker-compose.yml +12 -0
  12. package/docker/docker-entrypoint.sh +28 -0
  13. package/faq.md +208 -0
  14. package/package.json +49 -0
  15. package/poe-client.js +638 -0
  16. package/poe-test.js +21 -0
  17. package/poe_graphql/AddHumanMessageMutation.graphql +52 -0
  18. package/poe_graphql/AddMessageBreakMutation.graphql +17 -0
  19. package/poe_graphql/AutoSubscriptionMutation.graphql +7 -0
  20. package/poe_graphql/BioFragment.graphql +8 -0
  21. package/poe_graphql/ChatAddedSubscription.graphql +5 -0
  22. package/poe_graphql/ChatFragment.graphql +6 -0
  23. package/poe_graphql/ChatListPaginationQuery.graphql +316 -0
  24. package/poe_graphql/ChatPaginationQuery.graphql +26 -0
  25. package/poe_graphql/ChatViewQuery.graphql +8 -0
  26. package/poe_graphql/DeleteHumanMessagesMutation.graphql +7 -0
  27. package/poe_graphql/DeleteMessageMutation.graphql +7 -0
  28. package/poe_graphql/HandleFragment.graphql +8 -0
  29. package/poe_graphql/LoginWithVerificationCodeMutation.graphql +13 -0
  30. package/poe_graphql/MessageAddedSubscription.graphql +115 -0
  31. package/poe_graphql/MessageDeletedSubscription.graphql +8 -0
  32. package/poe_graphql/MessageFragment.graphql +13 -0
  33. package/poe_graphql/MessageRemoveVoteMutation.graphql +7 -0
  34. package/poe_graphql/MessageSetVoteMutation.graphql +7 -0
  35. package/poe_graphql/SendVerificationCodeForLoginMutation.graphql +12 -0
  36. package/poe_graphql/ShareMessagesMutation.graphql +9 -0
  37. package/poe_graphql/SignupWithVerificationCodeMutation.graphql +13 -0
  38. package/poe_graphql/StaleChatUpdateMutation.graphql +7 -0
  39. package/poe_graphql/SubscriptionsMutation.graphql +9 -0
  40. package/poe_graphql/SummarizePlainPostQuery.graphql +3 -0
  41. package/poe_graphql/SummarizeQuotePostQuery.graphql +3 -0
  42. package/poe_graphql/SummarizeSharePostQuery.graphql +3 -0
  43. package/poe_graphql/UserSnippetFragment.graphql +14 -0
  44. package/poe_graphql/ViewerInfoQuery.graphql +21 -0
  45. package/poe_graphql/ViewerMessageLimitUpdatedSubscription.graphql +81 -0
  46. package/poe_graphql/ViewerStateFragment.graphql +30 -0
  47. package/poe_graphql/ViewerStateUpdatedSubscription.graphql +63 -0
  48. package/public/KoboldAI Settings/Ace of Spades 13B.settings +22 -0
  49. package/public/KoboldAI Settings/Adventurer-NeoX-20B-Erebus.settings +54 -0
  50. package/public/KoboldAI Settings/Basic Coherence 13B.settings +22 -0
  51. package/public/KoboldAI Settings/Best Guess 6B.settings +22 -0
  52. package/public/KoboldAI Settings/Calibrated-Pygmalion-6b.settings +47 -0
  53. package/public/KoboldAI Settings/Classic-Pygmalion-2.7b.settings +46 -0
  54. package/public/KoboldAI Settings/Classic-Pygmalion-6b.settings +47 -0
  55. package/public/KoboldAI Settings/Coherent Creativity 6B.settings +22 -0
  56. package/public/KoboldAI Settings/Default-TavernAI.settings +22 -0
  57. package/public/KoboldAI Settings/DragonSlayer-Pygmalion-6b.settings +47 -0
  58. package/public/KoboldAI Settings/GPU-Pygmalion-6b.settings +47 -0
  59. package/public/KoboldAI Settings/Genesis 13B.settings +22 -0
  60. package/public/KoboldAI Settings/Godlike.settings +22 -0
  61. package/public/KoboldAI Settings/Good Winds.settings +22 -0
  62. package/public/KoboldAI Settings/Lancer-OPT-2.7B-Erebus.settings +54 -0
  63. package/public/KoboldAI Settings/Liminal Drift.settings +22 -0
  64. package/public/KoboldAI Settings/Low Rider 13B.settings +22 -0
  65. package/public/KoboldAI Settings/Luna Moth 6B.settings +22 -0
  66. package/public/KoboldAI Settings/Mayday.settings +22 -0
  67. package/public/KoboldAI Settings/Ouroboros.settings +22 -0
  68. package/public/KoboldAI Settings/Pleasing Results 6B.settings +22 -0
  69. package/public/KoboldAI Settings/Pro Writer 13B.settings +22 -0
  70. package/public/KoboldAI Settings/RA - Pygmalion-1.3b.settings +46 -0
  71. package/public/KoboldAI Settings/Storywriter 6B.settings +22 -0
  72. package/public/NovelAI Settings/Classic-Euterpe.settings +14 -0
  73. package/public/NovelAI Settings/Classic-Krake.settings +14 -0
  74. package/public/OpenAI Settings/Default.settings +15 -0
  75. package/public/TextGen Settings/Beam Search.settings +15 -0
  76. package/public/TextGen Settings/Contrastive Search.settings +15 -0
  77. package/public/TextGen Settings/Default.settings +15 -0
  78. package/public/TextGen Settings/Deterministic.settings +15 -0
  79. package/public/TextGen Settings/Kobold (Godlike).settings +15 -0
  80. package/public/TextGen Settings/Kobold (Liminal Drift).settings +15 -0
  81. package/public/TextGen Settings/Naive.settings +15 -0
  82. package/public/TextGen Settings/NovelAI (Best Guess).settings +15 -0
  83. package/public/TextGen Settings/NovelAI (Decadence).settings +15 -0
  84. package/public/TextGen Settings/NovelAI (Genesis).settings +15 -0
  85. package/public/TextGen Settings/NovelAI (Lycaenidae).settings +15 -0
  86. package/public/TextGen Settings/NovelAI (Ouroboros).settings +15 -0
  87. package/public/TextGen Settings/NovelAI (Pleasing Results).settings +15 -0
  88. package/public/TextGen Settings/NovelAI (Sphinx Moth).settings +15 -0
  89. package/public/TextGen Settings/NovelAI (Storywriter).settings +15 -0
  90. package/public/TextGen Settings/Pygmalion.settings +15 -0
  91. package/public/css/fontawesome.css +8488 -0
  92. package/public/css/notes.css +46 -0
  93. package/public/css/solid.css +24 -0
  94. package/public/favicon.ico +0 -0
  95. package/public/img/No-Image-Placeholder.svg +309 -0
  96. package/public/img/addbg3.png +0 -0
  97. package/public/img/ai4.png +0 -0
  98. package/public/img/apple-icon-114x114.png +0 -0
  99. package/public/img/apple-icon-144x144.png +0 -0
  100. package/public/img/apple-icon-57x57.png +0 -0
  101. package/public/img/apple-icon-72x72.png +0 -0
  102. package/public/img/book2.png +0 -0
  103. package/public/img/default-expressions/admiration.png +0 -0
  104. package/public/img/default-expressions/amusement.png +0 -0
  105. package/public/img/default-expressions/anger.png +0 -0
  106. package/public/img/default-expressions/annoyance.png +0 -0
  107. package/public/img/default-expressions/approval.png +0 -0
  108. package/public/img/default-expressions/caring.png +0 -0
  109. package/public/img/default-expressions/confusion.png +0 -0
  110. package/public/img/default-expressions/curiosity.png +0 -0
  111. package/public/img/default-expressions/desire.png +0 -0
  112. package/public/img/default-expressions/desire1.png +0 -0
  113. package/public/img/default-expressions/desire2.png +0 -0
  114. package/public/img/default-expressions/disappointment.png +0 -0
  115. package/public/img/default-expressions/disapproval.png +0 -0
  116. package/public/img/default-expressions/disgust.png +0 -0
  117. package/public/img/default-expressions/embarrassment.png +0 -0
  118. package/public/img/default-expressions/excitement.png +0 -0
  119. package/public/img/default-expressions/fear.png +0 -0
  120. package/public/img/default-expressions/gratitude.png +0 -0
  121. package/public/img/default-expressions/grief.png +0 -0
  122. package/public/img/default-expressions/joy.png +0 -0
  123. package/public/img/default-expressions/love.png +0 -0
  124. package/public/img/default-expressions/nervousness.png +0 -0
  125. package/public/img/default-expressions/neutral.png +0 -0
  126. package/public/img/default-expressions/optimism.png +0 -0
  127. package/public/img/default-expressions/pride.png +0 -0
  128. package/public/img/default-expressions/realization.png +0 -0
  129. package/public/img/default-expressions/relief.png +0 -0
  130. package/public/img/default-expressions/remorse.png +0 -0
  131. package/public/img/default-expressions/sadness.png +0 -0
  132. package/public/img/default-expressions/surprise.png +0 -0
  133. package/public/img/five.png +0 -0
  134. package/public/img/times-circle.svg +1 -0
  135. package/public/img/you.png +0 -0
  136. package/public/index.html +1899 -0
  137. package/public/notes/1.html +44 -0
  138. package/public/notes/1.png +0 -0
  139. package/public/notes/10.html +20 -0
  140. package/public/notes/11.html +33 -0
  141. package/public/notes/12.html +27 -0
  142. package/public/notes/13.html +29 -0
  143. package/public/notes/13_1.html +24 -0
  144. package/public/notes/13_2.html +25 -0
  145. package/public/notes/13_3.html +89 -0
  146. package/public/notes/14.html +30 -0
  147. package/public/notes/2.html +37 -0
  148. package/public/notes/2.png +0 -0
  149. package/public/notes/3.html +37 -0
  150. package/public/notes/4.html +105 -0
  151. package/public/notes/6.html +33 -0
  152. package/public/notes/7.html +40 -0
  153. package/public/notes/8.html +19 -0
  154. package/public/notes/9.html +46 -0
  155. package/public/notes/advanced_formatting.html +91 -0
  156. package/public/notes/group_reply_strategy.html +63 -0
  157. package/public/notes/message_sound.html +33 -0
  158. package/public/notes/multigen.html +36 -0
  159. package/public/notes/oai_api_key.html +37 -0
  160. package/public/notes/textgen_streaming.html +29 -0
  161. package/public/notes/token-limits.html +68 -0
  162. package/public/script.js +5131 -0
  163. package/public/scripts/RossAscends-mods.js +750 -0
  164. package/public/scripts/bookmarks.js +130 -0
  165. package/public/scripts/extensions/backgrounds/index.js +129 -0
  166. package/public/scripts/extensions/backgrounds/manifest.json +11 -0
  167. package/public/scripts/extensions/backgrounds/style.css +45 -0
  168. package/public/scripts/extensions/caption/index.js +117 -0
  169. package/public/scripts/extensions/caption/manifest.json +13 -0
  170. package/public/scripts/extensions/caption/style.css +23 -0
  171. package/public/scripts/extensions/dice/droll.js +108 -0
  172. package/public/scripts/extensions/dice/index.js +96 -0
  173. package/public/scripts/extensions/dice/manifest.json +11 -0
  174. package/public/scripts/extensions/dice/style.css +26 -0
  175. package/public/scripts/extensions/expressions/index.js +387 -0
  176. package/public/scripts/extensions/expressions/manifest.json +13 -0
  177. package/public/scripts/extensions/expressions/style.css +115 -0
  178. package/public/scripts/extensions/floating-prompt/index.js +151 -0
  179. package/public/scripts/extensions/floating-prompt/manifest.json +11 -0
  180. package/public/scripts/extensions/floating-prompt/style.css +19 -0
  181. package/public/scripts/extensions/memory/index.js +358 -0
  182. package/public/scripts/extensions/memory/manifest.json +13 -0
  183. package/public/scripts/extensions/memory/style.css +34 -0
  184. package/public/scripts/extensions.js +288 -0
  185. package/public/scripts/f-localStorage.js +27 -0
  186. package/public/scripts/gpt-2-3-tokenizer/README.md +28 -0
  187. package/public/scripts/gpt-2-3-tokenizer/encoder.js +1 -0
  188. package/public/scripts/gpt-2-3-tokenizer/mod.js +169 -0
  189. package/public/scripts/gpt-2-3-tokenizer/vocab.bpe.js +1 -0
  190. package/public/scripts/gpt-3-tokenizer/array-keyed-map.js +210 -0
  191. package/public/scripts/gpt-3-tokenizer/gpt3-tokenizer.js +271 -0
  192. package/public/scripts/gpt-3-tokenizer/gpt3-tokenizer.js.map +1 -0
  193. package/public/scripts/group-chats.js +899 -0
  194. package/public/scripts/horde.js +214 -0
  195. package/public/scripts/jquery-3.5.1.min.js +2 -0
  196. package/public/scripts/jquery-cookie-1.4.1.min.js +2 -0
  197. package/public/scripts/jquery.transit.min.js +1 -0
  198. package/public/scripts/kai-settings.js +179 -0
  199. package/public/scripts/nai-settings.js +108 -0
  200. package/public/scripts/openai.js +973 -0
  201. package/public/scripts/poe.js +360 -0
  202. package/public/scripts/popper.js +2008 -0
  203. package/public/scripts/popper.js.map +1 -0
  204. package/public/scripts/power-user.js +571 -0
  205. package/public/scripts/purify.min.js +3 -0
  206. package/public/scripts/purify.min.js.map +1 -0
  207. package/public/scripts/showdown.min.js +3 -0
  208. package/public/scripts/showdown.min.js.map +1 -0
  209. package/public/scripts/swiped-events.js +165 -0
  210. package/public/scripts/textgen-settings.js +194 -0
  211. package/public/scripts/toolcool-color-picker.js +87 -0
  212. package/public/scripts/utils.js +109 -0
  213. package/public/scripts/world-info.js +661 -0
  214. package/public/sounds/message.mp3 +0 -0
  215. package/public/style.css +3633 -0
  216. package/public/webfonts/NotoSans/NotoSans-Black.woff +0 -0
  217. package/public/webfonts/NotoSans/NotoSans-Black.woff2 +0 -0
  218. package/public/webfonts/NotoSans/NotoSans-BlackItalic.woff +0 -0
  219. package/public/webfonts/NotoSans/NotoSans-BlackItalic.woff2 +0 -0
  220. package/public/webfonts/NotoSans/NotoSans-Bold.woff +0 -0
  221. package/public/webfonts/NotoSans/NotoSans-Bold.woff2 +0 -0
  222. package/public/webfonts/NotoSans/NotoSans-BoldItalic.woff +0 -0
  223. package/public/webfonts/NotoSans/NotoSans-BoldItalic.woff2 +0 -0
  224. package/public/webfonts/NotoSans/NotoSans-ExtraBold.woff +0 -0
  225. package/public/webfonts/NotoSans/NotoSans-ExtraBold.woff2 +0 -0
  226. package/public/webfonts/NotoSans/NotoSans-ExtraBoldItalic.woff +0 -0
  227. package/public/webfonts/NotoSans/NotoSans-ExtraBoldItalic.woff2 +0 -0
  228. package/public/webfonts/NotoSans/NotoSans-ExtraLight.woff +0 -0
  229. package/public/webfonts/NotoSans/NotoSans-ExtraLight.woff2 +0 -0
  230. package/public/webfonts/NotoSans/NotoSans-ExtraLightItalic.woff +0 -0
  231. package/public/webfonts/NotoSans/NotoSans-ExtraLightItalic.woff2 +0 -0
  232. package/public/webfonts/NotoSans/NotoSans-Italic.woff +0 -0
  233. package/public/webfonts/NotoSans/NotoSans-Italic.woff2 +0 -0
  234. package/public/webfonts/NotoSans/NotoSans-Light.woff +0 -0
  235. package/public/webfonts/NotoSans/NotoSans-Light.woff2 +0 -0
  236. package/public/webfonts/NotoSans/NotoSans-LightItalic.woff +0 -0
  237. package/public/webfonts/NotoSans/NotoSans-LightItalic.woff2 +0 -0
  238. package/public/webfonts/NotoSans/NotoSans-Medium.woff +0 -0
  239. package/public/webfonts/NotoSans/NotoSans-Medium.woff2 +0 -0
  240. package/public/webfonts/NotoSans/NotoSans-MediumItalic.woff +0 -0
  241. package/public/webfonts/NotoSans/NotoSans-MediumItalic.woff2 +0 -0
  242. package/public/webfonts/NotoSans/NotoSans-Regular.woff +0 -0
  243. package/public/webfonts/NotoSans/NotoSans-Regular.woff2 +0 -0
  244. package/public/webfonts/NotoSans/NotoSans-SemiBold.woff +0 -0
  245. package/public/webfonts/NotoSans/NotoSans-SemiBold.woff2 +0 -0
  246. package/public/webfonts/NotoSans/NotoSans-SemiBoldItalic.woff +0 -0
  247. package/public/webfonts/NotoSans/NotoSans-SemiBoldItalic.woff2 +0 -0
  248. package/public/webfonts/NotoSans/NotoSans-Thin.woff +0 -0
  249. package/public/webfonts/NotoSans/NotoSans-Thin.woff2 +0 -0
  250. package/public/webfonts/NotoSans/NotoSans-ThinItalic.woff +0 -0
  251. package/public/webfonts/NotoSans/NotoSans-ThinItalic.woff2 +0 -0
  252. package/public/webfonts/NotoSans/stylesheet.css +162 -0
  253. package/public/webfonts/fa-solid-900.ttf +0 -0
  254. package/public/webfonts/fa-solid-900.woff2 +0 -0
  255. package/readme.md +187 -0
  256. package/server.js +2593 -0
  257. package/start.sh +24 -0
  258. package/tools/charaverter/main.mjs +110 -0
  259. package/tools/charaverter/package.json +10 -0
@@ -0,0 +1,46 @@
1
+ <html>
2
+ <head>
3
+ <title>Anchors</title>
4
+ <link rel="stylesheet" href="/css/notes.css">
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <link rel="preconnect" href="https://fonts.googleapis.com">
8
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
9
+ <link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap" rel="stylesheet">
10
+ </head>
11
+ <body>
12
+ <div id="main">
13
+ <div id="content">
14
+ <h2>Anchors</h2>
15
+ <p>
16
+ Anchors are used to increase the length of messages.<br>
17
+ There are two types of anchors: <u>Character Anchor</u> and <u>Style Anchor</u>
18
+ </p>
19
+ <p>
20
+ <u>Character Anchor</u> - affects the character played by the AI by motivating it to write longer messages.<br><br>
21
+ Looks like:
22
+ <code>[Elaborate speaker]</code>
23
+ </p>
24
+ <p>
25
+ <u>Style Anchor</u> - affects the entire AI model, motivating the AI to write longer messages even when it is not acting as the character.<Br><br>
26
+ Looks like:
27
+ <code>[Writing style: very long messages]</code>
28
+ </p>
29
+ <hr>
30
+ <p>
31
+ Anchors Order sets the location of anchors in the promt, the first anchor in the order is much further back in the context and thus has less influence than second.
32
+ </p>
33
+ <p>
34
+ The second anchor is only turned on after 8-12 messages, because when the chat still only has a few messages, the first anchor creates enough effect on its own.
35
+ </p>
36
+ <p>
37
+ Sometimes an AI model may not perceive anchors correctly or the AI model already generates sufficiently long messages.
38
+ For these cases, you can disable the anchors by unchecking their respective boxes.
39
+ </p>
40
+ <p>
41
+ <u>When using Pygmalion models these anchors are automatically disabled, since Pygmalion already generates long enough messages.</u>
42
+ </p>
43
+ </div>
44
+ </div>
45
+ </body>
46
+ </html>
@@ -0,0 +1,91 @@
1
+ <html>
2
+
3
+ <head>
4
+ <title>Advanced Formatting</title>
5
+ <link rel="stylesheet" href="/css/notes.css">
6
+ <meta charset="UTF-8">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
10
+ <link
11
+ href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap"
12
+ rel="stylesheet">
13
+ </head>
14
+
15
+ <body>
16
+ <div id="main">
17
+ <div id="content">
18
+ <h2>Advanced Formatting</h2>
19
+ <p>
20
+ The settings provided in this section allow for more control over the prompt building strategy.
21
+ Most specifics of the prompt building depend on whether a Pygmalion model is selected or special formatting is force-enabled.
22
+ The core differences between the formatting schemas are listed below.
23
+ </p>
24
+ <h3>Custom Chat Separator</h3>
25
+ <p>
26
+ Overrides the default separators controlled by "Disable example chats formatting" and "Disable chat start formatting" options (see below).
27
+ </p>
28
+ <h3>For <u>Pygmalion</u> formatting</h3>
29
+ <h4>Disable description formatting</h4>
30
+ <p>
31
+ <code><b>NAME's Persona: </b></code> won't be prepended to the content of your character's Description box.
32
+ </p>
33
+ <h4>Disable scenario formatting</h4>
34
+ <p>
35
+ <code><b>Scenario: </b></code> won't be prepended to the content of your character's Scenario box.
36
+ </p>
37
+ <h4>Disable personality formatting</h4>
38
+ <p>
39
+ <code><b>Personality: </b></code> won't be prepended to the content of your character's Personality box.
40
+ </p>
41
+ <h4>Disable example chats formatting</h4>
42
+ <p>
43
+ <code>&lt;START&gt;</code> won't be added at the beginning of each example message block.<br>
44
+ <i>(If custom separator is not set)</i>
45
+ </p>
46
+ <h4>Disable chat start formatting</h4>
47
+ <p>
48
+ <code>&lt;START&gt;</code> won't be added between the character card and the chat log.<br>
49
+ <i>(If custom separator is not set)</i>
50
+ </p>
51
+ <h4>Always add character's name to prompt</h4>
52
+ <p>
53
+ Doesn't do anything (Included in Pygmalion formatting).
54
+ </p>
55
+ <h3>For <u>non-Pygmalion</u> formatting</h3>
56
+ <h4>Disable description formatting</h4>
57
+ <p>
58
+ Has no effect.
59
+ </p>
60
+ <h4>Disable scenario formatting</h4>
61
+ <p>
62
+ <code><b>Circumstances and context of the dialogue: </b></code> won't be prepended to the content of your character's Scenario box.
63
+ </p>
64
+ <h4>Disable personality formatting</h4>
65
+ <p>
66
+ <code><b>NAME's personality: </b></code> won't be prepended to the content of your character's Personality box.
67
+ </p>
68
+ <h4>Disable example chats formatting</h4>
69
+ <p>
70
+ <code>This is how <b>Character</b> should talk</code> won't be added at the beginning of each example message block.<br>
71
+ <i>(If custom separator is not set)</i>
72
+ </p>
73
+ <h4>Disable chat start formatting</h4>
74
+ <p>
75
+ <code>Then the roleplay chat between <b>User</b> and <b>Character</b> begins</code> won't be added between the character card and the chat log.<br>
76
+ <i>(If custom separator is not set)</i>
77
+ </p>
78
+ <h4>Always add character's name to prompt</h4>
79
+ <p>
80
+ Appends character's name to the prompt to force the model to complete the message as the character:
81
+ </p>
82
+
83
+ <code>
84
+ ** OTHER CONTEXT HERE **<br>
85
+ Character:
86
+ </code>
87
+ </div>
88
+ </div>
89
+ </body>
90
+
91
+ </html>
@@ -0,0 +1,63 @@
1
+ <html>
2
+
3
+ <head>
4
+ <title>Group reply order strategies</title>
5
+ <link rel="stylesheet" href="/css/notes.css">
6
+ <meta charset="UTF-8">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
10
+ <link
11
+ href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap"
12
+ rel="stylesheet">
13
+ </head>
14
+
15
+ <body>
16
+ <div id="main">
17
+ <div id="content">
18
+ <h2>Group reply order strategies</h2>
19
+ <p>
20
+ Decides how characters in group chats are drafted for their replies.
21
+ </p>
22
+ <h3>Natural order</h3>
23
+ <p>
24
+ Tries to simulate the flow of a real human conversation. The algorithm is as follows:
25
+ </p>
26
+ <h4>1. Mentions of the group member names are extracted from the last message in chat.</h4>
27
+ <p>
28
+ Only whole words are recognized as mentions!
29
+ If your character's name is "Misaka Mikoto", they will reply only activate on "Misaka" or "Mikoto", but
30
+ never to "Misa", "Railgun", etc.
31
+ </p>
32
+ <p>
33
+ Unless "Allow bot responses to self" setting is enabled, characters won't reply to mentions of their
34
+ name in their own message!
35
+ </p>
36
+ <h4>2. Characters are activated by the "Talkativeness" factor.</h4>
37
+ <p>
38
+ Talkativeness defines how often the character speaks if they were not mentioned. Adjust this value on
39
+ "Advanced definitions" screen in character editor. Slider values are on a linear scale from
40
+ <b>0% / Shy</b> (character never talks unless mentioned) to <b>100% / Chatty</b> (character always replies).
41
+ Default value for new characters is 50% chance.
42
+ </p>
43
+ <h4>3. Random character is selected.</h4>
44
+ <p>
45
+ If no characters were activated at previous steps, one speaker is selected randomly, ignoring all other
46
+ conditions.
47
+ </p>
48
+ <h3>List order</h3>
49
+ <p>
50
+ Characters are drafted based on the order they are presented in group members list. No other rules
51
+ apply.
52
+ </p>
53
+ <h3>Important!</h3>
54
+ <br>
55
+ <strong style="color: salmon">
56
+ Regeneration in group chats deletes all character message up until the <i>last message sent by you</i>.
57
+ Use swipes to generate just the latest message.
58
+ </strong>
59
+ </div>
60
+ </div>
61
+ </body>
62
+
63
+ </html>
@@ -0,0 +1,33 @@
1
+ <html>
2
+
3
+ <head>
4
+ <title>Message Sound</title>
5
+ <link rel="stylesheet" href="/css/notes.css">
6
+ <meta charset="UTF-8">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
10
+ <link
11
+ href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap"
12
+ rel="stylesheet">
13
+ </head>
14
+
15
+ <body>
16
+ <div id="main">
17
+ <div id="content">
18
+ <h2>Message Sound</h2>
19
+ <p>To play your own custom sound on receiving a new message from bot, replace the following MP3 file in your SillyTavern folder:</p>
20
+ <code>
21
+ public/sounds/message.mp3
22
+ </code>
23
+ <p>
24
+ Plays at 80% volume.
25
+ </p>
26
+ <p>
27
+ If "Background Sound Only" option is enabled, the sound plays only if SillyTavern window is <b>unfocused</b>.
28
+ </p>
29
+ </div>
30
+ </div>
31
+ </body>
32
+
33
+ </html>
@@ -0,0 +1,36 @@
1
+ <html>
2
+
3
+ <head>
4
+ <title>Multigen</title>
5
+ <link rel="stylesheet" href="/css/notes.css">
6
+ <meta charset="UTF-8">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
10
+ <link
11
+ href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap"
12
+ rel="stylesheet">
13
+ </head>
14
+
15
+ <body>
16
+ <div id="main">
17
+ <div id="content">
18
+ <h2>Multigen</h2>
19
+ <p>SillyTavern tries to create faster and longer responses by chaining the generation using smaller batches.</p>
20
+ <h3>Default settings:</h3>
21
+ <p>First batch = 50 tokens</p>
22
+ <p>Next batches = 30 tokens</p>
23
+ <h3>Algorithm:</h3>
24
+ <p>1. Generate the first batch (if amount of generation setting is more than batch length).</p>
25
+ <p>2. Generate next batch of tokens until one of the stopping conditions is reached.</p>
26
+ <p>3. Append the generated text to the next cycle's prompt.</p>
27
+ <h3>Stopping conditions:</h3>
28
+ <p>1. Generated enough text.</p>
29
+ <p>2. Character starts speaking for You.</p>
30
+ <p>3. <tt>&lt;|endoftext|&gt;</tt> token reached.</p>
31
+ <p>4. No text generated.</p>
32
+ </div>
33
+ </div>
34
+ </body>
35
+
36
+ </html>
@@ -0,0 +1,37 @@
1
+ <html>
2
+
3
+ <head>
4
+ <title>OpenAI API key</title>
5
+ <link rel="stylesheet" href="/css/notes.css">
6
+ <meta charset="UTF-8">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
10
+ <link
11
+ href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap"
12
+ rel="stylesheet">
13
+ </head>
14
+
15
+ <body>
16
+ <div id="main">
17
+ <div id="content">
18
+ <h2>OpenAI API key</h2>
19
+ <br>
20
+ <h3>How to get:</h3>
21
+ <ol>
22
+ <li>
23
+ Go to <a href="https://platform.openai.com/" target="_blank">OpenAI</a> and sign in.
24
+ </li>
25
+ <li>
26
+ Use "<a href="https://platform.openai.com/account/api-keys" target="_blank">View API keys</a>" option to create a new API key.
27
+ </li>
28
+ </ol>
29
+ <h3>Important!</h3>
30
+ <p>
31
+ <i>Lost API keys can't be restored! Make sure to keep it safe!</i>
32
+ </p>
33
+ </div>
34
+ </div>
35
+ </body>
36
+
37
+ </html>
@@ -0,0 +1,29 @@
1
+ <html>
2
+
3
+ <head>
4
+ <title>Gradio Streaming Function ID</title>
5
+ <link rel="stylesheet" href="/css/notes.css">
6
+ <meta charset="UTF-8">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
10
+ <link
11
+ href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap"
12
+ rel="stylesheet">
13
+ </head>
14
+
15
+ <body>
16
+ <div id="main">
17
+ <div id="content">
18
+ <h2>Gradio Streaming Function ID</h2>
19
+ <p>
20
+ To use streaming with Text Generation Web UI, a Gradio function index needs to be provided.
21
+ It is impossible to be determined programmatically and should be typed in manually.
22
+ If the streaming doesn't work with the default value, get the most recent function ID here:
23
+ <a href="https://github.com/oobabooga/text-generation-webui/blob/main/api-example-stream.py#L15">GRADIO_FN</a>
24
+ </p>
25
+ </div>
26
+ </div>
27
+ </body>
28
+
29
+ </html>
@@ -0,0 +1,68 @@
1
+ <html>
2
+
3
+ <head>
4
+ <title>Character Tokens</title>
5
+ <link rel="stylesheet" href="/css/notes.css">
6
+ <meta charset="UTF-8">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
10
+ <link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap" rel="stylesheet">
11
+ </head>
12
+
13
+ <body>
14
+ <div id="main">
15
+ <div id="content">
16
+ <h2>Character Tokens</h2>
17
+
18
+ <p><b>TL;DR: If you're working with an AI model with a 2048 context token limit, your 1000 token character definition is cutting the AI's 'memory' in half.</b></p>
19
+ <p>To put this in perspective, a decent response from a good AI can easily be around 200-300 tokens. In this case, the AI would only be able to 'remember' about 3 exchanges worth of chat history.</p>
20
+ <hr>
21
+
22
+ <h3>Why did my character's token counter turn red?</h3>
23
+ <p>When we see your character has over 1000 tokens in its definitions, we highlight it for you because this can lower the AI's capabilities to provide an enjoyable conversation.</p>
24
+
25
+ <h3>What happens if my Character has too many tokens?</h3>
26
+ <p>Don't worry - it won't break anything. At worst, if the Character's permanent tokens are too large, it simply means there will be less room left in the context for other things (see below).</p>
27
+ <p>The only negative side effect this can have is the AI will have less 'memory', as it will have less chat history available to process.</p>
28
+ <p>This is because every AI model has a limit to the amount of context it can process at one time.</p>
29
+ <h3>'Context'?</h3>
30
+ <p>This is the information that gets sent to the AI each time you ask it to generate a response:</p>
31
+ <ul>
32
+ <li>Character definitions</li>
33
+ <li>Chat history</li>
34
+ <li>Author's Notes</li>
35
+ <li>Special Format strings</li>
36
+ <li>[bracket commands]</li>
37
+ </ul>
38
+
39
+ <p>SillyTavern automatically calculates the best way to allocate the available context tokens before sending the information to the AI model.</p>
40
+
41
+ <h3>What are a Character's 'Permanent Tokens'?</h3>
42
+ <p>These will always be sent to the AI with every generation request:</p>
43
+ <ul>
44
+ <li>Character Name (keep the name short! Sent at the start of EVERY Character message)</li>
45
+ <li>Character Description Box</li>
46
+ <li>Character Personality Box</li>
47
+ <li>Scenario Box</li>
48
+ </ul>
49
+ <h3>What parts of a Character's Definitions are NOT permanent?</h3>
50
+ <ul>
51
+ <li>The first message box - only sent once at the start of the chat.</li>
52
+ <li>Example messages box - only kept until chat history fills up the context (optionally these can be forced to be kept in context)</li>
53
+ </ul>
54
+
55
+ <h3>Popular AI Model Context Token Limits</h3>
56
+ <ul>
57
+ <li>Older models below 6B parameters - 1024</li>
58
+ <li>Pygmalion 6B - 2048</li>
59
+ <li>Poe.com (Claude-instant or ChatGPT) - 2048</li>
60
+ <li>OpenAI ChatGPT - 4000-ish?</li>
61
+ <li>OpenAI GPT-4 - 8000?</li>
62
+ </ul>
63
+
64
+ </div>
65
+ </div>
66
+ </body>
67
+
68
+ </html>