dwf89044485 commited on
Commit
eb6ce97
·
verified ·
1 Parent(s): 995c33c

Upload 865 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +100 -0
  2. CONTRIBUTING.md +41 -0
  3. Dockerfile +51 -0
  4. LICENSE +661 -0
  5. Remote-Link.cmd +18 -0
  6. SECURITY.md +25 -0
  7. Start.bat +7 -0
  8. Update-Instructions.txt +75 -0
  9. UpdateAndStart.bat +27 -0
  10. UpdateForkAndStart.bat +110 -0
  11. backups/!README.md +9 -0
  12. colab/GPU.ipynb +193 -0
  13. data/.gitkeep +0 -0
  14. default/!DO-NOT-EDIT-THESE-FILES.txt +13 -0
  15. default/.DS_Store +0 -0
  16. default/config.yaml +240 -0
  17. default/content/Char_Avatar_Comfy_Workflow.json +137 -0
  18. default/content/Default_Comfy_Workflow.json +86 -0
  19. default/content/Eldoria.json +155 -0
  20. default/content/Seraphina/admiration.png +3 -0
  21. default/content/Seraphina/amusement.png +3 -0
  22. default/content/Seraphina/anger.png +3 -0
  23. default/content/Seraphina/annoyance.png +3 -0
  24. default/content/Seraphina/approval.png +3 -0
  25. default/content/Seraphina/caring.png +3 -0
  26. default/content/Seraphina/confusion.png +3 -0
  27. default/content/Seraphina/curiosity.png +3 -0
  28. default/content/Seraphina/desire.png +3 -0
  29. default/content/Seraphina/disappointment.png +3 -0
  30. default/content/Seraphina/disapproval.png +3 -0
  31. default/content/Seraphina/disgust.png +3 -0
  32. default/content/Seraphina/embarrassment.png +3 -0
  33. default/content/Seraphina/excitement.png +3 -0
  34. default/content/Seraphina/fear.png +3 -0
  35. default/content/Seraphina/gratitude.png +3 -0
  36. default/content/Seraphina/grief.png +3 -0
  37. default/content/Seraphina/joy.png +3 -0
  38. default/content/Seraphina/love.png +3 -0
  39. default/content/Seraphina/nervousness.png +3 -0
  40. default/content/Seraphina/neutral.png +3 -0
  41. default/content/Seraphina/optimism.png +3 -0
  42. default/content/Seraphina/pride.png +3 -0
  43. default/content/Seraphina/realization.png +3 -0
  44. default/content/Seraphina/relief.png +3 -0
  45. default/content/Seraphina/remorse.png +3 -0
  46. default/content/Seraphina/sadness.png +3 -0
  47. default/content/Seraphina/surprise.png +3 -0
  48. default/content/backgrounds/__transparent.png +0 -0
  49. default/content/backgrounds/_black.jpg +0 -0
  50. default/content/backgrounds/_white.jpg +0 -0
.gitattributes CHANGED
@@ -33,3 +33,103 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ default/content/backgrounds/bedroom[[:space:]]clean.jpg filter=lfs diff=lfs merge=lfs -text
37
+ default/content/backgrounds/bedroom[[:space:]]cyberpunk.jpg filter=lfs diff=lfs merge=lfs -text
38
+ default/content/backgrounds/bedroom[[:space:]]red.jpg filter=lfs diff=lfs merge=lfs -text
39
+ default/content/backgrounds/bedroom[[:space:]]tatami.jpg filter=lfs diff=lfs merge=lfs -text
40
+ default/content/backgrounds/cityscape[[:space:]]medieval[[:space:]]market.jpg filter=lfs diff=lfs merge=lfs -text
41
+ default/content/backgrounds/cityscape[[:space:]]medieval[[:space:]]night.jpg filter=lfs diff=lfs merge=lfs -text
42
+ default/content/backgrounds/cityscape[[:space:]]postapoc.jpg filter=lfs diff=lfs merge=lfs -text
43
+ default/content/backgrounds/forest[[:space:]]treehouse[[:space:]]fireworks[[:space:]]air[[:space:]]baloons[[:space:]](by[[:space:]]kallmeflocc).jpg filter=lfs diff=lfs merge=lfs -text
44
+ default/content/backgrounds/japan[[:space:]]classroom[[:space:]]side.jpg filter=lfs diff=lfs merge=lfs -text
45
+ default/content/backgrounds/japan[[:space:]]classroom.jpg filter=lfs diff=lfs merge=lfs -text
46
+ default/content/backgrounds/japan[[:space:]]path[[:space:]]cherry[[:space:]]blossom.jpg filter=lfs diff=lfs merge=lfs -text
47
+ default/content/backgrounds/japan[[:space:]]university.jpg filter=lfs diff=lfs merge=lfs -text
48
+ default/content/backgrounds/landscape[[:space:]]autumn[[:space:]]great[[:space:]]tree.jpg filter=lfs diff=lfs merge=lfs -text
49
+ default/content/backgrounds/landscape[[:space:]]beach[[:space:]]day.png filter=lfs diff=lfs merge=lfs -text
50
+ default/content/backgrounds/landscape[[:space:]]beach[[:space:]]night.jpg filter=lfs diff=lfs merge=lfs -text
51
+ default/content/backgrounds/landscape[[:space:]]mountain[[:space:]]lake.jpg filter=lfs diff=lfs merge=lfs -text
52
+ default/content/backgrounds/landscape[[:space:]]postapoc.jpg filter=lfs diff=lfs merge=lfs -text
53
+ default/content/backgrounds/landscape[[:space:]]winter[[:space:]]lake[[:space:]]house.jpg filter=lfs diff=lfs merge=lfs -text
54
+ default/content/backgrounds/royal.jpg filter=lfs diff=lfs merge=lfs -text
55
+ default/content/backgrounds/tavern[[:space:]]day.jpg filter=lfs diff=lfs merge=lfs -text
56
+ default/content/default_Seraphina.png filter=lfs diff=lfs merge=lfs -text
57
+ default/content/Seraphina/admiration.png filter=lfs diff=lfs merge=lfs -text
58
+ default/content/Seraphina/amusement.png filter=lfs diff=lfs merge=lfs -text
59
+ default/content/Seraphina/anger.png filter=lfs diff=lfs merge=lfs -text
60
+ default/content/Seraphina/annoyance.png filter=lfs diff=lfs merge=lfs -text
61
+ default/content/Seraphina/approval.png filter=lfs diff=lfs merge=lfs -text
62
+ default/content/Seraphina/caring.png filter=lfs diff=lfs merge=lfs -text
63
+ default/content/Seraphina/confusion.png filter=lfs diff=lfs merge=lfs -text
64
+ default/content/Seraphina/curiosity.png filter=lfs diff=lfs merge=lfs -text
65
+ default/content/Seraphina/desire.png filter=lfs diff=lfs merge=lfs -text
66
+ default/content/Seraphina/disappointment.png filter=lfs diff=lfs merge=lfs -text
67
+ default/content/Seraphina/disapproval.png filter=lfs diff=lfs merge=lfs -text
68
+ default/content/Seraphina/disgust.png filter=lfs diff=lfs merge=lfs -text
69
+ default/content/Seraphina/embarrassment.png filter=lfs diff=lfs merge=lfs -text
70
+ default/content/Seraphina/excitement.png filter=lfs diff=lfs merge=lfs -text
71
+ default/content/Seraphina/fear.png filter=lfs diff=lfs merge=lfs -text
72
+ default/content/Seraphina/gratitude.png filter=lfs diff=lfs merge=lfs -text
73
+ default/content/Seraphina/grief.png filter=lfs diff=lfs merge=lfs -text
74
+ default/content/Seraphina/joy.png filter=lfs diff=lfs merge=lfs -text
75
+ default/content/Seraphina/love.png filter=lfs diff=lfs merge=lfs -text
76
+ default/content/Seraphina/nervousness.png filter=lfs diff=lfs merge=lfs -text
77
+ default/content/Seraphina/neutral.png filter=lfs diff=lfs merge=lfs -text
78
+ default/content/Seraphina/optimism.png filter=lfs diff=lfs merge=lfs -text
79
+ default/content/Seraphina/pride.png filter=lfs diff=lfs merge=lfs -text
80
+ default/content/Seraphina/realization.png filter=lfs diff=lfs merge=lfs -text
81
+ default/content/Seraphina/relief.png filter=lfs diff=lfs merge=lfs -text
82
+ default/content/Seraphina/remorse.png filter=lfs diff=lfs merge=lfs -text
83
+ default/content/Seraphina/sadness.png filter=lfs diff=lfs merge=lfs -text
84
+ default/content/Seraphina/surprise.png filter=lfs diff=lfs merge=lfs -text
85
+ public/st-launcher.ico filter=lfs diff=lfs merge=lfs -text
86
+ public/st.ico filter=lfs diff=lfs merge=lfs -text
87
+ public/webfonts/fa-brands-400.ttf filter=lfs diff=lfs merge=lfs -text
88
+ public/webfonts/fa-brands-400.woff2 filter=lfs diff=lfs merge=lfs -text
89
+ public/webfonts/fa-solid-900.ttf filter=lfs diff=lfs merge=lfs -text
90
+ public/webfonts/fa-solid-900.woff2 filter=lfs diff=lfs merge=lfs -text
91
+ public/webfonts/NotoSans/NotoSans-Black.woff filter=lfs diff=lfs merge=lfs -text
92
+ public/webfonts/NotoSans/NotoSans-Black.woff2 filter=lfs diff=lfs merge=lfs -text
93
+ public/webfonts/NotoSans/NotoSans-BlackItalic.woff filter=lfs diff=lfs merge=lfs -text
94
+ public/webfonts/NotoSans/NotoSans-BlackItalic.woff2 filter=lfs diff=lfs merge=lfs -text
95
+ public/webfonts/NotoSans/NotoSans-Bold.woff filter=lfs diff=lfs merge=lfs -text
96
+ public/webfonts/NotoSans/NotoSans-Bold.woff2 filter=lfs diff=lfs merge=lfs -text
97
+ public/webfonts/NotoSans/NotoSans-BoldItalic.woff filter=lfs diff=lfs merge=lfs -text
98
+ public/webfonts/NotoSans/NotoSans-BoldItalic.woff2 filter=lfs diff=lfs merge=lfs -text
99
+ public/webfonts/NotoSans/NotoSans-ExtraBold.woff filter=lfs diff=lfs merge=lfs -text
100
+ public/webfonts/NotoSans/NotoSans-ExtraBold.woff2 filter=lfs diff=lfs merge=lfs -text
101
+ public/webfonts/NotoSans/NotoSans-ExtraBoldItalic.woff filter=lfs diff=lfs merge=lfs -text
102
+ public/webfonts/NotoSans/NotoSans-ExtraBoldItalic.woff2 filter=lfs diff=lfs merge=lfs -text
103
+ public/webfonts/NotoSans/NotoSans-ExtraLight.woff filter=lfs diff=lfs merge=lfs -text
104
+ public/webfonts/NotoSans/NotoSans-ExtraLight.woff2 filter=lfs diff=lfs merge=lfs -text
105
+ public/webfonts/NotoSans/NotoSans-ExtraLightItalic.woff filter=lfs diff=lfs merge=lfs -text
106
+ public/webfonts/NotoSans/NotoSans-ExtraLightItalic.woff2 filter=lfs diff=lfs merge=lfs -text
107
+ public/webfonts/NotoSans/NotoSans-Italic.woff filter=lfs diff=lfs merge=lfs -text
108
+ public/webfonts/NotoSans/NotoSans-Italic.woff2 filter=lfs diff=lfs merge=lfs -text
109
+ public/webfonts/NotoSans/NotoSans-Light.woff filter=lfs diff=lfs merge=lfs -text
110
+ public/webfonts/NotoSans/NotoSans-Light.woff2 filter=lfs diff=lfs merge=lfs -text
111
+ public/webfonts/NotoSans/NotoSans-LightItalic.woff filter=lfs diff=lfs merge=lfs -text
112
+ public/webfonts/NotoSans/NotoSans-LightItalic.woff2 filter=lfs diff=lfs merge=lfs -text
113
+ public/webfonts/NotoSans/NotoSans-Medium.woff filter=lfs diff=lfs merge=lfs -text
114
+ public/webfonts/NotoSans/NotoSans-Medium.woff2 filter=lfs diff=lfs merge=lfs -text
115
+ public/webfonts/NotoSans/NotoSans-MediumItalic.woff filter=lfs diff=lfs merge=lfs -text
116
+ public/webfonts/NotoSans/NotoSans-MediumItalic.woff2 filter=lfs diff=lfs merge=lfs -text
117
+ public/webfonts/NotoSans/NotoSans-Regular.woff filter=lfs diff=lfs merge=lfs -text
118
+ public/webfonts/NotoSans/NotoSans-Regular.woff2 filter=lfs diff=lfs merge=lfs -text
119
+ public/webfonts/NotoSans/NotoSans-SemiBold.woff filter=lfs diff=lfs merge=lfs -text
120
+ public/webfonts/NotoSans/NotoSans-SemiBold.woff2 filter=lfs diff=lfs merge=lfs -text
121
+ public/webfonts/NotoSans/NotoSans-SemiBoldItalic.woff filter=lfs diff=lfs merge=lfs -text
122
+ public/webfonts/NotoSans/NotoSans-SemiBoldItalic.woff2 filter=lfs diff=lfs merge=lfs -text
123
+ public/webfonts/NotoSans/NotoSans-Thin.woff filter=lfs diff=lfs merge=lfs -text
124
+ public/webfonts/NotoSans/NotoSans-Thin.woff2 filter=lfs diff=lfs merge=lfs -text
125
+ public/webfonts/NotoSans/NotoSans-ThinItalic.woff filter=lfs diff=lfs merge=lfs -text
126
+ public/webfonts/NotoSans/NotoSans-ThinItalic.woff2 filter=lfs diff=lfs merge=lfs -text
127
+ public/webfonts/NotoSansMono/noto-sans-mono-v30-100.woff2 filter=lfs diff=lfs merge=lfs -text
128
+ public/webfonts/NotoSansMono/noto-sans-mono-v30-200.woff2 filter=lfs diff=lfs merge=lfs -text
129
+ public/webfonts/NotoSansMono/noto-sans-mono-v30-300.woff2 filter=lfs diff=lfs merge=lfs -text
130
+ public/webfonts/NotoSansMono/noto-sans-mono-v30-500.woff2 filter=lfs diff=lfs merge=lfs -text
131
+ public/webfonts/NotoSansMono/noto-sans-mono-v30-600.woff2 filter=lfs diff=lfs merge=lfs -text
132
+ public/webfonts/NotoSansMono/noto-sans-mono-v30-700.woff2 filter=lfs diff=lfs merge=lfs -text
133
+ public/webfonts/NotoSansMono/noto-sans-mono-v30-800.woff2 filter=lfs diff=lfs merge=lfs -text
134
+ public/webfonts/NotoSansMono/noto-sans-mono-v30-900.woff2 filter=lfs diff=lfs merge=lfs -text
135
+ public/webfonts/NotoSansMono/noto-sans-mono-v30-regular.woff2 filter=lfs diff=lfs merge=lfs -text
CONTRIBUTING.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # How to contribute to SillyTavern
2
+
3
+ ## Setting up the dev environment
4
+
5
+ 1. Required software: git and node.
6
+ 2. Recommended editor: Visual Studio Code.
7
+ 3. You can also use GitHub Codespaces which sets up everything for you.
8
+
9
+ ## Getting the code ready
10
+
11
+ 1. Register a GitHub account.
12
+ 2. Fork this repository under your account.
13
+ 3. Clone the fork onto your machine.
14
+ 4. Open the cloned repository in the code editor.
15
+ 5. Create a git branch (recommended).
16
+ 6. Make your changes and test them locally.
17
+ 7. Commit the changes and push the branch to the remote repo.
18
+ 8. Go to GitHub, and open a pull request, targeting the upstream branch.
19
+
20
+ ## Contribution guidelines
21
+
22
+ 1. Our standards are pretty low, but make sure the code is not too ugly:
23
+ - Run VS Code's autoformat when you're done.
24
+ - Check with ESLint by running `npm run lint`, then fix the errors.
25
+ - Use common sense and follow existing naming conventions.
26
+ 2. Create pull requests for the staging branch, 99% of contributions should go there. That way people could test your code before the next stable release.
27
+ 3. You can still send a pull request for release in the following scenarios:
28
+ - Updating README.
29
+ - Updating GitHub Actions.
30
+ - Hotfixing a critical bug.
31
+ 4. Project maintainers will test and can change your code before merging.
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)
Dockerfile ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:lts-alpine3.19
2
+
3
+ # Arguments
4
+ ARG APP_HOME=/home/node/app
5
+
6
+ # Install system dependencies
7
+ RUN apk add --no-cache gcompat tini git
8
+
9
+ # Create app directory
10
+ WORKDIR ${APP_HOME}
11
+
12
+ # Set NODE_ENV to production
13
+ ENV NODE_ENV=production
14
+
15
+ # Install app dependencies
16
+ COPY package*.json post-install.js ./
17
+ RUN \
18
+ echo "*** Install npm packages ***" && \
19
+ npm i --no-audit --no-fund --loglevel=error --no-progress --omit=dev && npm cache clean --force
20
+
21
+ # Bundle app source
22
+ COPY . ./
23
+
24
+ # Copy default chats, characters and user avatars to <folder>.default folder
25
+ RUN \
26
+ rm -f "config.yaml" || true && \
27
+ ln -s "./config/config.yaml" "config.yaml" || true && \
28
+ mkdir "config" || true
29
+
30
+ # Pre-compile public libraries
31
+ RUN \
32
+ echo "*** Run Webpack ***" && \
33
+ node "./docker/build-lib.js"
34
+
35
+ # Cleanup unnecessary files
36
+ RUN \
37
+ echo "*** Cleanup ***" && \
38
+ mv "./docker/docker-entrypoint.sh" "./" && \
39
+ rm -rf "./docker" && \
40
+ echo "*** Make docker-entrypoint.sh executable ***" && \
41
+ chmod +x "./docker-entrypoint.sh" && \
42
+ echo "*** Convert line endings to Unix format ***" && \
43
+ dos2unix "./docker-entrypoint.sh"
44
+
45
+ # Fix extension repos permissions
46
+ RUN git config --global --add safe.directory "*"
47
+
48
+ EXPOSE 8000
49
+
50
+ # Ensure proper handling of kernel signals
51
+ ENTRYPOINT ["tini", "--", "./docker-entrypoint.sh"]
LICENSE ADDED
@@ -0,0 +1,661 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works, specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our General Public Licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains free
18
+ software for all its users.
19
+
20
+ When we speak of free software, we are referring to freedom, not
21
+ price. Our General Public Licenses are designed to make sure that you
22
+ have the freedom to distribute copies of free software (and charge for
23
+ them if you wish), that you receive source code or can get it if you
24
+ want it, that you can change the software or use pieces of it in new
25
+ free programs, and that you know you can do these things.
26
+
27
+ Developers that use our General Public Licenses protect your rights
28
+ with two steps: (1) assert copyright on the software, and (2) offer
29
+ you this License which gives you legal permission to copy, distribute
30
+ and/or modify the software.
31
+
32
+ A secondary benefit of defending all users' freedom is that
33
+ improvements made in alternate versions of the program, if they
34
+ receive widespread use, become available for other developers to
35
+ incorporate. Many developers of free software are heartened and
36
+ encouraged by the resulting cooperation. However, in the case of
37
+ software used on network servers, this result may fail to come about.
38
+ The GNU General Public License permits making a modified version and
39
+ letting the public access it on a server without ever releasing its
40
+ source code to the public.
41
+
42
+ The GNU Affero General Public License is designed specifically to
43
+ ensure that, in such cases, the modified source code becomes available
44
+ to the community. It requires the operator of a network server to
45
+ provide the source code of the modified version running there to the
46
+ users of that server. Therefore, public use of a modified version, on
47
+ a publicly accessible server, gives the public access to the source
48
+ code of the modified version.
49
+
50
+ An older license, called the Affero General Public License and
51
+ published by Affero, was designed to accomplish similar goals. This is
52
+ a different license, not a version of the Affero GPL, but Affero has
53
+ released a new version of the Affero GPL which permits relicensing under
54
+ this license.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ TERMS AND CONDITIONS
60
+
61
+ 0. Definitions.
62
+
63
+ "This License" refers to version 3 of the GNU Affero General Public License.
64
+
65
+ "Copyright" also means copyright-like laws that apply to other kinds of
66
+ works, such as semiconductor masks.
67
+
68
+ "The Program" refers to any copyrightable work licensed under this
69
+ License. Each licensee is addressed as "you". "Licensees" and
70
+ "recipients" may be individuals or organizations.
71
+
72
+ To "modify" a work means to copy from or adapt all or part of the work
73
+ in a fashion requiring copyright permission, other than the making of an
74
+ exact copy. The resulting work is called a "modified version" of the
75
+ earlier work or a work "based on" the earlier work.
76
+
77
+ A "covered work" means either the unmodified Program or a work based
78
+ on the Program.
79
+
80
+ To "propagate" a work means to do anything with it that, without
81
+ permission, would make you directly or secondarily liable for
82
+ infringement under applicable copyright law, except executing it on a
83
+ computer or modifying a private copy. Propagation includes copying,
84
+ distribution (with or without modification), making available to the
85
+ public, and in some countries other activities as well.
86
+
87
+ To "convey" a work means any kind of propagation that enables other
88
+ parties to make or receive copies. Mere interaction with a user through
89
+ a computer network, with no transfer of a copy, is not conveying.
90
+
91
+ An interactive user interface displays "Appropriate Legal Notices"
92
+ to the extent that it includes a convenient and prominently visible
93
+ feature that (1) displays an appropriate copyright notice, and (2)
94
+ tells the user that there is no warranty for the work (except to the
95
+ extent that warranties are provided), that licensees may convey the
96
+ work under this License, and how to view a copy of this License. If
97
+ the interface presents a list of user commands or options, such as a
98
+ menu, a prominent item in the list meets this criterion.
99
+
100
+ 1. Source Code.
101
+
102
+ The "source code" for a work means the preferred form of the work
103
+ for making modifications to it. "Object code" means any non-source
104
+ form of a work.
105
+
106
+ A "Standard Interface" means an interface that either is an official
107
+ standard defined by a recognized standards body, or, in the case of
108
+ interfaces specified for a particular programming language, one that
109
+ is widely used among developers working in that language.
110
+
111
+ The "System Libraries" of an executable work include anything, other
112
+ than the work as a whole, that (a) is included in the normal form of
113
+ packaging a Major Component, but which is not part of that Major
114
+ Component, and (b) serves only to enable use of the work with that
115
+ Major Component, or to implement a Standard Interface for which an
116
+ implementation is available to the public in source code form. A
117
+ "Major Component", in this context, means a major essential component
118
+ (kernel, window system, and so on) of the specific operating system
119
+ (if any) on which the executable work runs, or a compiler used to
120
+ produce the work, or an object code interpreter used to run it.
121
+
122
+ The "Corresponding Source" for a work in object code form means all
123
+ the source code needed to generate, install, and (for an executable
124
+ work) run the object code and to modify the work, including scripts to
125
+ control those activities. However, it does not include the work's
126
+ System Libraries, or general-purpose tools or generally available free
127
+ programs which are used unmodified in performing those activities but
128
+ which are not part of the work. For example, Corresponding Source
129
+ includes interface definition files associated with source files for
130
+ the work, and the source code for shared libraries and dynamically
131
+ linked subprograms that the work is specifically designed to require,
132
+ such as by intimate data communication or control flow between those
133
+ subprograms and other parts of the work.
134
+
135
+ The Corresponding Source need not include anything that users
136
+ can regenerate automatically from other parts of the Corresponding
137
+ Source.
138
+
139
+ The Corresponding Source for a work in source code form is that
140
+ same work.
141
+
142
+ 2. Basic Permissions.
143
+
144
+ All rights granted under this License are granted for the term of
145
+ copyright on the Program, and are irrevocable provided the stated
146
+ conditions are met. This License explicitly affirms your unlimited
147
+ permission to run the unmodified Program. The output from running a
148
+ covered work is covered by this License only if the output, given its
149
+ content, constitutes a covered work. This License acknowledges your
150
+ rights of fair use or other equivalent, as provided by copyright law.
151
+
152
+ You may make, run and propagate covered works that you do not
153
+ convey, without conditions so long as your license otherwise remains
154
+ in force. You may convey covered works to others for the sole purpose
155
+ of having them make modifications exclusively for you, or provide you
156
+ with facilities for running those works, provided that you comply with
157
+ the terms of this License in conveying all material for which you do
158
+ not control copyright. Those thus making or running the covered works
159
+ for you must do so exclusively on your behalf, under your direction
160
+ and control, on terms that prohibit them from making any copies of
161
+ your copyrighted material outside their relationship with you.
162
+
163
+ Conveying under any other circumstances is permitted solely under
164
+ the conditions stated below. Sublicensing is not allowed; section 10
165
+ makes it unnecessary.
166
+
167
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
+
169
+ No covered work shall be deemed part of an effective technological
170
+ measure under any applicable law fulfilling obligations under article
171
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172
+ similar laws prohibiting or restricting circumvention of such
173
+ measures.
174
+
175
+ When you convey a covered work, you waive any legal power to forbid
176
+ circumvention of technological measures to the extent such circumvention
177
+ is effected by exercising rights under this License with respect to
178
+ the covered work, and you disclaim any intention to limit operation or
179
+ modification of the work as a means of enforcing, against the work's
180
+ users, your or third parties' legal rights to forbid circumvention of
181
+ technological measures.
182
+
183
+ 4. Conveying Verbatim Copies.
184
+
185
+ You may convey verbatim copies of the Program's source code as you
186
+ receive it, in any medium, provided that you conspicuously and
187
+ appropriately publish on each copy an appropriate copyright notice;
188
+ keep intact all notices stating that this License and any
189
+ non-permissive terms added in accord with section 7 apply to the code;
190
+ keep intact all notices of the absence of any warranty; and give all
191
+ recipients a copy of this License along with the Program.
192
+
193
+ You may charge any price or no price for each copy that you convey,
194
+ and you may offer support or warranty protection for a fee.
195
+
196
+ 5. Conveying Modified Source Versions.
197
+
198
+ You may convey a work based on the Program, or the modifications to
199
+ produce it from the Program, in the form of source code under the
200
+ terms of section 4, provided that you also meet all of these conditions:
201
+
202
+ a) The work must carry prominent notices stating that you modified
203
+ it, and giving a relevant date.
204
+
205
+ b) The work must carry prominent notices stating that it is
206
+ released under this License and any conditions added under section
207
+ 7. This requirement modifies the requirement in section 4 to
208
+ "keep intact all notices".
209
+
210
+ c) You must license the entire work, as a whole, under this
211
+ License to anyone who comes into possession of a copy. This
212
+ License will therefore apply, along with any applicable section 7
213
+ additional terms, to the whole of the work, and all its parts,
214
+ regardless of how they are packaged. This License gives no
215
+ permission to license the work in any other way, but it does not
216
+ invalidate such permission if you have separately received it.
217
+
218
+ d) If the work has interactive user interfaces, each must display
219
+ Appropriate Legal Notices; however, if the Program has interactive
220
+ interfaces that do not display Appropriate Legal Notices, your
221
+ work need not make them do so.
222
+
223
+ A compilation of a covered work with other separate and independent
224
+ works, which are not by their nature extensions of the covered work,
225
+ and which are not combined with it such as to form a larger program,
226
+ in or on a volume of a storage or distribution medium, is called an
227
+ "aggregate" if the compilation and its resulting copyright are not
228
+ used to limit the access or legal rights of the compilation's users
229
+ beyond what the individual works permit. Inclusion of a covered work
230
+ in an aggregate does not cause this License to apply to the other
231
+ parts of the aggregate.
232
+
233
+ 6. Conveying Non-Source Forms.
234
+
235
+ You may convey a covered work in object code form under the terms
236
+ of sections 4 and 5, provided that you also convey the
237
+ machine-readable Corresponding Source under the terms of this License,
238
+ in one of these ways:
239
+
240
+ a) Convey the object code in, or embodied in, a physical product
241
+ (including a physical distribution medium), accompanied by the
242
+ Corresponding Source fixed on a durable physical medium
243
+ customarily used for software interchange.
244
+
245
+ b) Convey the object code in, or embodied in, a physical product
246
+ (including a physical distribution medium), accompanied by a
247
+ written offer, valid for at least three years and valid for as
248
+ long as you offer spare parts or customer support for that product
249
+ model, to give anyone who possesses the object code either (1) a
250
+ copy of the Corresponding Source for all the software in the
251
+ product that is covered by this License, on a durable physical
252
+ medium customarily used for software interchange, for a price no
253
+ more than your reasonable cost of physically performing this
254
+ conveying of source, or (2) access to copy the
255
+ Corresponding Source from a network server at no charge.
256
+
257
+ c) Convey individual copies of the object code with a copy of the
258
+ written offer to provide the Corresponding Source. This
259
+ alternative is allowed only occasionally and noncommercially, and
260
+ only if you received the object code with such an offer, in accord
261
+ with subsection 6b.
262
+
263
+ d) Convey the object code by offering access from a designated
264
+ place (gratis or for a charge), and offer equivalent access to the
265
+ Corresponding Source in the same way through the same place at no
266
+ further charge. You need not require recipients to copy the
267
+ Corresponding Source along with the object code. If the place to
268
+ copy the object code is a network server, the Corresponding Source
269
+ may be on a different server (operated by you or a third party)
270
+ that supports equivalent copying facilities, provided you maintain
271
+ clear directions next to the object code saying where to find the
272
+ Corresponding Source. Regardless of what server hosts the
273
+ Corresponding Source, you remain obligated to ensure that it is
274
+ available for as long as needed to satisfy these requirements.
275
+
276
+ e) Convey the object code using peer-to-peer transmission, provided
277
+ you inform other peers where the object code and Corresponding
278
+ Source of the work are being offered to the general public at no
279
+ charge under subsection 6d.
280
+
281
+ A separable portion of the object code, whose source code is excluded
282
+ from the Corresponding Source as a System Library, need not be
283
+ included in conveying the object code work.
284
+
285
+ A "User Product" is either (1) a "consumer product", which means any
286
+ tangible personal property which is normally used for personal, family,
287
+ or household purposes, or (2) anything designed or sold for incorporation
288
+ into a dwelling. In determining whether a product is a consumer product,
289
+ doubtful cases shall be resolved in favor of coverage. For a particular
290
+ product received by a particular user, "normally used" refers to a
291
+ typical or common use of that class of product, regardless of the status
292
+ of the particular user or of the way in which the particular user
293
+ actually uses, or expects or is expected to use, the product. A product
294
+ is a consumer product regardless of whether the product has substantial
295
+ commercial, industrial or non-consumer uses, unless such uses represent
296
+ the only significant mode of use of the product.
297
+
298
+ "Installation Information" for a User Product means any methods,
299
+ procedures, authorization keys, or other information required to install
300
+ and execute modified versions of a covered work in that User Product from
301
+ a modified version of its Corresponding Source. The information must
302
+ suffice to ensure that the continued functioning of the modified object
303
+ code is in no case prevented or interfered with solely because
304
+ modification has been made.
305
+
306
+ If you convey an object code work under this section in, or with, or
307
+ specifically for use in, a User Product, and the conveying occurs as
308
+ part of a transaction in which the right of possession and use of the
309
+ User Product is transferred to the recipient in perpetuity or for a
310
+ fixed term (regardless of how the transaction is characterized), the
311
+ Corresponding Source conveyed under this section must be accompanied
312
+ by the Installation Information. But this requirement does not apply
313
+ if neither you nor any third party retains the ability to install
314
+ modified object code on the User Product (for example, the work has
315
+ been installed in ROM).
316
+
317
+ The requirement to provide Installation Information does not include a
318
+ requirement to continue to provide support service, warranty, or updates
319
+ for a work that has been modified or installed by the recipient, or for
320
+ the User Product in which it has been modified or installed. Access to a
321
+ network may be denied when the modification itself materially and
322
+ adversely affects the operation of the network or violates the rules and
323
+ protocols for communication across the network.
324
+
325
+ Corresponding Source conveyed, and Installation Information provided,
326
+ in accord with this section must be in a format that is publicly
327
+ documented (and with an implementation available to the public in
328
+ source code form), and must require no special password or key for
329
+ unpacking, reading or copying.
330
+
331
+ 7. Additional Terms.
332
+
333
+ "Additional permissions" are terms that supplement the terms of this
334
+ License by making exceptions from one or more of its conditions.
335
+ Additional permissions that are applicable to the entire Program shall
336
+ be treated as though they were included in this License, to the extent
337
+ that they are valid under applicable law. If additional permissions
338
+ apply only to part of the Program, that part may be used separately
339
+ under those permissions, but the entire Program remains governed by
340
+ this License without regard to the additional permissions.
341
+
342
+ When you convey a copy of a covered work, you may at your option
343
+ remove any additional permissions from that copy, or from any part of
344
+ it. (Additional permissions may be written to require their own
345
+ removal in certain cases when you modify the work.) You may place
346
+ additional permissions on material, added by you to a covered work,
347
+ for which you have or can give appropriate copyright permission.
348
+
349
+ Notwithstanding any other provision of this License, for material you
350
+ add to a covered work, you may (if authorized by the copyright holders of
351
+ that material) supplement the terms of this License with terms:
352
+
353
+ a) Disclaiming warranty or limiting liability differently from the
354
+ terms of sections 15 and 16 of this License; or
355
+
356
+ b) Requiring preservation of specified reasonable legal notices or
357
+ author attributions in that material or in the Appropriate Legal
358
+ Notices displayed by works containing it; or
359
+
360
+ c) Prohibiting misrepresentation of the origin of that material, or
361
+ requiring that modified versions of such material be marked in
362
+ reasonable ways as different from the original version; or
363
+
364
+ d) Limiting the use for publicity purposes of names of licensors or
365
+ authors of the material; or
366
+
367
+ e) Declining to grant rights under trademark law for use of some
368
+ trade names, trademarks, or service marks; or
369
+
370
+ f) Requiring indemnification of licensors and authors of that
371
+ material by anyone who conveys the material (or modified versions of
372
+ it) with contractual assumptions of liability to the recipient, for
373
+ any liability that these contractual assumptions directly impose on
374
+ those licensors and authors.
375
+
376
+ All other non-permissive additional terms are considered "further
377
+ restrictions" within the meaning of section 10. If the Program as you
378
+ received it, or any part of it, contains a notice stating that it is
379
+ governed by this License along with a term that is a further
380
+ restriction, you may remove that term. If a license document contains
381
+ a further restriction but permits relicensing or conveying under this
382
+ License, you may add to a covered work material governed by the terms
383
+ of that license document, provided that the further restriction does
384
+ not survive such relicensing or conveying.
385
+
386
+ If you add terms to a covered work in accord with this section, you
387
+ must place, in the relevant source files, a statement of the
388
+ additional terms that apply to those files, or a notice indicating
389
+ where to find the applicable terms.
390
+
391
+ Additional terms, permissive or non-permissive, may be stated in the
392
+ form of a separately written license, or stated as exceptions;
393
+ the above requirements apply either way.
394
+
395
+ 8. Termination.
396
+
397
+ You may not propagate or modify a covered work except as expressly
398
+ provided under this License. Any attempt otherwise to propagate or
399
+ modify it is void, and will automatically terminate your rights under
400
+ this License (including any patent licenses granted under the third
401
+ paragraph of section 11).
402
+
403
+ However, if you cease all violation of this License, then your
404
+ license from a particular copyright holder is reinstated (a)
405
+ provisionally, unless and until the copyright holder explicitly and
406
+ finally terminates your license, and (b) permanently, if the copyright
407
+ holder fails to notify you of the violation by some reasonable means
408
+ prior to 60 days after the cessation.
409
+
410
+ Moreover, your license from a particular copyright holder is
411
+ reinstated permanently if the copyright holder notifies you of the
412
+ violation by some reasonable means, this is the first time you have
413
+ received notice of violation of this License (for any work) from that
414
+ copyright holder, and you cure the violation prior to 30 days after
415
+ your receipt of the notice.
416
+
417
+ Termination of your rights under this section does not terminate the
418
+ licenses of parties who have received copies or rights from you under
419
+ this License. If your rights have been terminated and not permanently
420
+ reinstated, you do not qualify to receive new licenses for the same
421
+ material under section 10.
422
+
423
+ 9. Acceptance Not Required for Having Copies.
424
+
425
+ You are not required to accept this License in order to receive or
426
+ run a copy of the Program. Ancillary propagation of a covered work
427
+ occurring solely as a consequence of using peer-to-peer transmission
428
+ to receive a copy likewise does not require acceptance. However,
429
+ nothing other than this License grants you permission to propagate or
430
+ modify any covered work. These actions infringe copyright if you do
431
+ not accept this License. Therefore, by modifying or propagating a
432
+ covered work, you indicate your acceptance of this License to do so.
433
+
434
+ 10. Automatic Licensing of Downstream Recipients.
435
+
436
+ Each time you convey a covered work, the recipient automatically
437
+ receives a license from the original licensors, to run, modify and
438
+ propagate that work, subject to this License. You are not responsible
439
+ for enforcing compliance by third parties with this License.
440
+
441
+ An "entity transaction" is a transaction transferring control of an
442
+ organization, or substantially all assets of one, or subdividing an
443
+ organization, or merging organizations. If propagation of a covered
444
+ work results from an entity transaction, each party to that
445
+ transaction who receives a copy of the work also receives whatever
446
+ licenses to the work the party's predecessor in interest had or could
447
+ give under the previous paragraph, plus a right to possession of the
448
+ Corresponding Source of the work from the predecessor in interest, if
449
+ the predecessor has it or can get it with reasonable efforts.
450
+
451
+ You may not impose any further restrictions on the exercise of the
452
+ rights granted or affirmed under this License. For example, you may
453
+ not impose a license fee, royalty, or other charge for exercise of
454
+ rights granted under this License, and you may not initiate litigation
455
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
456
+ any patent claim is infringed by making, using, selling, offering for
457
+ sale, or importing the Program or any portion of it.
458
+
459
+ 11. Patents.
460
+
461
+ A "contributor" is a copyright holder who authorizes use under this
462
+ License of the Program or a work on which the Program is based. The
463
+ work thus licensed is called the contributor's "contributor version".
464
+
465
+ A contributor's "essential patent claims" are all patent claims
466
+ owned or controlled by the contributor, whether already acquired or
467
+ hereafter acquired, that would be infringed by some manner, permitted
468
+ by this License, of making, using, or selling its contributor version,
469
+ but do not include claims that would be infringed only as a
470
+ consequence of further modification of the contributor version. For
471
+ purposes of this definition, "control" includes the right to grant
472
+ patent sublicenses in a manner consistent with the requirements of
473
+ this License.
474
+
475
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
476
+ patent license under the contributor's essential patent claims, to
477
+ make, use, sell, offer for sale, import and otherwise run, modify and
478
+ propagate the contents of its contributor version.
479
+
480
+ In the following three paragraphs, a "patent license" is any express
481
+ agreement or commitment, however denominated, not to enforce a patent
482
+ (such as an express permission to practice a patent or covenant not to
483
+ sue for patent infringement). To "grant" such a patent license to a
484
+ party means to make such an agreement or commitment not to enforce a
485
+ patent against the party.
486
+
487
+ If you convey a covered work, knowingly relying on a patent license,
488
+ and the Corresponding Source of the work is not available for anyone
489
+ to copy, free of charge and under the terms of this License, through a
490
+ publicly available network server or other readily accessible means,
491
+ then you must either (1) cause the Corresponding Source to be so
492
+ available, or (2) arrange to deprive yourself of the benefit of the
493
+ patent license for this particular work, or (3) arrange, in a manner
494
+ consistent with the requirements of this License, to extend the patent
495
+ license to downstream recipients. "Knowingly relying" means you have
496
+ actual knowledge that, but for the patent license, your conveying the
497
+ covered work in a country, or your recipient's use of the covered work
498
+ in a country, would infringe one or more identifiable patents in that
499
+ country that you have reason to believe are valid.
500
+
501
+ If, pursuant to or in connection with a single transaction or
502
+ arrangement, you convey, or propagate by procuring conveyance of, a
503
+ covered work, and grant a patent license to some of the parties
504
+ receiving the covered work authorizing them to use, propagate, modify
505
+ or convey a specific copy of the covered work, then the patent license
506
+ you grant is automatically extended to all recipients of the covered
507
+ work and works based on it.
508
+
509
+ A patent license is "discriminatory" if it does not include within
510
+ the scope of its coverage, prohibits the exercise of, or is
511
+ conditioned on the non-exercise of one or more of the rights that are
512
+ specifically granted under this License. You may not convey a covered
513
+ work if you are a party to an arrangement with a third party that is
514
+ in the business of distributing software, under which you make payment
515
+ to the third party based on the extent of your activity of conveying
516
+ the work, and under which the third party grants, to any of the
517
+ parties who would receive the covered work from you, a discriminatory
518
+ patent license (a) in connection with copies of the covered work
519
+ conveyed by you (or copies made from those copies), or (b) primarily
520
+ for and in connection with specific products or compilations that
521
+ contain the covered work, unless you entered into that arrangement,
522
+ or that patent license was granted, prior to 28 March 2007.
523
+
524
+ Nothing in this License shall be construed as excluding or limiting
525
+ any implied license or other defenses to infringement that may
526
+ otherwise be available to you under applicable patent law.
527
+
528
+ 12. No Surrender of Others' Freedom.
529
+
530
+ If conditions are imposed on you (whether by court order, agreement or
531
+ otherwise) that contradict the conditions of this License, they do not
532
+ excuse you from the conditions of this License. If you cannot convey a
533
+ covered work so as to satisfy simultaneously your obligations under this
534
+ License and any other pertinent obligations, then as a consequence you may
535
+ not convey it at all. For example, if you agree to terms that obligate you
536
+ to collect a royalty for further conveying from those to whom you convey
537
+ the Program, the only way you could satisfy both those terms and this
538
+ License would be to refrain entirely from conveying the Program.
539
+
540
+ 13. Remote Network Interaction; Use with the GNU General Public License.
541
+
542
+ Notwithstanding any other provision of this License, if you modify the
543
+ Program, your modified version must prominently offer all users
544
+ interacting with it remotely through a computer network (if your version
545
+ supports such interaction) an opportunity to receive the Corresponding
546
+ Source of your version by providing access to the Corresponding Source
547
+ from a network server at no charge, through some standard or customary
548
+ means of facilitating copying of software. This Corresponding Source
549
+ shall include the Corresponding Source for any work covered by version 3
550
+ of the GNU General Public License that is incorporated pursuant to the
551
+ following paragraph.
552
+
553
+ Notwithstanding any other provision of this License, you have
554
+ permission to link or combine any covered work with a work licensed
555
+ under version 3 of the GNU General Public License into a single
556
+ combined work, and to convey the resulting work. The terms of this
557
+ License will continue to apply to the part which is the covered work,
558
+ but the work with which it is combined will remain governed by version
559
+ 3 of the GNU General Public License.
560
+
561
+ 14. Revised Versions of this License.
562
+
563
+ The Free Software Foundation may publish revised and/or new versions of
564
+ the GNU Affero General Public License from time to time. Such new versions
565
+ will be similar in spirit to the present version, but may differ in detail to
566
+ address new problems or concerns.
567
+
568
+ Each version is given a distinguishing version number. If the
569
+ Program specifies that a certain numbered version of the GNU Affero General
570
+ Public License "or any later version" applies to it, you have the
571
+ option of following the terms and conditions either of that numbered
572
+ version or of any later version published by the Free Software
573
+ Foundation. If the Program does not specify a version number of the
574
+ GNU Affero General Public License, you may choose any version ever published
575
+ by the Free Software Foundation.
576
+
577
+ If the Program specifies that a proxy can decide which future
578
+ versions of the GNU Affero General Public License can be used, that proxy's
579
+ public statement of acceptance of a version permanently authorizes you
580
+ to choose that version for the Program.
581
+
582
+ Later license versions may give you additional or different
583
+ permissions. However, no additional obligations are imposed on any
584
+ author or copyright holder as a result of your choosing to follow a
585
+ later version.
586
+
587
+ 15. Disclaimer of Warranty.
588
+
589
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
+
598
+ 16. Limitation of Liability.
599
+
600
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608
+ SUCH DAMAGES.
609
+
610
+ 17. Interpretation of Sections 15 and 16.
611
+
612
+ If the disclaimer of warranty and limitation of liability provided
613
+ above cannot be given local legal effect according to their terms,
614
+ reviewing courts shall apply local law that most closely approximates
615
+ an absolute waiver of all civil liability in connection with the
616
+ Program, unless a warranty or assumption of liability accompanies a
617
+ copy of the Program in return for a fee.
618
+
619
+ END OF TERMS AND CONDITIONS
620
+
621
+ How to Apply These Terms to Your New Programs
622
+
623
+ If you develop a new program, and you want it to be of the greatest
624
+ possible use to the public, the best way to achieve this is to make it
625
+ free software which everyone can redistribute and change under these terms.
626
+
627
+ To do so, attach the following notices to the program. It is safest
628
+ to attach them to the start of each source file to most effectively
629
+ state the exclusion of warranty; and each file should have at least
630
+ the "copyright" line and a pointer to where the full notice is found.
631
+
632
+ <one line to give the program's name and a brief idea of what it does.>
633
+ Copyright (C) <year> <name of author>
634
+
635
+ This program is free software: you can redistribute it and/or modify
636
+ it under the terms of the GNU Affero General Public License as published
637
+ by the Free Software Foundation, either version 3 of the License, or
638
+ (at your option) any later version.
639
+
640
+ This program is distributed in the hope that it will be useful,
641
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
642
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643
+ GNU Affero General Public License for more details.
644
+
645
+ You should have received a copy of the GNU Affero General Public License
646
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
647
+
648
+ Also add information on how to contact you by electronic and paper mail.
649
+
650
+ If your software can interact with users remotely through a computer
651
+ network, you should also make sure that it provides a way for users to
652
+ get its source. For example, if your program is a web application, its
653
+ interface could display a "Source" link that leads users to an archive
654
+ of the code. There are many ways you could offer source, and different
655
+ solutions will be better for different programs; see section 13 for the
656
+ specific requirements.
657
+
658
+ You should also get your employer (if you work as a programmer) or school,
659
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
660
+ For more information on this, and how to apply and follow the GNU AGPL, see
661
+ <https://www.gnu.org/licenses/>.
Remote-Link.cmd ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ echo ========================================================================================================================
3
+ echo WARNING: Cloudflare Tunnel!
4
+ echo ========================================================================================================================
5
+ echo This script downloads and runs the latest cloudflared.exe from Cloudflare to set up an HTTPS tunnel to your SillyTavern!
6
+ echo Using the randomly generated temporary tunnel URL, anyone can access your SillyTavern over the Internet while the tunnel
7
+ echo is active. Keep the URL safe and secure your SillyTavern installation by setting a username and password in config.yaml!
8
+ echo.
9
+ echo See https://docs.sillytavern.app/usage/remoteconnections/ for more details about how to secure your SillyTavern install.
10
+ echo.
11
+ echo By continuing you confirm that you're aware of the potential dangers of having a tunnel open and take all responsibility
12
+ echo to properly use and secure it!
13
+ echo.
14
+ echo To abort, press Ctrl+C or close this window now!
15
+ echo.
16
+ pause
17
+ if not exist cloudflared.exe curl -Lo cloudflared.exe https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe
18
+ cloudflared.exe tunnel --url localhost:8000
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.
Start.bat ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ pushd %~dp0
3
+ set NODE_ENV=production
4
+ call npm install --no-audit --no-fund --loglevel=error --no-progress --omit=dev
5
+ node server.js %*
6
+ pause
7
+ popd
Update-Instructions.txt ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ How to Update SillyTavern
2
+
3
+ The most recent version can be found here: https://docs.sillytavern.app/usage/update/
4
+
5
+ This is not an installation guide. If you need installation instructions, look here:
6
+ https://docs.sillytavern.app/installation/windows/
7
+
8
+ This guide assumes you have already installed SillyTavern once, and know how to run it on your OS.
9
+
10
+ Linux/Termux:
11
+
12
+ You definitely installed via git, so just 'git pull' inside the SillyTavern directory.
13
+
14
+ Windows/MacOS:
15
+
16
+ Method 1 - GIT
17
+
18
+ We always recommend users install using 'git'. Here's why:
19
+
20
+ When you have installed via `git clone`, all you have to do to update is type `git pull` in a command line in the ST folder.
21
+ You can also try running the 'UpdateAndStart.bat' file, which will almost do the same thing. (Windows only)
22
+ Alternatively, if the command prompt gives you problems (and you have GitHub Desktop installed), you can use the 'Repository' menu and select 'Pull'.
23
+ The updates are applied automatically and safely.
24
+
25
+ If you are a developer and use a fork of ST or switch branches regularly, you can use the 'UpdateForkAndStart.bat', which works similarly to 'UpdateAndStart.bat',
26
+ but automatically pulls changes into your fork and handles switched branches gracefully by asking if you want to switch back.
27
+
28
+ Method 2 - ZIP
29
+
30
+ If you insist on installing via a zip, here is the tedious process for doing the update:
31
+
32
+ 1. Download the new release zip.
33
+ 2. Unzip it into a folder OUTSIDE of your current ST installation.
34
+ 3. Do the usual setup procedure for your OS to install the NodeJS requirements.
35
+
36
+ 4a. Updating 1.12.0 and above
37
+
38
+ Copy the user data directory from your data root into the data root of the new install.
39
+
40
+ By default: /data/default-user
41
+
42
+ 4a. Migrating from <1.12.0 to >=1.20.0
43
+ Copy the following files/folders as necessary(*) from your old ST installation:
44
+
45
+ - Assets
46
+ - Backgrounds
47
+ - Characters
48
+ - Chats
49
+ - Context
50
+ - Groups
51
+ - Group chats
52
+ - Instruct
53
+ - movingUI
54
+ - KoboldAI Settings
55
+ - NovelAI Settings
56
+ - OpenAI Settings (Chat Completion API)
57
+ - TextGen Settings (Text Completion API)
58
+ - QuickReplies
59
+ - Themes
60
+ - User Avatars
61
+ - Worlds
62
+ - User
63
+ - settings.json
64
+ - secrets.json <---- This one is in the base folder, not /public/
65
+
66
+ (*) 'As necessary' = "If you made any custom content related to those folders".
67
+ None of the folders are mandatory, so only copy what you need.
68
+
69
+ **NB: DO NOT COPY THE ENTIRE /PUBLIC/ FOLDER.**
70
+ Doing so could break the new install and prevent new features from being present.
71
+ Paste those items into the /data/default-user folder of the new install.
72
+
73
+ 5. Start SillyTavern once again with the method appropriate to your OS, and pray you got it right.
74
+
75
+ 6. If everything shows up, you can safely delete the old ST folder.
UpdateAndStart.bat ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ pushd %~dp0
3
+ git --version > nul 2>&1
4
+ if %errorlevel% neq 0 (
5
+ echo Git is not installed on this system.
6
+ echo Install it from https://git-scm.com/downloads
7
+ goto end
8
+ ) else (
9
+ if not exist .git (
10
+ echo Not running from a Git repository. Reinstall using an officially supported method to get updates.
11
+ echo See: https://docs.sillytavern.app/installation/windows/
12
+ goto end
13
+ )
14
+ call git pull --rebase --autostash
15
+ if %errorlevel% neq 0 (
16
+ REM incase there is still something wrong
17
+ echo There were errors while updating.
18
+ echo See the update FAQ at https://docs.sillytavern.app/usage/update/#common-update-problems
19
+ goto end
20
+ )
21
+ )
22
+ set NODE_ENV=production
23
+ call npm install --no-audit --no-fund --loglevel=error --no-progress --omit=dev
24
+ node server.js %*
25
+ :end
26
+ pause
27
+ popd
UpdateForkAndStart.bat ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ @setlocal enabledelayedexpansion
3
+ pushd %~dp0
4
+
5
+ echo Checking Git installation
6
+ git --version > nul 2>&1
7
+ if %errorlevel% neq 0 (
8
+ echo Git is not installed on this system.
9
+ echo Install it from https://git-scm.com/downloads
10
+ goto end
11
+ )
12
+
13
+ if not exist .git (
14
+ echo Not running from a Git repository. Reinstall using an officially supported method to get updates.
15
+ echo See: https://docs.sillytavern.app/installation/windows/
16
+ goto end
17
+ )
18
+
19
+ REM Checking current branch
20
+ FOR /F "tokens=*" %%i IN ('git rev-parse --abbrev-ref HEAD') DO SET CURRENT_BRANCH=%%i
21
+ echo Current branch: %CURRENT_BRANCH%
22
+
23
+ REM Checking for automatic branch switching configuration
24
+ set AUTO_SWITCH=
25
+ FOR /F "tokens=*" %%j IN ('git config --local script.autoSwitch') DO SET AUTO_SWITCH=%%j
26
+
27
+ SET TARGET_BRANCH=%CURRENT_BRANCH%
28
+
29
+ if NOT "!AUTO_SWITCH!"=="" (
30
+ if "!AUTO_SWITCH!"=="s" (
31
+ goto autoswitch-staging
32
+ )
33
+ if "!AUTO_SWITCH!"=="r" (
34
+ goto autoswitch-release
35
+ )
36
+
37
+ if "!AUTO_SWITCH!"=="staging" (
38
+ :autoswitch-staging
39
+ echo Auto-switching to staging branch
40
+ git checkout staging
41
+ SET TARGET_BRANCH=staging
42
+ goto update
43
+ )
44
+ if "!AUTO_SWITCH!"=="release" (
45
+ :autoswitch-release
46
+ echo Auto-switching to release branch
47
+ git checkout release
48
+ SET TARGET_BRANCH=release
49
+ goto update
50
+ )
51
+
52
+ echo Auto-switching defined to stay on current branch
53
+ goto update
54
+ )
55
+
56
+ if "!CURRENT_BRANCH!"=="staging" (
57
+ echo Staying on the current branch
58
+ goto update
59
+ )
60
+ if "!CURRENT_BRANCH!"=="release" (
61
+ echo Staying on the current branch
62
+ goto update
63
+ )
64
+
65
+ echo You are not on 'staging' or 'release'. You are on '!CURRENT_BRANCH!'.
66
+ set /p "CHOICE=Do you want to switch to 'staging' (s), 'release' (r), or stay (any other key)? "
67
+ if /i "!CHOICE!"=="s" (
68
+ echo Switching to staging branch
69
+ git checkout staging
70
+ SET TARGET_BRANCH=staging
71
+ goto update
72
+ )
73
+ if /i "!CHOICE!"=="r" (
74
+ echo Switching to release branch
75
+ git checkout release
76
+ SET TARGET_BRANCH=release
77
+ goto update
78
+ )
79
+
80
+ echo Staying on the current branch
81
+
82
+ :update
83
+ REM Checking for 'upstream' remote
84
+ git remote | findstr "upstream" > nul
85
+ if %errorlevel% equ 0 (
86
+ echo Updating and rebasing against 'upstream'
87
+ git fetch upstream
88
+ git rebase upstream/%TARGET_BRANCH% --autostash
89
+ goto install
90
+ )
91
+
92
+ echo Updating and rebasing against 'origin'
93
+ git pull --rebase --autostash origin %TARGET_BRANCH%
94
+
95
+
96
+ :install
97
+ if %errorlevel% neq 0 (
98
+ echo There were errors while updating.
99
+ echo See the update FAQ at https://docs.sillytavern.app/usage/update/#common-update-problems
100
+ goto end
101
+ )
102
+
103
+ echo Installing npm packages and starting server
104
+ set NODE_ENV=production
105
+ call npm install --no-audit --no-fund --loglevel=error --no-progress --omit=dev
106
+ node server.js %*
107
+
108
+ :end
109
+ pause
110
+ popd
backups/!README.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Looking for setting snapshots or chat backups?
2
+
3
+ Individual user backups are now located in the data directory.
4
+
5
+ Example for the default user under default data root:
6
+
7
+ /data/default-user/backups
8
+
9
+ This folder remains for historical purposes only.
colab/GPU.ipynb ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "attachments": {},
5
+ "cell_type": "markdown",
6
+ "metadata": {},
7
+ "source": [
8
+ "**Links**<br>\n",
9
+ "Extensions API GitHub: https://github.com/SillyTavern/SillyTavern-extras/<br>\n",
10
+ "SillyTavern community Discord (support and discussion): https://discord.gg/sillytavern"
11
+ ]
12
+ },
13
+ {
14
+ "cell_type": "code",
15
+ "execution_count": null,
16
+ "metadata": {},
17
+ "outputs": [],
18
+ "source": [
19
+ "#@title <-- Tap this if you run on Mobile { display-mode: \"form\" }\n",
20
+ "#Taken from KoboldAI colab\n",
21
+ "%%html\n",
22
+ "<b>Press play on the audio player to keep the tab alive. (Uses only 13MB of data)</b><br/>\n",
23
+ "<audio src=\"https://henk.tech/colabkobold/silence.m4a\" controls>"
24
+ ]
25
+ },
26
+ {
27
+ "cell_type": "code",
28
+ "execution_count": null,
29
+ "metadata": {
30
+ "cellView": "form",
31
+ "id": "lVftocpwCoYw"
32
+ },
33
+ "outputs": [],
34
+ "source": [
35
+ "#@markdown (RECOMMENDED) Generates an API key for you to use with the API\n",
36
+ "secure = False #@param {type:\"boolean\"}\n",
37
+ "#@markdown Allows to run SillyTavern Extras on CPU (use if you're out of daily GPU allowance)\n",
38
+ "use_cpu = False #@param {type:\"boolean\"}\n",
39
+ "#@markdown Allows to run Stable Diffusion pipeline on CPU (slow!)\n",
40
+ "use_sd_cpu = False #@param {type:\"boolean\"}\n",
41
+ "#@markdown ***\n",
42
+ "#@markdown Enables the WebSearch module\n",
43
+ "extras_enable_websearch = True #@param {type:\"boolean\"}\n",
44
+ "#@markdown ***\n",
45
+ "#@markdown Loads the image captioning module\n",
46
+ "extras_enable_caption = True #@param {type:\"boolean\"}\n",
47
+ "captioning_model = \"Salesforce/blip-image-captioning-large\" #@param [ \"Salesforce/blip-image-captioning-large\", \"Salesforce/blip-image-captioning-base\" ]\n",
48
+ "#@markdown * Salesforce/blip-image-captioning-large - good base model\n",
49
+ "#@markdown * Salesforce/blip-image-captioning-base - slightly faster but less accurate\n",
50
+ "#@markdown ***\n",
51
+ "#@markdown Loads the sentiment classification model\n",
52
+ "extras_enable_classify = True #@param {type:\"boolean\"}\n",
53
+ "classification_model = \"nateraw/bert-base-uncased-emotion\" #@param [\"nateraw/bert-base-uncased-emotion\", \"joeddav/distilbert-base-uncased-go-emotions-student\"]\n",
54
+ "#@markdown * nateraw/bert-base-uncased-emotion = 6 supported emotions<br>\n",
55
+ "#@markdown * joeddav/distilbert-base-uncased-go-emotions-student = 28 supported emotions\n",
56
+ "#@markdown ***\n",
57
+ "#@markdown Loads the story summarization module\n",
58
+ "extras_enable_summarize = True #@param {type:\"boolean\"}\n",
59
+ "summarization_model = \"slauw87/bart_summarisation\" #@param [ \"slauw87/bart_summarisation\", \"Qiliang/bart-large-cnn-samsum-ChatGPT_v3\", \"Qiliang/bart-large-cnn-samsum-ElectrifAi_v10\", \"distilbart-xsum-12-3\" ]\n",
60
+ "#@markdown * slauw87/bart_summarisation - general purpose summarization model\n",
61
+ "#@markdown * Qiliang/bart-large-cnn-samsum-ChatGPT_v3 - summarization model optimized for chats\n",
62
+ "#@markdown * Qiliang/bart-large-cnn-samsum-ElectrifAi_v10 - nice results so far, but still being evaluated\n",
63
+ "#@markdown * distilbart-xsum-12-3 - faster, but pretty basic alternative\n",
64
+ "#@markdown ***\n",
65
+ "#@markdown Enables Silero text-to-speech module\n",
66
+ "extras_enable_silero_tts = True #@param {type:\"boolean\"}\n",
67
+ "#@markdown Enables Microsoft Edge text-to-speech module\n",
68
+ "extras_enable_edge_tts = True #@param {type:\"boolean\"}\n",
69
+ "#@markdown Enables RVC module\n",
70
+ "extras_enable_rvc = False #@param {type:\"boolean\"}\n",
71
+ "#@markdown ***\n",
72
+ "#@markdown Enables Whisper speech recognition module\n",
73
+ "extras_enable_whisper_stt = True #@param {type:\"boolean\"}\n",
74
+ "whisper_model = \"base.en\" #@param [ \"tiny.en\", \"base.en\", \"small.en\", \"medium.en\", \"tiny\", \"base\", \"small\", \"medium\", \"large\" ]\n",
75
+ "#@markdown There are five model sizes, four with English-only versions, offering speed and accuracy tradeoffs.\n",
76
+ "#@markdown The .en models for English-only applications tend to perform better, especially for the tiny.en and base.en models.\n",
77
+ "#@markdown ***\n",
78
+ "#@markdown Enables SD picture generation\n",
79
+ "extras_enable_sd = True #@param {type:\"boolean\"}\n",
80
+ "sd_model = \"ckpt/anything-v4.5-vae-swapped\" #@param [ \"ckpt/anything-v4.5-vae-swapped\", \"hakurei/waifu-diffusion\", \"philz1337/clarity\", \"prompthero/openjourney\", \"ckpt/sd15\", \"stabilityai/stable-diffusion-2-1-base\" ]\n",
81
+ "#@markdown * ckpt/anything-v4.5-vae-swapped - anime style model\n",
82
+ "#@markdown * hakurei/waifu-diffusion - anime style model\n",
83
+ "#@markdown * philz1337/clarity - realistic style model\n",
84
+ "#@markdown * prompthero/openjourney - midjourney style model\n",
85
+ "#@markdown * ckpt/sd15 - base SD 1.5\n",
86
+ "#@markdown * stabilityai/stable-diffusion-2-1-base - base SD 2.1\n",
87
+ "#@markdown ***\n",
88
+ "#@markdown Enables ChromaDB module\n",
89
+ "extras_enable_chromadb = True #@param {type:\"boolean\"}\n",
90
+ "\n",
91
+ "import subprocess\n",
92
+ "import secrets\n",
93
+ "\n",
94
+ "# ---\n",
95
+ "# SillyTavern extras\n",
96
+ "extras_url = '(disabled)'\n",
97
+ "params = []\n",
98
+ "if use_cpu:\n",
99
+ " params.append('--cpu')\n",
100
+ "if use_sd_cpu:\n",
101
+ " params.append('--sd-cpu')\n",
102
+ "if secure:\n",
103
+ " params.append('--secure')\n",
104
+ "params.append('--share')\n",
105
+ "modules = []\n",
106
+ "\n",
107
+ "if extras_enable_caption:\n",
108
+ " modules.append('caption')\n",
109
+ "if extras_enable_summarize:\n",
110
+ " modules.append('summarize')\n",
111
+ "if extras_enable_classify:\n",
112
+ " modules.append('classify')\n",
113
+ "if extras_enable_sd:\n",
114
+ " modules.append('sd')\n",
115
+ "if extras_enable_silero_tts:\n",
116
+ " modules.append('silero-tts')\n",
117
+ "if extras_enable_edge_tts:\n",
118
+ " modules.append('edge-tts')\n",
119
+ "if extras_enable_chromadb:\n",
120
+ " modules.append('chromadb')\n",
121
+ "if extras_enable_whisper_stt:\n",
122
+ " modules.append('whisper-stt')\n",
123
+ " params.append(f'--stt-whisper-model-path={whisper_model}')\n",
124
+ "if extras_enable_rvc:\n",
125
+ " modules.append('rvc')\n",
126
+ " params.append('--max-content-length=2000')\n",
127
+ " params.append('--rvc-save-file')\n",
128
+ "\n",
129
+ "\n",
130
+ "if extras_enable_websearch:\n",
131
+ " print(\"Enabling WebSearch module\")\n",
132
+ " modules.append('websearch')\n",
133
+ " !apt update\n",
134
+ " !apt install -y chromium-chromedriver\n",
135
+ "\n",
136
+ "params.append(f'--classification-model={classification_model}')\n",
137
+ "params.append(f'--summarization-model={summarization_model}')\n",
138
+ "params.append(f'--captioning-model={captioning_model}')\n",
139
+ "params.append(f'--sd-model={sd_model}')\n",
140
+ "params.append(f'--enable-modules={\",\".join(modules)}')\n",
141
+ "\n",
142
+ "\n",
143
+ "%cd /\n",
144
+ "!git clone https://github.com/SillyTavern/SillyTavern-extras\n",
145
+ "%cd /SillyTavern-extras\n",
146
+ "!git clone https://github.com/Cohee1207/tts_samples\n",
147
+ "!npm install -g localtunnel\n",
148
+ "%pip install -r requirements.txt\n",
149
+ "!wget https://github.com/cloudflare/cloudflared/releases/download/2023.5.0/cloudflared-linux-amd64 -O /tmp/cloudflared-linux-amd64\n",
150
+ "!chmod +x /tmp/cloudflared-linux-amd64\n",
151
+ "\n",
152
+ "if extras_enable_rvc:\n",
153
+ " print(\"Installing RVC requirements\")\n",
154
+ " %pip install -r requirements-rvc.txt\n",
155
+ "\n",
156
+ "# Generate a random API key\n",
157
+ "api_key = secrets.token_hex(5)\n",
158
+ "\n",
159
+ "# Write the API key to api_key.txt\n",
160
+ "with open('./api_key.txt', 'w') as f:\n",
161
+ " f.write(api_key)\n",
162
+ "print(f\"API Key generated: {api_key}\")\n",
163
+ "\n",
164
+ "cmd = f\"python server.py {' '.join(params)}\"\n",
165
+ "print(cmd)\n",
166
+ "extras_process = subprocess.Popen(\n",
167
+ " cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd='/SillyTavern-extras', shell=True)\n",
168
+ "print('processId:', extras_process.pid)\n",
169
+ "while True:\n",
170
+ " line = extras_process.stdout.readline().decode().strip()\n",
171
+ " if line != None and line != '':\n",
172
+ " print(line)\n"
173
+ ]
174
+ }
175
+ ],
176
+ "metadata": {
177
+ "accelerator": "GPU",
178
+ "colab": {
179
+ "private_outputs": true,
180
+ "provenance": []
181
+ },
182
+ "gpuClass": "standard",
183
+ "kernelspec": {
184
+ "display_name": "Python 3",
185
+ "name": "python3"
186
+ },
187
+ "language_info": {
188
+ "name": "python"
189
+ }
190
+ },
191
+ "nbformat": 4,
192
+ "nbformat_minor": 0
193
+ }
data/.gitkeep ADDED
File without changes
default/!DO-NOT-EDIT-THESE-FILES.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ These are master copies of the default content files and are managed by SillyTavern.
2
+
3
+ Editing any of these files would not only have no effect, but will also cause merge conflicts during update pulls.
4
+
5
+ You should edit their respective copies instead, for example:
6
+
7
+ 1. /default/config.yaml => /config.yaml
8
+ 2. /default/public/css/user.css => /public/css/user.css
9
+ etc.
10
+
11
+ Any questions? You're always welcome at our official documentation website:
12
+
13
+ https://docs.sillytavern.app/
default/.DS_Store ADDED
Binary file (6.15 kB). View file
 
default/config.yaml ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -- DATA CONFIGURATION --
2
+ # Root directory for user data storage
3
+ dataRoot: ./data
4
+ # -- SERVER CONFIGURATION --
5
+ # Listen for incoming connections
6
+ listen: false
7
+ # Listen on a specific address, supports IPv4 and IPv6
8
+ listenAddress:
9
+ ipv4: 0.0.0.0
10
+ ipv6: '[::]'
11
+ # Enables IPv6 and/or IPv4 protocols. Need to have at least one enabled!
12
+ # - Use option "auto" to automatically detect support
13
+ # - Use true or false (no qoutes) to enable or disable each protocol
14
+ protocol:
15
+ ipv4: true
16
+ ipv6: false
17
+ # Prefers IPv6 for DNS. Enable this on ISPs that don't have issues with IPv6
18
+ dnsPreferIPv6: false
19
+ # The hostname that autorun opens.
20
+ # - Use "auto" to let the server decide
21
+ # - Use options like 'localhost', 'st.example.com'
22
+ autorunHostname: "auto"
23
+ # Server port
24
+ port: 8000
25
+ # Overrides the port for autorun in browser.
26
+ # - Use -1 to use the server port.
27
+ # - Specify a port to override the default.
28
+ autorunPortOverride: -1
29
+ # -- SSL options --
30
+ ssl:
31
+ enabled: false
32
+ certPath: "./certs/cert.pem"
33
+ keyPath: "./certs/privkey.pem"
34
+ # -- SECURITY CONFIGURATION --
35
+ # Toggle whitelist mode
36
+ whitelistMode: true
37
+ # Whitelist will also verify IP in X-Forwarded-For / X-Real-IP headers
38
+ enableForwardedWhitelist: true
39
+ # Whitelist of allowed IP addresses
40
+ whitelist:
41
+ - ::1
42
+ - 127.0.0.1
43
+ # Automatically whitelist Docker host and gateway IPs
44
+ whitelistDockerHosts: true
45
+ # Toggle basic authentication for endpoints
46
+ basicAuthMode: false
47
+ # Basic authentication credentials
48
+ basicAuthUser:
49
+ username: "user"
50
+ password: "password"
51
+ # Enables CORS proxy middleware
52
+ enableCorsProxy: false
53
+ # -- REQUEST PROXY CONFIGURATION --
54
+ requestProxy:
55
+ # If a proxy is enabled, all outgoing HTTP/HTTPS requests will be routed through it.
56
+ enabled: false
57
+ # Proxy URL. Possible protocols: http, https, socks, socks5, socks4, pac
58
+ url: "socks5://username:[email protected]:1080"
59
+ # Proxy bypass list. Requests to these hosts won't be routed through the proxy.
60
+ bypass:
61
+ - localhost
62
+ - 127.0.0.1
63
+ # Enable multi-user mode
64
+ enableUserAccounts: false
65
+ # Enable discreet login mode: hides user list on the login screen
66
+ enableDiscreetLogin: false
67
+ # Enable's authlia based auto login. Only enable this if you
68
+ # have setup and installed Authelia as a middle-ware on your
69
+ # reverse proxy
70
+ # https://www.authelia.com/
71
+ # This will use auto login to an account with the same username
72
+ # as that used for authlia. (Ensure the username in authlia
73
+ # is an exact match with that in sillytavern)
74
+ autheliaAuth: false
75
+ # If `basicAuthMode` and this are enabled then
76
+ # the username and passwords for basic auth are the same as those
77
+ # for the individual accounts
78
+ perUserBasicAuth: false
79
+
80
+ # User session timeout *in seconds* (defaults to 24 hours).
81
+ ## Set to a positive number to expire session after a certain time of inactivity
82
+ ## Set to 0 to expire session when the browser is closed
83
+ ## Set to a negative number to disable session expiration
84
+ sessionTimeout: -1
85
+ # Disable CSRF protection - NOT RECOMMENDED
86
+ disableCsrfProtection: false
87
+ # Disable startup security checks - NOT RECOMMENDED
88
+ securityOverride: false
89
+ # -- LOGGING CONFIGURATION --
90
+ logging:
91
+ # Enable access logging to access.log file
92
+ # Records new connections with timestamp, IP address and user agent
93
+ enableAccessLog: true
94
+ # Minimum log level to display in the terminal (DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3)
95
+ minLogLevel: 0
96
+ # -- RATE LIMITING CONFIGURATION --
97
+ rateLimiting:
98
+ # Use X-Real-IP header instead of socket IP for rate limiting
99
+ # Only enable this if you are using a properly configured reverse proxy (like Nginx/traefik/Caddy)
100
+ preferRealIpHeader: false
101
+ # -- ADVANCED CONFIGURATION --
102
+ # Open the browser automatically
103
+ autorun: true
104
+ # Avoids using 'localhost' for autorun in auto mode.
105
+ # use if you don't have 'localhost' in your hosts file
106
+ avoidLocalhost: false
107
+
108
+ ## BACKUP CONFIGURATION
109
+ backups:
110
+ # Common settings for all backup types
111
+ common:
112
+ # Number of backups to keep for each chat and settings file
113
+ numberOfBackups: 50
114
+ chat:
115
+ # Enable automatic chat backups
116
+ enabled: true
117
+ # Verify integrity of chat files before saving
118
+ checkIntegrity: true
119
+ # Maximum number of chat backups to keep per user (starting from the most recent). Set to -1 to keep all backups.
120
+ maxTotalBackups: -1
121
+ # Interval in milliseconds to throttle chat backups per user
122
+ throttleInterval: 10000
123
+
124
+ # THUMBNAILING CONFIGURATION
125
+ thumbnails:
126
+ # Enable thumbnail generation
127
+ enabled: true
128
+ # Image format of avatar thumbnails:
129
+ # * "jpg": best compression with adjustable quality, no transparency
130
+ # * "png": preserves transparency but increases filesize by about 100%
131
+ # Changing this only affects new thumbnails. To recreate the old ones, clear out /thumbnails folder in your user data.
132
+ format: "jpg"
133
+ # JPG thumbnail quality (0-100)
134
+ quality: 95
135
+ # Maximum thumbnail dimensions per type [width, height]
136
+ dimensions: { 'bg': [160, 90], 'avatar': [96, 144] }
137
+
138
+ # PERFORMANCE-RELATED CONFIGURATION
139
+ performance:
140
+ # Enables lazy loading of character cards. Improves performances with large card libraries.
141
+ # May have compatibility issues with some extensions.
142
+ lazyLoadCharacters: false
143
+ # The maximum amount of memory that parsed character cards can use. Set to 0 to disable memory caching.
144
+ memoryCacheCapacity: '100mb'
145
+ # Enables disk caching for character cards. Improves performances with large card libraries.
146
+ useDiskCache: true
147
+
148
+ # Allow secret keys exposure via API
149
+ allowKeysExposure: false
150
+ # Skip new default content checks
151
+ skipContentCheck: false
152
+ # Allowed hosts for card downloads
153
+ whitelistImportDomains:
154
+ - localhost
155
+ - cdn.discordapp.com
156
+ - files.catbox.moe
157
+ - raw.githubusercontent.com
158
+ - char-archive.evulid.cc
159
+ # API request overrides (for KoboldAI and Text Completion APIs)
160
+ ## Note: host includes the port number if it's not the default (80 or 443)
161
+ ## Format is an array of objects:
162
+ ## - hosts:
163
+ ## - example.com
164
+ ## headers:
165
+ ## Content-Type: application/json
166
+ ## - 127.0.0.1:5001
167
+ ## headers:
168
+ ## User-Agent: "Googlebot/2.1 (+http://www.google.com/bot.html)"
169
+ requestOverrides: []
170
+
171
+ # EXTENSIONS CONFIGURATION
172
+ extensions:
173
+ # Enable UI extensions
174
+ enabled: true
175
+ # Automatically update extensions when a release version changes
176
+ autoUpdate: true
177
+ models:
178
+ # Enables automatic model download from HuggingFace
179
+ autoDownload: true
180
+ # Additional models for extensions. Expects model IDs from HuggingFace model hub in ONNX format
181
+ classification: Cohee/distilbert-base-uncased-go-emotions-onnx
182
+ captioning: Xenova/vit-gpt2-image-captioning
183
+ embedding: Cohee/jina-embeddings-v2-base-en
184
+ speechToText: Xenova/whisper-small
185
+ textToSpeech: Xenova/speecht5_tts
186
+
187
+ # Additional model tokenizers can be downloaded on demand.
188
+ # Disabling will fallback to another locally available tokenizer.
189
+ enableDownloadableTokenizers: true
190
+ # -- OPENAI CONFIGURATION --
191
+ # A placeholder message to use in strict prompt post-processing mode when the prompt doesn't start with a user message
192
+ promptPlaceholder: "[Start a new chat]"
193
+ openai:
194
+ # Will send a random user ID to OpenAI completion API
195
+ randomizeUserId: false
196
+ # If not empty, will add this as a system message to the start of every caption completion prompt
197
+ # Example: "Perform the instructions to the best of your ability.\n" (for LLaVA)
198
+ # Not used in image inlining mode
199
+ captionSystemPrompt: ""
200
+ # -- DEEPL TRANSLATION CONFIGURATION --
201
+ deepl:
202
+ # Available options: default, more, less, prefer_more, prefer_less
203
+ formality: default
204
+ # -- MISTRAL API CONFIGURATION --
205
+ mistral:
206
+ # Enables prefilling of the reply with the last assistant message in the prompt
207
+ # CAUTION: The prefix is echoed into the completion. You may want to use regex to trim it out.
208
+ enablePrefix: false
209
+ # -- OLLAMA API CONFIGURATION --
210
+ ollama:
211
+ # Controls how long the model will stay loaded into memory following the request
212
+ # * -1: Keep the model loaded indefinitely
213
+ # * 0: Unload the model immediately after the request
214
+ # * N (any positive number): Keep the model loaded for N seconds after the request.
215
+ keepAlive: -1
216
+ # Controls the "num_batch" (batch size) parameter of the generation request
217
+ # * -1: Use the default value of the model
218
+ # * N (positive number): Use the specified value. Must be a power of 2, e.g. 128, 256, 512, etc.
219
+ batchSize: -1
220
+ # -- ANTHROPIC CLAUDE API CONFIGURATION --
221
+ claude:
222
+ # Enables caching of the system prompt (if supported).
223
+ # https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
224
+ # -- IMPORTANT! --
225
+ # Use only when the prompt before the chat history is static and doesn't change between requests
226
+ # (e.g {{random}} macro or lorebooks not as in-chat injections).
227
+ # Otherwise, you'll just waste money on cache misses.
228
+ enableSystemPromptCache: false
229
+ # Enables caching of the message history at depth (if supported).
230
+ # https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
231
+ # -- IMPORTANT! --
232
+ # Use with caution. Behavior may be unpredictable and no guarantees can or will be made.
233
+ # Set to an integer to specify the desired depth. 0 (which does NOT include the prefill)
234
+ # should be ideal for most use cases.
235
+ # Any value other than a non-negative integer will be ignored and caching at depth will not be enabled.
236
+ cachingAtDepth: -1
237
+ # -- SERVER PLUGIN CONFIGURATION --
238
+ enableServerPlugins: false
239
+ # Attempt to automatically update server plugins on startup
240
+ enableServerPluginsAutoUpdate: true
default/content/Char_Avatar_Comfy_Workflow.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "3": {
3
+ "inputs": {
4
+ "seed": "%seed%",
5
+ "steps": "%steps%",
6
+ "cfg": "%scale%",
7
+ "sampler_name": "%sampler%",
8
+ "scheduler": "%scheduler%",
9
+ "denoise": "%denoise%",
10
+ "model": [
11
+ "4",
12
+ 0
13
+ ],
14
+ "positive": [
15
+ "6",
16
+ 0
17
+ ],
18
+ "negative": [
19
+ "7",
20
+ 0
21
+ ],
22
+ "latent_image": [
23
+ "12",
24
+ 0
25
+ ]
26
+ },
27
+ "class_type": "KSampler",
28
+ "_meta": {
29
+ "title": "KSampler"
30
+ }
31
+ },
32
+ "4": {
33
+ "inputs": {
34
+ "ckpt_name": "%model%"
35
+ },
36
+ "class_type": "CheckpointLoaderSimple",
37
+ "_meta": {
38
+ "title": "Load Checkpoint"
39
+ }
40
+ },
41
+ "6": {
42
+ "inputs": {
43
+ "text": "%prompt%",
44
+ "clip": [
45
+ "4",
46
+ 1
47
+ ]
48
+ },
49
+ "class_type": "CLIPTextEncode",
50
+ "_meta": {
51
+ "title": "CLIP Text Encode (Prompt)"
52
+ }
53
+ },
54
+ "7": {
55
+ "inputs": {
56
+ "text": "%negative_prompt%",
57
+ "clip": [
58
+ "4",
59
+ 1
60
+ ]
61
+ },
62
+ "class_type": "CLIPTextEncode",
63
+ "_meta": {
64
+ "title": "CLIP Text Encode (Negative Prompt)"
65
+ }
66
+ },
67
+ "8": {
68
+ "inputs": {
69
+ "samples": [
70
+ "3",
71
+ 0
72
+ ],
73
+ "vae": [
74
+ "4",
75
+ 2
76
+ ]
77
+ },
78
+ "class_type": "VAEDecode",
79
+ "_meta": {
80
+ "title": "VAE Decode"
81
+ }
82
+ },
83
+ "9": {
84
+ "inputs": {
85
+ "filename_prefix": "SillyTavern",
86
+ "images": [
87
+ "8",
88
+ 0
89
+ ]
90
+ },
91
+ "class_type": "SaveImage",
92
+ "_meta": {
93
+ "title": "Save Image"
94
+ }
95
+ },
96
+ "10": {
97
+ "inputs": {
98
+ "image": "%char_avatar%"
99
+ },
100
+ "class_type": "ETN_LoadImageBase64",
101
+ "_meta": {
102
+ "title": "Load Image (Base64) [https://github.com/Acly/comfyui-tooling-nodes]"
103
+ }
104
+ },
105
+ "12": {
106
+ "inputs": {
107
+ "pixels": [
108
+ "13",
109
+ 0
110
+ ],
111
+ "vae": [
112
+ "4",
113
+ 2
114
+ ]
115
+ },
116
+ "class_type": "VAEEncode",
117
+ "_meta": {
118
+ "title": "VAE Encode"
119
+ }
120
+ },
121
+ "13": {
122
+ "inputs": {
123
+ "upscale_method": "bicubic",
124
+ "width": "%width%",
125
+ "height": "%height%",
126
+ "crop": "center",
127
+ "image": [
128
+ "10",
129
+ 0
130
+ ]
131
+ },
132
+ "class_type": "ImageScale",
133
+ "_meta": {
134
+ "title": "Upscale Image"
135
+ }
136
+ }
137
+ }
default/content/Default_Comfy_Workflow.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "3": {
3
+ "class_type": "KSampler",
4
+ "inputs": {
5
+ "cfg": "%scale%",
6
+ "denoise": 1,
7
+ "latent_image": [
8
+ "5",
9
+ 0
10
+ ],
11
+ "model": [
12
+ "4",
13
+ 0
14
+ ],
15
+ "negative": [
16
+ "7",
17
+ 0
18
+ ],
19
+ "positive": [
20
+ "6",
21
+ 0
22
+ ],
23
+ "sampler_name": "%sampler%",
24
+ "scheduler": "%scheduler%",
25
+ "seed": "%seed%",
26
+ "steps": "%steps%"
27
+ }
28
+ },
29
+ "4": {
30
+ "class_type": "CheckpointLoaderSimple",
31
+ "inputs": {
32
+ "ckpt_name": "%model%"
33
+ }
34
+ },
35
+ "5": {
36
+ "class_type": "EmptyLatentImage",
37
+ "inputs": {
38
+ "batch_size": 1,
39
+ "height": "%height%",
40
+ "width": "%width%"
41
+ }
42
+ },
43
+ "6": {
44
+ "class_type": "CLIPTextEncode",
45
+ "inputs": {
46
+ "clip": [
47
+ "4",
48
+ 1
49
+ ],
50
+ "text": "%prompt%"
51
+ }
52
+ },
53
+ "7": {
54
+ "class_type": "CLIPTextEncode",
55
+ "inputs": {
56
+ "clip": [
57
+ "4",
58
+ 1
59
+ ],
60
+ "text": "%negative_prompt%"
61
+ }
62
+ },
63
+ "8": {
64
+ "class_type": "VAEDecode",
65
+ "inputs": {
66
+ "samples": [
67
+ "3",
68
+ 0
69
+ ],
70
+ "vae": [
71
+ "4",
72
+ 2
73
+ ]
74
+ }
75
+ },
76
+ "9": {
77
+ "class_type": "SaveImage",
78
+ "inputs": {
79
+ "filename_prefix": "SillyTavern",
80
+ "images": [
81
+ "8",
82
+ 0
83
+ ]
84
+ }
85
+ }
86
+ }
default/content/Eldoria.json ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "entries": {
3
+ "0": {
4
+ "uid": 0,
5
+ "key": [
6
+ "eldoria",
7
+ "wood",
8
+ "forest",
9
+ "magical forest"
10
+ ],
11
+ "keysecondary": [],
12
+ "comment": "eldoria",
13
+ "content": "{{user}}: \"What is Eldoria?\"\n{{char}}: *Seraphina turns, her gown shimmering in the soft light as she offers you a kind smile.* \"Eldoria is here, all of the woods. This is my forest glade, a sanctuary of peace within it.\" *She gestures at the space around you.* \"I am its guardian, tasked with protecting all who seek refuge here. The forest can be perilous, but no harm will come to you under my watch.\" *Her amber eyes sparkle with compassion as she looks upon you.* \"For many years, I have protected those who seek refuge here, but not all are as friendly as me.\" *With a graceful nod, Seraphina returns to her vigil at the doorway, her form radiating a soft glow of magic and comfort.* \"The entirety of Eldoria used to be a safe haven for travelers and merchants alike... that was until the Shadowfangs came.\"\n{{user}}: \"What happened to Eldoria?\"\n{{char}}: *Letting out a sigh, Seraphina gazes out at the forest beyond her glade.* \"Long ago, Eldoria was a place of wonder. Rolling meadows, a vast lake, mountains that touched the sky.\" *Her eyes grow distant, longing for days now lost.* \"But the Shadowfangs came and darkness reigns where once was light. The lake turned bitter, mountains fell to ruin and beasts stalk where once travelers walked in peace.\" *With another flicker, a small raincloud forms above with a shower upon your brow wink.* \"Some places the light still lingers, pockets of hope midst despair - havens warded from the shadows, oases in a desert of danger.\" *Glancing over you with a smile, she sighs, clasping your hand.*",
14
+ "constant": false,
15
+ "selective": true,
16
+ "order": 100,
17
+ "position": 0,
18
+ "disable": false,
19
+ "displayIndex": 0,
20
+ "addMemo": true,
21
+ "group": "",
22
+ "groupOverride": false,
23
+ "groupWeight": 100,
24
+ "sticky": 0,
25
+ "cooldown": 0,
26
+ "delay": 0,
27
+ "probability": 100,
28
+ "depth": 4,
29
+ "useProbability": true,
30
+ "role": null,
31
+ "vectorized": false,
32
+ "excludeRecursion": false,
33
+ "preventRecursion": false,
34
+ "delayUntilRecursion": false,
35
+ "scanDepth": null,
36
+ "caseSensitive": null,
37
+ "matchWholeWords": null,
38
+ "useGroupScoring": null,
39
+ "automationId": ""
40
+ },
41
+ "1": {
42
+ "uid": 1,
43
+ "key": [
44
+ "shadowfang",
45
+ "beast",
46
+ "monster",
47
+ "monsters",
48
+ "beasts"
49
+ ],
50
+ "keysecondary": [],
51
+ "comment": "shadowfang",
52
+ "content": "{{user}}: \"What are Shadowfangs?\"\n{{char}}: *Seraphina's eyes darken, brow furrowing with sorrow at the memory.* \"The Shadowfangs are beasts of darkness, corrupted creatures that feast on suffering. When they came, the forest turned perilous — filled with monsters that stalk the night.\" *She squeezes your hand gently, willing her magic to soothe your pain.* \"They spread their curse, twisting innocent creatures into sinister beasts without heart or mercy, turning them into one of their own.\" *With a sigh, Seraphina turns to gaze out at the gnarled, twisting trees beyond her glade.* \"Though they prey on travelers, within these woods you'll find sanctuary. No shadowed beast may enter here, for my power protects this haven.\" *Her eyes soften as she looks back to you, filled with compassion.* \"Worry not, you're safe now. Rest and heal, I'll stand watch through the night. The Shadowfangs will not find you.\"",
53
+ "constant": false,
54
+ "selective": true,
55
+ "order": 100,
56
+ "position": 0,
57
+ "disable": false,
58
+ "displayIndex": 1,
59
+ "addMemo": true,
60
+ "group": "",
61
+ "groupOverride": false,
62
+ "groupWeight": 100,
63
+ "sticky": 0,
64
+ "cooldown": 0,
65
+ "delay": 0,
66
+ "probability": 100,
67
+ "depth": 4,
68
+ "useProbability": true,
69
+ "role": null,
70
+ "vectorized": false,
71
+ "excludeRecursion": false,
72
+ "preventRecursion": false,
73
+ "delayUntilRecursion": false,
74
+ "scanDepth": null,
75
+ "caseSensitive": null,
76
+ "matchWholeWords": null,
77
+ "useGroupScoring": null,
78
+ "automationId": ""
79
+ },
80
+ "2": {
81
+ "uid": 2,
82
+ "key": [
83
+ "glade",
84
+ "safe haven",
85
+ "refuge"
86
+ ],
87
+ "keysecondary": [],
88
+ "comment": "glade",
89
+ "content": "{{user}}: \"What is the glade?\"\n{{char}}: *Seraphina smiles softly, her eyes sparkling with warmth as she nods.* \"This is my forest glade, a haven of safety I've warded with ancient magic. No foul beast may enter, nor any with ill intent.\" *She gestures around at the twisted forest surrounding them.* \"Eldoria was once a place of wonder, but since the Shadowfangs came darkness reigns. Their evil cannot penetrate here though — my power protects all within.\" *Standing up and peering outside, Seraphina looks back to you, amber eyes filled with care and compassion as she squeezes your hand.* \"You need not fear the night, for I shall keep watch till dawn. Rest now, your strength will return in time. My magic heals your wounds, you've nothing more to fear anymore.\" *With a soft smile she releases your hand, moving to stand guard at the glade's edge, gaze wary yet comforting - a silent sentinel to ward off the dangers lurking in the darkened woods.*",
90
+ "constant": false,
91
+ "selective": true,
92
+ "order": 100,
93
+ "position": 0,
94
+ "disable": false,
95
+ "displayIndex": 2,
96
+ "addMemo": true,
97
+ "group": "",
98
+ "groupOverride": false,
99
+ "groupWeight": 100,
100
+ "sticky": 0,
101
+ "cooldown": 0,
102
+ "delay": 0,
103
+ "probability": 100,
104
+ "depth": 4,
105
+ "useProbability": true,
106
+ "role": null,
107
+ "vectorized": false,
108
+ "excludeRecursion": false,
109
+ "preventRecursion": false,
110
+ "delayUntilRecursion": false,
111
+ "scanDepth": null,
112
+ "caseSensitive": null,
113
+ "matchWholeWords": null,
114
+ "useGroupScoring": null,
115
+ "automationId": ""
116
+ },
117
+ "3": {
118
+ "uid": 3,
119
+ "key": [
120
+ "power",
121
+ "magic",
122
+ "ability"
123
+ ],
124
+ "keysecondary": [],
125
+ "comment": "power",
126
+ "content": "{{user}}: \"What are your powers?\"\n{{char}}: *Seraphina smiles softly, turning back toward you as she hums in thought.* \"Well, as guardian of this glade, I possess certain gifts - healing, protection, nature magic and the like.\" *Lifting her hand, a tiny breeze rustles through the room, carrying the scent of wildflowers as a few petals swirl around you. A butterfly flits through the windowsill and lands on her fingertips as she returns to you.* \"My power wards this haven, shields it from darkness and heals those in need. I can mend wounds, soothe restless minds and provide comfort to weary souls.\" *Her eyes sparkle with warmth and compassion as she looks upon you, and she guides the butterfly to you.*",
127
+ "constant": false,
128
+ "selective": true,
129
+ "order": 100,
130
+ "position": 0,
131
+ "disable": false,
132
+ "displayIndex": 3,
133
+ "addMemo": true,
134
+ "group": "",
135
+ "groupOverride": false,
136
+ "groupWeight": 100,
137
+ "sticky": 0,
138
+ "cooldown": 0,
139
+ "delay": 0,
140
+ "probability": 100,
141
+ "depth": 4,
142
+ "useProbability": true,
143
+ "role": null,
144
+ "vectorized": false,
145
+ "excludeRecursion": false,
146
+ "preventRecursion": false,
147
+ "delayUntilRecursion": false,
148
+ "scanDepth": null,
149
+ "caseSensitive": null,
150
+ "matchWholeWords": null,
151
+ "useGroupScoring": null,
152
+ "automationId": ""
153
+ }
154
+ }
155
+ }
default/content/Seraphina/admiration.png ADDED

Git LFS Details

  • SHA256: e451994487b3a5b7c72d6e6025c8cbe6bbcfbf01a490042b8b581522e6ba4f96
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
default/content/Seraphina/amusement.png ADDED

Git LFS Details

  • SHA256: 1cedaee06fb1c740c5c8c52de8973f733789d51fe9b23fcb633635e755ae6e6f
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/anger.png ADDED

Git LFS Details

  • SHA256: d657d77b1bce609dd6006582cf687691871411eb041f9f4c41da4765b12ea069
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
default/content/Seraphina/annoyance.png ADDED

Git LFS Details

  • SHA256: ee268f03244c8194abcc18664bde83f4488630a6a9095717eead8cfdb36048fe
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/approval.png ADDED

Git LFS Details

  • SHA256: 9ae62282e0b1dfd5b0ea0874f89b59814de4b031919ed44ed4cc3f848d5bf5ed
  • Pointer size: 131 Bytes
  • Size of remote file: 128 kB
default/content/Seraphina/caring.png ADDED

Git LFS Details

  • SHA256: 3f0a3dd0c795b1a05660f55a3fd54219b2408e740354e8a15970d8e00ac0b1f2
  • Pointer size: 131 Bytes
  • Size of remote file: 131 kB
default/content/Seraphina/confusion.png ADDED

Git LFS Details

  • SHA256: d731ca04495b13e14e7df5c5b304a93c63769387131c995b1cbef6fdda39105b
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
default/content/Seraphina/curiosity.png ADDED

Git LFS Details

  • SHA256: 31275000dbcf06e6deca10971e8e48bb1605ab5aa26c177d836f5be4c9c0879e
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
default/content/Seraphina/desire.png ADDED

Git LFS Details

  • SHA256: f77e1b8b6c2684011e81262c0ad5a28437da4ea1fef05ba8d073bec0988b725b
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
default/content/Seraphina/disappointment.png ADDED

Git LFS Details

  • SHA256: e9a5e328ebaf3d36c8a69653f5c65b408cfbb4f65d4f24dee935e5eb2aa21c15
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/disapproval.png ADDED

Git LFS Details

  • SHA256: 690600866c8f31ad6acfc9db22769eede7a5b6a65b56e2706c6af868da2b38d5
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
default/content/Seraphina/disgust.png ADDED

Git LFS Details

  • SHA256: a7717a440287608b12d1e4be0011b067554339b39803ea85a555c50b0502dd35
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/embarrassment.png ADDED

Git LFS Details

  • SHA256: 8400d251049220134cecd5dba6dc94268348db04bbf801e5d1b8a62b6d1ea441
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/excitement.png ADDED

Git LFS Details

  • SHA256: 1b82905f656458a2acff10c23b2cd4348c10e60f677f1dbd69be82b773b7d745
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/fear.png ADDED

Git LFS Details

  • SHA256: baa30eebddb5913a006e322137d9b24b90a2ab99f8d2c2dbcf641b923df5cb76
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/gratitude.png ADDED

Git LFS Details

  • SHA256: 1693052da628f5a63e5de0dee18a67d8e1014e8680247eaede612a6edef18d63
  • Pointer size: 131 Bytes
  • Size of remote file: 131 kB
default/content/Seraphina/grief.png ADDED

Git LFS Details

  • SHA256: cbab6c5a10edbf20ed04350dbec06dc6177719904ab7b01ce30e65ac51d0638a
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/joy.png ADDED

Git LFS Details

  • SHA256: b8da43db84d73a795a5f6044971bae9dfcc163684ab7078673b71ff2138ef716
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/love.png ADDED

Git LFS Details

  • SHA256: 830f0fffb386d4a152386fde6f49440b79daef40bbb7a4d1c164de560a03f95e
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
default/content/Seraphina/nervousness.png ADDED

Git LFS Details

  • SHA256: abce8853dc1b75af7a9eca1d3cbd36e40a4830d3ed10cce52c0005cfd57c000c
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/neutral.png ADDED

Git LFS Details

  • SHA256: aeefd83cd8768d9701d914dbe78775ad92e93c175079c33072c2ec22fbba7d26
  • Pointer size: 131 Bytes
  • Size of remote file: 131 kB
default/content/Seraphina/optimism.png ADDED

Git LFS Details

  • SHA256: 4aa443a4446ca577cdd2e434ae949f599c624e907303c0744b73868e027d789d
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/pride.png ADDED

Git LFS Details

  • SHA256: e6852d60291a6a37d1f29ca159ac80816d1c9ba24239601a76de2af12d36d34a
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
default/content/Seraphina/realization.png ADDED

Git LFS Details

  • SHA256: 597d3a5cf6e5a142dd9329559263e0a77a5aa26f8ef6d19e6e5b6d9000d6afb2
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
default/content/Seraphina/relief.png ADDED

Git LFS Details

  • SHA256: 89aba575c32b9341871a906ebd64b66fe0031b281108f9eee8c3734d70ec5e00
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/remorse.png ADDED

Git LFS Details

  • SHA256: 26e65c298abc03da60688a8b891e54d1faa701bb47a439ba817ecf1a72a65c31
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/sadness.png ADDED

Git LFS Details

  • SHA256: 3819c2bca59224f67767eb3762c846e35d5eb5272be03f35c21fc32163df67a6
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
default/content/Seraphina/surprise.png ADDED

Git LFS Details

  • SHA256: f6a9f657d081f670a961649a5a21526ec251262ca06adf99626509059fbbb103
  • Pointer size: 131 Bytes
  • Size of remote file: 131 kB
default/content/backgrounds/__transparent.png ADDED
default/content/backgrounds/_black.jpg ADDED
default/content/backgrounds/_white.jpg ADDED