Merge pull request #3690 from SillyTavern/staging Staging

d8c8bfa8a43f34ba02ff421fc8adcc8376daff61

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
196 files changed, +3824 -1873Ignore whitespace
.eslintrc.cjs+1 -0
@@ -75,6 +75,7 @@ module.exports = {
7575 'plugins/**',
7676 '**/*.min.js',
7777 'public/scripts/extensions/quick-reply/lib/**',
78+ 'public/scripts/extensions/tts/lib/**',
7879 ],
7980 rules: {
8081 'no-unused-vars': ['error', { args: 'none' }],
.github/ISSUE_TEMPLATE/bug-report.yml+1 -0
@@ -1,4 +1,5 @@
11name: Bug Report 🐛
2+type: Bug
23description: Report something that's not working the intended way. Support requests for external programs (reverse proxies, 3rd party servers, other peoples' forks) will be refused! Please use English only.
34title: '[BUG] <title>'
45labels: ['🐛 Bug']
.github/ISSUE_TEMPLATE/feature-request.yml+2 -1
@@ -1,4 +1,5 @@
11name: Feature Request ✨
2+type: Feature
23description: Suggest an idea for future development of this project. Please use English only.
34title: '[FEATURE_REQUEST] <title>'
45labels: ['🦄 Feature Request']
@@ -32,7 +33,7 @@ body:
3233 id: solution
3334 attributes:
3435 label: Describe the solution you'd like
3536 placeholder: An outline of how you would like this to be implemented, include as much details as possible
3637 validations:
3738 required: true
3839
.github/close-label.yml+0 -2
@@ -1,2 +0,0 @@
1-🐛 Bug: ✅ Fixed
2-🦄 Feature Request: ✅ Implemented
2 \ No newline at end of file
.github/issue-auto-comments.yml+0 -62
@@ -1,62 +0,0 @@
1-comment:
2- footer: |
3- ---
4- > I am a bot, and this is an automated message 🤖
5-labels:
6- - name: ✖️ Invalid
7- labeled:
8- issue:
9- action: close
10- body: >
11- Hello @{{ issue.user.login }} your ticket has been marked as invalid.
12- Please ensure you follow the issue template, provide all requested info,
13- and be sure to check the docs + previous issues prior to raising tickets.
14- pr:
15- body: Thank you @{{ pull_request.user.login }} for suggesting this. Please follow the pull request templates.
16- action: close
17-
18- - name: 👩‍💻 Good First Issue
19- labeled:
20- issue:
21- body: >
22- This issue has been marked as a good first issue for first-time contributors to implement!
23- This is a great way to support the project, while also improving your skills, you'll also be credited as a contributor once your PR is merged.
24- If you're new to SillyTavern [here are a collection of resources](https://docs.sillytavern.app/)
25- If you need any support at all, feel free to reach out via [Discord](https://discord.gg/sillytavern).
26-
27- - name: ❌ wontfix
28- labeled:
29- issue:
30- action: close
31- body: >
32- This ticked has been marked as 'wontfix', which usually means it is out-of-scope, or not feasible at this time.
33- You can still fork the project and make the changes yourself.
34-
35- - name: ✅ Fixed
36- labeled:
37- issue:
38- body: >
39- Hello @{{ issue.user.login }}! It looks like all or part of this issue has now been implemented.
40-
41-
42- - name: ‼️ High Priority
43- labeled:
44- issue:
45- body: >
46- This ticket has been marked as high priority, and has been bumped to the top of the priority list.
47- You should expect an implementation to be pushed out soon. Thank you for your patience.
48-
49- - name: 💀 Spam
50- labeled:
51- issue:
52- action: close
53- locking: lock
54- lock_reason: spam
55- body: >
56- This issue has been identified as spam, and is now locked.
57- Users who repeatedly raise spam issues may be blocked or reported.
58-
59- - name: ⛔ Don't Merge
60- labeled:
61- pr:
62- body: This PR has been temporarily blocked from merging.
62 \ No newline at end of file
.github/issues-auto-comments.yml+69 -0
@@ -0,0 +1,69 @@
1+labels:
2+ - name: ✖️ Invalid
3+ labeled:
4+ issue:
5+ action: close
6+ body: >
7+ Hey @{{ issue.user.login }}, this issue has been marked as invalid.
8+
9+ Please double-check that you've followed the issue template, included all necessary details, and reviewed the docs & previous issues before submitting.
10+ If provided, follow the instructions given by maintainers.
11+
12+ - name: 👩‍💻 Good First Issue
13+ labeled:
14+ issue:
15+ body: >
16+ 🏆 This issue has been marked as a good first issue for contributors to implement!
17+ This is a great way to support the project. While also improving your skills, you'll also be credited as a contributor once your PR is merged.
18+
19+ If you're new to SillyTavern [here is the official documentation](https://docs.sillytavern.app/). The official contribution guide can be found [here](https://github.com/SillyTavern/SillyTavern/blob/release/CONTRIBUTING.md).
20+ If you need any support, feel free to reach out via [Discord](https://discord.gg/sillytavern), or let us know in this issue or via [discussions](https://github.com/SillyTavern/SillyTavern/discussions).
21+
22+ - name: ❌ wontfix
23+ labeled:
24+ issue:
25+ action: close
26+ body: >
27+ ❌ This issue has been marked as 'wontfix', which usually means it is out-of-scope, not feasible at this time or will not be implemented for various reasons.
28+ If you have any questions about this, feel free to reach out.
29+
30+ - name: 🛑 Out of Scope
31+ labeled:
32+ issue:
33+ action: close
34+ body: >
35+ 🛑 This issue has been marked as 'out of scope', as this can't or won't be implemented.
36+ If you have any questions about this, feel free to reach out.
37+
38+ - name: ✅ Done (staging)
39+ labeled:
40+ issue:
41+ body: >
42+ ✅ It looks like all or part of this issue has now been implemented as part of the `staging` branch.
43+ If you currently are on the `release` branch, you can switch to `staging` to test this right away.
44+
45+ Note that `staging` is considered less stable than the official releases. To switch, follow existing instructions,
46+ or simply enter the following command: `git switch staging`
47+
48+ - name: ✅ Done
49+ labeled:
50+ issue:
51+ body: >
52+ ✅ It looks like all or part of this issue has now been implemented as part of the latest release.
53+
54+ - name: ‼️ High Priority
55+ labeled:
56+ issue:
57+ body: >
58+ 🚨 This issue has been marked high priority, meaning it's important to the maintainers or community.
59+ While we can't promise immediate changes, it is on our radar and will be addressed whenever possible. Thanks for your patience!
60+
61+ - name: 💀 Spam
62+ labeled:
63+ issue:
64+ action: close
65+ locking: lock
66+ lock_reason: spam
67+ body: >
68+ 💀 This issue has been flagged as spam and is now locked.
69+ Please avoid posting spam - it disrupts the community and wastes everyone's time.
.github/labeler.yml → .github/issues-auto-labels.yml+7 -5
@@ -1,7 +1,3 @@
1-# Add/remove 'critical' label if issue contains the words 'urgent' or 'critical'
2-#critical:
3-# - '(critical|urgent)'
4-
51🪟 Windows:
62 - '(🪟 Windows)'
73
@@ -15,4 +11,10 @@
1511 - '(📱 Termux)'
1612
1713🐧 Linux:
18- - '(🐧 Linux)'
18 \ No newline at end of file
14+ - '(🐧 Linux)'
15+
16+🦊 Firefox:
17+ - '(firefox|mozilla)'
18+
19+📱 Mobile:
20+ - '(iphone|ios|android|📱 Termux)'
.github/pr-auto-comments.yml+51 -0
@@ -0,0 +1,51 @@
1+labels:
2+ - name: ✖️ Invalid
3+ labeled:
4+ pr:
5+ action: close
6+ body: >
7+ Hey @{{ pull_request.user.login }}, thanks for your contribution!
8+ Unfortunately, this PR has been marked as invalid.
9+
10+ Please check that you've followed the PR template, included all relevant details, and are targeting the correct branch (`staging` for regular contributions, `release` only for hotfixes).
11+
12+ If you need help, feel free to ask!
13+
14+ - name: ⛔ Don't Merge
15+ labeled:
16+ pr:
17+ body: >
18+ 🚨 This PR has been temporarily blocked from merging.
19+
20+ - name: 💥💣 Breaking Changes
21+ labeled:
22+ pr:
23+ body: >
24+ ⚠️ Heads up! This PR introduces breaking changes.
25+
26+ Make sure these changes are well-documented and that users will be properly informed when this is released.
27+
28+ - name: ⛔ Waiting For External/Upstream
29+ labeled:
30+ pr:
31+ body: >
32+ ⛔ This PR is awaiting external or upstream changes or approval.
33+ It can only be merged once those changes have been implemented and approved.
34+
35+ Please inform us of any progress on the upstream changes or approval.
36+
37+ - name: 🔬 Needs Testing
38+ labeled:
39+ pr:
40+ body: >
41+ 🔬 This PR needs testing!
42+ Any contributor can test and leave reviews, so feel free to help us out!
43+
44+ - name: 🟥 ⬤⬤⬤⬤⬤
45+ labeled:
46+ pr:
47+ body: >
48+ ⚠️ This PR is over 1000 lines, which is larger than recommended.
49+
50+ Please make sure that it only addresses a single issue - PRs this large are hard to test and may be rejected.
51+
.github/pr-auto-labels-by-branch.yml+77 -0
@@ -0,0 +1,77 @@
1+####################################
2+# Label PRs against 'release' #
3+####################################
4+❗ Against Release Branch:
5+- base-branch: 'release'
6+
7+####################################
8+# Labels based on PR branch name #
9+####################################
10+🦋 Bug Fix:
11+- head-branch: ['^fix[/-]', '\bfixes\b']
12+
13+🚑 Hot Fix:
14+- head-branch: ['^hotfix[/-]']
15+
16+✨ New Feature:
17+- head-branch: ['^feat(ure)?[/-].*?\badd', '^add-']
18+
19+✨ Feature Changes:
20+- head-branch: ['^feat(ure)?[/-](?!.*\badd\b)', '\bchanges?\b']
21+
22+🤖 API / Model:
23+- head-branch: ['\bapi\b', '\bmodels?\b']
24+
25+🏭 Backend Changes:
26+- head-branch: ['\bbackend\b', '\bendpoints?\b']
27+
28+🐋 Docker:
29+- head-branch: ['\bdocker\b']
30+
31+➕ Extension:
32+- head-branch: ['\bextension\b', '\bext\b']
33+
34+🦊 Firefox:
35+- head-branch: ['\bfirefox\b']
36+
37+🖼️ Image Gen:
38+- head-branch: ['\bimage-gen\b']
39+
40+🌐 Language:
41+- head-branch: ['\btranslations?\b', '\blanguages?\b']
42+
43+🐧 Linux:
44+- head-branch: ['\blinux\b']
45+
46+🧩 Macros:
47+- head-branch: ['\bmacros?\b']
48+
49+📱 Mobile:
50+- head-branch: ['\bmobile\b', '\bios\b', '\bandroid\b']
51+
52+🚄 Performance:
53+- head-branch: ['\bperformance\b']
54+
55+⚙️ Preset:
56+- head-branch: ['\bpresets?\b']
57+
58+📜 Prompt:
59+- head-branch: ['\bprompt\b']
60+
61+🚚 Refactor:
62+- head-branch: ['\brefactor(s|ed)?\b']
63+
64+📜 STscript:
65+- head-branch: ['\bstscript\b', '\bslash-commands\b']
66+
67+🏷️ Tags / Folders:
68+- head-branch: ['\btags\b']
69+
70+🎙️ TTS / Voice:
71+- head-branch: ['\btts\b', '\bvoice\b']
72+
73+🌟 UX:
74+- head-branch: ['\bux\b']
75+
76+🗺️ World Info:
77+- head-branch: ['\bworld-info\b', '\bwi\b']
.github/pr-auto-labels-by-files.yml+46 -0
@@ -0,0 +1,46 @@
1+####################################
2+# Labels based on changed files #
3+####################################
4+🏭 Backend Changes:
5+- changed-files:
6+ - any-glob-to-any-file:
7+ - "src/**"
8+ - "default/config.yaml"
9+ - "server.js"
10+ - "plugins.js"
11+ - "recover.js"
12+ - "webpack.config.js"
13+ - "Start.bat"
14+ - "start.sh"
15+ - "UpdateAndStart.bat"
16+ - "UpdateForkAndStart.bat"
17+
18+⚙️ config.yaml:
19+- changed-files:
20+ - any-glob-to-any-file:
21+ - "default/config.yaml"
22+
23+🛠️ Build Changes:
24+- changed-files:
25+ - any-glob-to-any-file:
26+ - ".github/workflows/**"
27+ - "docker/**"
28+ - ".dockerignore"
29+ - "Dockerfile"
30+ - "webpack.config.js"
31+
32+🌐 Language:
33+- changed-files:
34+ - any-glob-to-any-file:
35+ - "public/locales/**"
36+
37+📥 Dependencies:
38+- changed-files:
39+ - any-glob-to-any-file:
40+ - "public/lib/**" # Every frontend lib counts as a dependency as well
41+ - "package.json"
42+ - "package-lock.json"
43+ - "tests/package.json"
44+ - "tests/package-lock.json"
45+ - "src/electron/package.json"
46+ - "src/electron/package-lock.json"
.github/readme.md+106 -69
@@ -23,7 +23,7 @@ We have a [Documentation website](https://docs.sillytavern.app/) to answer most
2323
2424SillyTavern (or ST for short) is a locally installed user interface that allows you to interact with text generation LLMs, image generation engines, and TTS voice models.
2525
2626Beginning in February 2023 as a fork of TavernAI 1.2.8, SillyTavern now has over 100200 contributors and 2 years of independent development under its belt, and continues to serve as a leading software for savvy AI hobbyists.
2727
2828## Our Vision
2929
@@ -113,7 +113,9 @@ SillyTavern has extensibility support.
113113
114114Tutorials on how to use them can be found in the [Docs](https://docs.sillytavern.app/).
115115
116116## ⌛ Installation
117+
118+### 🪟 Windows
117119
118120> \[!WARNING]
119121>
@@ -121,9 +123,7 @@ Tutorials on how to use them can be found in the [Docs](https://docs.sillytavern
121123> * DO NOT RUN START.BAT WITH ADMIN PERMISSIONS
122124> * INSTALLATION ON WINDOWS 7 IS IMPOSSIBLE AS IT CAN NOT RUN NODEJS 18.16
123125
124-## 🪟 Windows
126+#### Installing via Git (recommended)
125-
126-### Installing via Git
127127
1281281. Install [NodeJS](https://nodejs.org/en) (latest LTS version is recommended)
1291292. Install [Git for Windows](https://gitforwindows.org/)
@@ -138,7 +138,7 @@ Tutorials on how to use them can be found in the [Docs](https://docs.sillytavern
1381387. Once everything is cloned, double-click `Start.bat` to make NodeJS install its requirements.
1391398. The server will then start, and SillyTavern will pop up in your browser.
140140
141141#### Installing via GitHub Desktop
142142
143143(This allows git usage **only** in GitHub Desktop, if you want to use `git` on the command line too, you also need to install [Git for Windows](https://gitforwindows.org/))
144144
@@ -152,7 +152,7 @@ Tutorials on how to use them can be found in the [Docs](https://docs.sillytavern
152152 9. After the installation process, if everything is working, the command console window should look like this and a SillyTavern tab should be open in your browser:
153153 10. Connect to any of the [supported APIs](https://docs.sillytavern.app/usage/api-connections/) and start chatting!
154154
155155### 🐧 Linux & 🍎 MacOS
156156
157157For MacOS / Linux all of these will be done in a Terminal.
158158
@@ -168,6 +168,57 @@ For MacOS / Linux all of these will be done in a Terminal.
168168* `./start.sh`
169169* `bash start.sh`
170170
171+## 🐋 Installing via Docker
172+
173+These instructions assume you have installed Docker, are able to access your command line for the installation of containers, and familiar with their general operation.
174+
175+### Using the GitHub Container Registry
176+
177+#### Docker Compose (easiest)
178+
179+Grab the `docker-compose.yml` file from the [GitHub Repository](https://github.com/SillyTavern/SillyTavern/blob/release/docker/docker-compose.yml) and run the following command in the directory where the file is located. This will pull the latest release image from the GitHub Container Registry and start the container, automatically creating the necessary volumes.
180+
181+```shell
182+docker-compose up
183+```
184+
185+Customize the `docker-compose.yml` file to your needs. The default port is 8000. If you want to adjust the server configuration using environment variables, read the documentation [here](https://docs.sillytavern.app/administration/config-yaml/#environment-variables).
186+
187+#### Docker CLI (advanced)
188+
189+You will need two mandatory directory mappings and a port mapping to allow SillyTavern to function. In the command, replace your selections in the following places:
190+
191+#### Container Variables
192+
193+##### Volume Mappings
194+
195+* [config] - The directory where SillyTavern configuration files will be stored on your host machine
196+* [data] - The directory where SillyTavern user data (including characters) will be stored on your host machine
197+* [plugins] - (optional) The directory where SillyTavern server plugins will be stored on your host machine
198+* [extensions] - (optional) The directory where global UI extensions will be stored on your host machine
199+
200+##### Port Mappings
201+
202+* [PublicPort] - The port to expose the traffic on. This is mandatory, as you will be accessing the instance from outside of its virtual machine container. DO NOT expose this to the internet without implementing a separate service for security.
203+
204+##### Additional Settings
205+
206+* [DockerNet] - The docker network that the container should be created with a connection to. If you don't know what it is, see the [official Docker documentation](https://docs.docker.com/reference/cli/docker/network/).
207+* [version] - On the right-hand side of this GitHub page, you'll see "Packages". Select the "sillytavern" package and you'll see the image versions. The image tag "latest" will keep you up-to-date with the current release. You can also utilize "staging" and "release" tags that point to the nightly images of the respective branches, but this may not be appropriate, if you are utilizing extensions that could be broken, and may need time to update.
208+
209+#### Install command
210+
211+1. Open your Command Line
212+2. Run the following command
213+
214+`docker run --name='sillytavern' --net='[DockerNet]' -p '8000:8000/tcp' -v '[plugins]':'/home/node/app/plugins':'rw' -v '[config]':'/home/node/app/config':'rw' -v '[data]':'/home/node/app/data':'rw' -v '[extensions]':'/home/node/app/public/scripts/extensions/third-party':'rw' 'ghcr.io/sillytavern/sillytavern:[version]'`
215+
216+> Note that 8000 is a default listening port. Don't forget to use an appropriate port if you change it in the config.
217+
218+### Building the image yourself
219+
220+We have a comprehensive guide on using SillyTavern in Docker [here](http://docs.sillytavern.app/installation/docker/) which covers installations on Windows, macOS and Linux! Give it a read if you wish to build the image yourself.
221+
171222## ⚡ Installing via SillyTavern Launcher
172223
173224SillyTavern Launcher is an installation wizard that will help you get setup with many options, including installing a backend for local inference.
@@ -239,45 +290,6 @@ chmod +x install.sh && ./install.sh
239290chmod +x launcher.sh && ./launcher.sh
240291```
241292
242-## 🐋 Installing via Docker
243-
244-These instructions assume you have installed Docker, are able to access your command line for the installation of containers, and familiar with their general operation.
245-
246-### Building the image yourself
247-
248-We have a comprehensive guide on using SillyTavern in Docker [here](http://docs.sillytavern.app/installation/docker/) which covers installations on Windows, macOS and Linux! Give it a read if you wish to build the image yourself.
249-
250-### Using the GitHub Container Registry (easiest)
251-
252-You will need two mandatory directory mappings and a port mapping to allow SillyTavern to function. In the command, replace your selections in the following places:
253-
254-#### Container Variables
255-
256-##### Volume Mappings
257-
258-* [config] - The directory where SillyTavern configuration files will be stored on your host machine
259-* [data] - The directory where SillyTavern user data (including characters) will be stored on your host machine
260-* [plugins] - (optional) The directory where SillyTavern server plugins will be stored on your host machine
261-* [extensions] - (optional) The directory where global UI extensions will be stored on your host machine
262-
263-##### Port Mappings
264-
265-* [PublicPort] - The port to expose the traffic on. This is mandatory, as you will be accessing the instance from outside of its virtual machine container. DO NOT expose this to the internet without implementing a separate service for security.
266-
267-##### Additional Settings
268-
269-* [DockerNet] - The docker network that the container should be created with a connection to. If you don't know what it is, see the [official Docker documentation](https://docs.docker.com/reference/cli/docker/network/).
270-* [version] - On the right-hand side of this GitHub page, you'll see "Packages". Select the "sillytavern" package and you'll see the image versions. The image tag "latest" will keep you up-to-date with the current release. You can also utilize "staging" and "release" tags that point to the nightly images of the respective branches, but this may not be appropriate, if you are utilizing extensions that could be broken, and may need time to update.
271-
272-#### Install command
273-
274-1. Open your Command Line
275-2. Run the following command
276-
277-`docker run --name='sillytavern' --net='[DockerNet]' -p '8000:8000/tcp' -v '[plugins]':'/home/node/app/plugins':'rw' -v '[config]':'/home/node/app/config':'rw' -v '[data]':'/home/node/app/data':'rw' -v '[extensions]':'/home/node/app/public/scripts/extensions/third-party':'rw' 'ghcr.io/sillytavern/sillytavern:[version]'`
278-
279-> Note that 8000 is a default listening port. Don't forget to use an appropriate port if you change it in the config.
280-
281293## 📱 Installing via Termux on Android OS
282294
283295> \[!NOTE]
@@ -317,29 +329,34 @@ Start.bat --port 8000 --listen false
317329
318330### Supported arguments
319331
320-| Option | Description | Type |
332+> \[!TIP]
321-|-------------------------|------------------------------------------------------------------------------------------------------|----------|
333+> None of the arguments are required. If you don't provide them, SillyTavern will use the settings in `config.yaml`.
322-| `--version` | Show version number | boolean |
334+
323-| `--enableIPv6` | Enables IPv6. | boolean |
335+| Option | Description | Type |
324-| `--enableIPv4` | Enables IPv4. | boolean |
336+|-------------------------|----------------------------------------------------------------------|----------|
325-| `--port` | Sets the port under which SillyTavern will run. If not provided falls back to yaml config 'port'. | number |
337+| `--version` | Show version number | boolean |
326-| `--dnsPreferIPv6` | Prefers IPv6 for dns. If not provided falls back to yaml config 'preferIPv6'. | boolean |
338+| `--dataRoot` | Root directory for data storage | string |
327-| `--autorun` | Automatically launch SillyTavern in the browser. If not provided falls back to yaml config 'autorun'.| boolean |
339+| `--port` | Sets the port under which SillyTavern will run | number |
328340| `--autorunHostnamelisten` | The autorunSillyTavern hostname,will probablylisten beston leftall onnetwork 'auto'. interfaces | string boolean |
329341| `--autorunPortOverridewhitelist` | Overrides the portEnables forwhitelist autorun. mode | string boolean |
330-| `--listen` | SillyTavern is listening on all network interfaces. If not provided falls back to yaml config 'listen'.| boolean |
342+| `--basicAuthMode` | Enables basic authentication | boolean |
331343| `--corsProxyenableIPv4` | Enables CORS proxy. If not provided falls back to yaml configIPv4 'enableCorsProxy'. protocol | boolean |
332344| `--disableCsrfenableIPv6` | DisablesEnables CSRFIPv6 protection protocol | boolean |
333345| `--ssllistenAddressIPv4` | EnablesSpecific SSL IPv4 address to listen to | boolean string |
334346| `--certPathlistenAddressIPv6` | PathSpecific toIPv6 youraddress certificateto file. listen to | string |
335347| `--keyPathdnsPreferIPv6` | Path to yourPrefers privateIPv6 keyfor file. DNS | string boolean |
336348| `--whitelistssl` | Enables whitelist mode SSL | boolean |
337349| `--dataRootcertPath` | RootPath directoryto foryour datacertificate storage file | string |
338350| `--avoidLocalhostkeyPath` | Avoids using 'localhost'Path forto autorunyour inprivate autokey mode. file | boolean string |
339351| `--basicAuthModeautorun` | EnablesAutomatically basiclaunch authentication SillyTavern in the browser | boolean |
340-| `--requestProxyEnabled` | Enables a use of proxy for outgoing requests | boolean |
352+| `--autorunHostname` | Autorun hostname | string |
341353| `--requestProxyUrlautorunPortOverride` | Request proxy| URLOverrides (HTTPthe orport SOCKSfor protocols) autorun | string |
342354| `--requestProxyBypassavoidLocalhost` | Request proxyAvoids bypassusing list'localhost' (spacefor separatedautorun listin ofauto hosts) mode | array boolean |
355+| `--corsProxy` | Enables CORS proxy | boolean |
356+| `--requestProxyEnabled` | Enables a use of proxy for outgoing requests | boolean |
357+| `--requestProxyUrl` | Request proxy URL (HTTP or SOCKS protocols) | string |
358+| `--requestProxyBypass` | Request proxy bypass list (space separated list of hosts) | array |
359+| `--disableCsrf` | Disables CSRF protection (NOT RECOMMENDED) | boolean |
343360
344361## Remote connections
345362
@@ -351,10 +368,29 @@ You may also want to configure SillyTavern user profiles with (optional) passwor
351368
352369## Performance issues?
353370
371+### General tips
372+
3543731. Disable the Blur Effect and enable Reduced Motion on the User Settings panel (UI Theme toggles category).
3553742. If using response streaming, set the streaming FPS to a lower value (10-15 FPS is recommended).
3563753. Make sure the browser is enabled to use GPU acceleration for rendering.
357376
377+### Input lag
378+
379+Performance degradation, particularly input lag, is most commonly attributed to browser extensions. Known problematic extensions include:
380+
381+* iCloud Password Manager
382+* DeepL Translation
383+* AI-based grammar correction tools
384+* Various ad-blocking extensions
385+
386+If you experience performance issues and cannot identify the cause, or suspect an issue with SillyTavern itself, please:
387+
388+1. [Record a performance profile](https://developer.chrome.com/docs/devtools/performance/reference)
389+2. Export the profile as a JSON file
390+3. Submit it to the development team for analysis
391+
392+We recommend first testing with all browser extensions and third-party SillyTavern extensions disabled to isolate the source of the performance degradation.
393+
358394## License and credits
359395
360396**This program is distributed in the hope that it will be useful,
@@ -369,6 +405,7 @@ GNU Affero General Public License for more details.**
369405* Icon theme by Font Awesome <https://fontawesome.com> (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
370406* Default content by @OtisAlejandro (Seraphina character and lorebook) and @kallmeflocc (10K Discord Users Celebratory Background)
371407* Docker guide by [@mrguymiah](https://github.com/mrguymiah) and [@Bronya-Rand](https://github.com/Bronya-Rand)
408+* kokoro-js library by [@hexgrad](https://github.com/hexgrad) (Apache-2.0 License)
372409
373410## Top Contributors
374411
.github/workflows/add-comment-from-tag.yml+0 -28
@@ -1,28 +0,0 @@
1-# Based on a label applied to an issue, the bot will add a comment with some additional info
2-
3-name: 🎯 Auto-Reply to Labeled Tickets
4-on:
5- issues:
6- types:
7- - labeled
8- - unlabeled
9- pull_request_target:
10- types:
11- - labeled
12- - unlabeled
13-permissions:
14- contents: read
15- issues: write
16- pull-requests: write
17-
18-jobs:
19- comment:
20- runs-on: ubuntu-20.04
21- steps:
22- - name: Checkout
23- uses: actions/checkout@v2
24- - name: Label Commenter
25- uses: peaceiris/actions-label-commenter@v1
26- with:
27- config_file: .github/issue-auto-comments.yml
28- github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
28 \ No newline at end of file
.github/workflows/check-merge-conflicts.yml+0 -17
@@ -1,17 +0,0 @@
1-# Detect and label pull requests that have merge conflicts
2-name: 🏗️ Check Merge Conflicts
3-on:
4- push:
5- branches:
6- - staging
7-jobs:
8- check-conflicts:
9- if: github.repository == 'SillyTavern/SillyTavern'
10- runs-on: ubuntu-latest
11- steps:
12- - uses: mschilde/auto-label-merge-conflicts@master
13- with:
14- CONFLICT_LABEL_NAME: "🚫 Merge Conflicts"
15- GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
16- MAX_RETRIES: 5
17- WAIT_MS: 5000
17 \ No newline at end of file
.github/workflows/close-stale-issues.yml+0 -82
@@ -1,82 +0,0 @@
1-# Closes any issues that no longer have user interaction
2-name: 🎯 Close Stale Issues
3-
4-on:
5- workflow_dispatch:
6- schedule:
7- - cron: '0 0 * * *' # Runs every day at midnight UTC
8-
9-jobs:
10- stale:
11- runs-on: ubuntu-latest
12-
13- steps:
14- # Comment on, then close issues that haven't been updated for ages
15- - name: Close Stale Issues
16- uses: actions/stale@v4
17- with:
18- repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
19- days-before-stale: 183
20- days-before-close: 7
21- operations-per-run: 30
22- remove-stale-when-updated: true
23- enable-statistics: true
24- stale-issue-message: >
25- This issue has gone 6 months without an update. To keep the ticket open, please indicate that it is still relevant in a comment below.
26- Otherwise it will be closed in 7 days.
27- stale-pr-message: >
28- This PR is stale because it has been open 6 months with no activity. Either remove the stale label or comment below with a short update,
29- otherwise this PR will be closed in 7 days.
30- close-issue-message: >
31- This issue was automatically closed because it has been stalled for over 6 months with no activity.
32- close-pr-message: >
33- This pull request was automatically closed because it has been stalled for over 6 months with no activity.
34- stale-issue-label: '⚰️ Stale'
35- close-issue-label: '🕸️ Inactive'
36- stale-pr-label: '⚰️ Stale'
37- close-pr-label: '🕸️ Inactive'
38- exempt-issue-labels: '📌 Keep Open'
39- exempt-pr-labels: '📌 Keep Open'
40- labels-to-add-when-unstale: '📌 Keep Open'
41-
42- # Comment on, then close issues that required a response from the user, but didn't get one
43- - name: Close Issues without Response
44- uses: actions/stale@v4
45- with:
46- repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
47- days-before-stale: 7
48- days-before-close: 7
49- operations-per-run: 30
50- remove-stale-when-updated: true
51- stale-issue-message: >
52- Hi! Looks like additional info is required for this issue to be addressed.
53- Don't forget to provide this within the next few days to keep your ticket open.
54- close-issue-message: 'Issue closed due to no response from user.'
55- only-labels: '🚏 Awaiting User Response'
56- labels-to-remove-when-unstale: '🚏 Awaiting User Response, 🛑 No Response'
57- stale-issue-label: '🛑 No Response'
58- close-issue-label: '🕸️ Inactive'
59- exempt-issue-labels: '📌 Keep Open'
60- exempt-pr-labels: '📌 Keep Open'
61-
62- # Comment on issues that we should have replied to
63- - name: Notify Repo Owner to Respond
64- uses: actions/stale@v4
65- with:
66- repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
67- days-before-stale: 7
68- days-before-close: 183
69- operations-per-run: 30
70- remove-stale-when-updated: true
71- stale-issue-message: Hey SillyTavern, - Don't forget to respond!
72- stale-pr-message: Hey SillyTavern, - Don't forget to respond!
73- only-labels: '👤 Awaiting Maintainer Response'
74- labels-to-remove-when-unstale: '👤 Awaiting Maintainer Response'
75- close-issue-message: 'Closed due to no response from repo author for over a year'
76- close-pr-message: 'Closed due to no response from repo author for over a year'
77- stale-issue-label: '👤 Awaiting Maintainer Response'
78- stale-pr-label: '👤 Awaiting Maintainer Response'
79- close-issue-label: '🕸️ Inactive'
80- close-pr-label: '🕸️ Inactive'
81- exempt-issue-labels: '📌 Keep Open'
82- exempt-pr-labels: '📌 Keep Open'
.github/workflows/get-pr-size.yml+0 -39
@@ -1,39 +0,0 @@
1-# Adds a comment to new PRs, showing the compressed size and size difference of new code
2-# And also labels the PR based on the number of lines changes
3-
4-name: 🌈 Check PR Size
5-on: [pull_request]
6-jobs:
7- build:
8- runs-on: ubuntu-latest
9- steps:
10- - name: Checkout
11- uses: actions/checkout@v2
12- # Find and comment with compressed size
13- - name: Get Compressed Size
14- uses: preactjs/compressed-size-action@v2
15- with:
16- repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
17- pattern: './dist/**/*.{js,css,html}'
18- strip-hash: '\\b\\w{8}\\.'
19- exclude: '**/node_modules/**'
20- minimum-change-threshold: 100
21- # Check number of lines of code added
22- - name: Label based on Lines of Code
23- uses: codelytv/pr-size-labeler@v1
24- with:
25- GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
26- xs_max_size: '10'
27- s_max_size: '100'
28- m_max_size: '500'
29- l_max_size: '1000'
30- s_label: '🟩 PR - Small'
31- m_label: '🟨 PR - Medium'
32- l_label: '🟧 PR - Large'
33- xl_label: '🟥 PR - XL'
34- fail_if_xl: 'false'
35- message_if_xl: >
36- It looks like this PR is very large (over 1000 lines).
37- Try to avoid addressing multiple issues in a single PR, and
38- in the future consider breaking large tasks down into smaller steps.
39- This it to make reviewing, testing, reverting and general quality management easier.
39 \ No newline at end of file
.github/workflows/issues-auto-manager.yml+112 -0
@@ -0,0 +1,112 @@
1+name: 🛠️ Issues Manager
2+
3+on:
4+ issues:
5+ types: [opened, edited, labeled, unlabeled]
6+ # Re also listen to comments, to remove stale labels right away
7+ issue_comment:
8+ types: [created]
9+
10+jobs:
11+ label-on-content:
12+ name: 🏷️ Label Issues by Content
13+ runs-on: ubuntu-latest
14+
15+ steps:
16+ - name: Checkout Repository
17+ # Checkout
18+ # https://github.com/marketplace/actions/checkout
19+ uses: actions/checkout@v4
20+
21+ - name: Auto-Label Issues (Based on Issue Content)
22+ # only auto label based on issue content once, on open (to prevent re-labeling removed labels)
23+ if: github.event.action == 'opened'
24+
25+ # Issue Labeler
26+ # https://github.com/marketplace/actions/regex-issue-labeler
27+ uses: github/issue-labeler@v3
28+ with:
29+ configuration-path: .github/issues-auto-labels.yml
30+ enable-versioned-regex: 0
31+ repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
32+
33+ label-on-labels:
34+ name: 🏷️ Label Issues by Labels
35+ runs-on: ubuntu-latest
36+
37+ steps:
38+ - name: ✅ Add "👍 Approved" for relevant labels
39+ if: contains(fromJSON('["👩‍💻 Good First Issue", "🙏 Help Wanted", "🪲 Confirmed", "⚠️ High Priority", "❕ Medium Priority", "💤 Low Priority"]'), github.event.label.name)
40+ # 🤖 Issues Helper
41+ # https://github.com/marketplace/actions/issues-helper
42+ uses: actions-cool/issues-helper@v3
43+ with:
44+ actions: 'add-labels'
45+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
46+ labels: '👍 Approved'
47+
48+ - name: ❌ Remove progress labels when issue is marked done or stale
49+ if: contains(fromJSON('["✅ Done", "✅ Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)
50+ # 🤖 Issues Helper
51+ # https://github.com/marketplace/actions/issues-helper
52+ uses: actions-cool/issues-helper@v3
53+ with:
54+ actions: 'remove-labels'
55+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
56+ labels: '🧑‍💻 In Progress,🤔 Unsure,🤔 Under Consideration'
57+
58+ - name: ❌ Remove temporary labels when confirmed labels are added
59+ if: contains(fromJSON('["❌ wontfix","👍 Approved","👩‍💻 Good First Issue"]'), github.event.label.name)
60+ # 🤖 Issues Helper
61+ # https://github.com/marketplace/actions/issues-helper
62+ uses: actions-cool/issues-helper@v3
63+ with:
64+ actions: 'remove-labels'
65+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
66+ labels: '🤔 Unsure,🤔 Under Consideration'
67+
68+ - name: ❌ Remove no bug labels when "🪲 Confirmed" is added
69+ if: github.event.label.name == '🪲 Confirmed'
70+ # 🤖 Issues Helper
71+ # https://github.com/marketplace/actions/issues-helper
72+ uses: actions-cool/issues-helper@v3
73+ with:
74+ actions: 'remove-labels'
75+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
76+ labels: '✖️ Not Reproducible,✖️ Not A Bug'
77+
78+ remove-stale-label:
79+ name: 🗑️ Remove Stale Label on Comment
80+ runs-on: ubuntu-latest
81+ # Only run this on new comments, to automatically remove the stale label
82+ if: github.event_name == 'issue_comment' && github.actor != 'github-actions[bot]'
83+
84+ steps:
85+ - name: Remove Stale Label
86+ # 🤖 Issues Helper
87+ # https://github.com/marketplace/actions/issues-helper
88+ uses: actions-cool/issues-helper@v3
89+ with:
90+ actions: 'remove-labels'
91+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
92+ issue-number: ${{ github.event.issue.number }}
93+ labels: '⚰️ Stale,🕸️ Inactive,🚏 Awaiting User Response,🛑 No Response'
94+
95+ write-auto-comments:
96+ name: 💬 Post Issue Comments Based on Labels
97+ needs: [label-on-content, label-on-labels]
98+ runs-on: ubuntu-latest
99+
100+ steps:
101+ - name: Checkout Repository
102+ # Checkout
103+ # https://github.com/marketplace/actions/checkout
104+ uses: actions/checkout@v4
105+
106+ - name: Post Issue Comments Based on Labels
107+ # Label Commenter
108+ # https://github.com/marketplace/actions/label-commenter
109+ uses: peaceiris/actions-label-commenter@v1
110+ with:
111+ config_file: .github/issues-auto-comments.yml
112+ github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
.github/workflows/issues-updates-on-merge.yml+41 -0
@@ -0,0 +1,41 @@
1+name: 🔄 Update Issues on Push
2+
3+on:
4+ push:
5+ branches:
6+ - staging
7+ - release
8+
9+jobs:
10+ # This runs commits to staging/release, reading the commit messages. Check `pr-auto-manager.yml`:`update-linked-issues` for PR-linked updates.
11+ update-linked-issues:
12+ name: 🔗 Mark Linked Issues Done on Push
13+ runs-on: ubuntu-latest
14+
15+ steps:
16+ - name: Checkout Repository
17+ # Checkout
18+ # https://github.com/marketplace/actions/checkout
19+ uses: actions/checkout@v4
20+
21+ - name: Extract Linked Issues from Commit Message
22+ id: extract_issues
23+ run: |
24+ ISSUES=$(git log -1 --pretty=%B | grep -oiE '(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) #([0-9]+)' | awk '{print $2}' | tr -d '#' | jq -R -s -c 'split("\n")[:-1]')
25+ echo "issues=$ISSUES" >> $GITHUB_ENV
26+
27+ - name: Label Linked Issues
28+ id: label_linked_issues
29+ env:
30+ GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
31+ run: |
32+ for ISSUE in $(echo $issues | jq -r '.[]'); do
33+ if [ "${{ github.ref }}" == "refs/heads/staging" ]; then
34+ LABEL="✅ Done (staging)"
35+ gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL"
36+ elif [ "${{ github.ref }}" == "refs/heads/release" ]; then
37+ LABEL="✅ Done"
38+ gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL"
39+ fi
40+ echo "Added label '$LABEL' to issue #$ISSUE"
41+ done
.github/workflows/job-close-stale.yml+95 -0
@@ -0,0 +1,95 @@
1+name: 🕒 Close Stale Issues/PRs Workflow
2+
3+on:
4+ # Run the workflow every day
5+ workflow_dispatch:
6+ schedule:
7+ - cron: '0 0 * * *' # Runs every day at midnight UTC
8+
9+jobs:
10+ mark-inactivity:
11+ name: ⏳ Mark Issues/PRs without Activity
12+ runs-on: ubuntu-latest
13+
14+ steps:
15+ - name: Mark Issues/PRs without Activity
16+ # Close Stale Issues and PRs
17+ # https://github.com/marketplace/actions/close-stale-issues
18+ uses: actions/stale@v9
19+ with:
20+ repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
21+ days-before-stale: 183
22+ days-before-close: 7
23+ operations-per-run: 30
24+ remove-stale-when-updated: true
25+ enable-statistics: true
26+ stale-issue-message: >
27+ ⏳ This issue has been inactive for 6 months. If it's still relevant, drop a comment below to keep it open.
28+ Otherwise, it will be auto-closed in 7 days.
29+ stale-pr-message: >
30+ ⏳ This PR has been inactive for 6 months. If it's still relevant, update it or remove the stale label.
31+ Otherwise, it will be auto-closed in 7 days.
32+ close-issue-message: >
33+ 🔒 This issue was auto-closed due to inactivity for over 6 months.
34+ close-pr-message: >
35+ 🔒 This PR was auto-closed due to inactivity for over 6 months.
36+ stale-issue-label: '⚰️ Stale'
37+ close-issue-label: '🕸️ Inactive'
38+ stale-pr-label: '⚰️ Stale'
39+ close-pr-label: '🕸️ Inactive'
40+ exempt-issue-labels: '📌 Keep Open'
41+ exempt-pr-labels: '📌 Keep Open'
42+
43+ await-user-response:
44+ name: ⚠️ Mark Issues/PRs Awaiting User Response
45+ runs-on: ubuntu-latest
46+ needs: mark-inactivity
47+
48+ steps:
49+ - name: Mark Issues/PRs Awaiting User Response
50+ # Close Stale Issues and PRs
51+ # https://github.com/marketplace/actions/close-stale-issues
52+ uses: actions/stale@v9
53+ with:
54+ repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
55+ days-before-stale: 7
56+ days-before-close: 7
57+ operations-per-run: 30
58+ remove-stale-when-updated: true
59+ stale-issue-message: >
60+ ⚠️ Hey! We need some more info to move forward with this issue.
61+ Please provide the requested details in the next few days to keep this ticket open.
62+ close-issue-message: >
63+ 🔒 This issue was auto-closed due to no response from user.
64+ only-labels: '🚏 Awaiting User Response'
65+ labels-to-remove-when-unstale: '🚏 Awaiting User Response'
66+ stale-issue-label: '🛑 No Response'
67+ close-issue-label: '🕸️ Inactive'
68+ exempt-issue-labels: '🚧 Alternative Exists'
69+
70+ alternative-exists:
71+ name: 🔄 Mark Issues with Alternative Exists
72+ runs-on: ubuntu-latest
73+ needs: await-user-response
74+
75+ steps:
76+ - name: Mark Issues with Alternative Exists
77+ # Close Stale Issues and PRs
78+ # https://github.com/marketplace/actions/close-stale-issues
79+ uses: actions/stale@v9
80+ with:
81+ repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
82+ days-before-stale: 7
83+ days-before-close: 7
84+ operations-per-run: 30
85+ remove-stale-when-updated: true
86+ stale-issue-message: >
87+ 🔄 An alternative solution has been provided for this issue.
88+ Did this solve your problem? If so, we'll go ahead and close it.
89+ If you still need help, drop a comment within the next 7 days to keep this open.
90+ close-issue-message: >
91+ ✅ Closing this issue due to no confirmation on the alternative solution.
92+ only-labels: '🚧 Alternative Exists'
93+ stale-issue-label: '🚏 Awaiting User Response'
94+ close-issue-label: '🕸️ Inactive'
95+ exempt-issue-labels: '📌 Keep Open'
.github/workflows/labeler.yml+0 -19
@@ -1,19 +0,0 @@
1-name: "Issue Labeler"
2-on:
3- issues:
4- types: [opened, edited]
5-
6-permissions:
7- issues: write
8- contents: read
9-
10-jobs:
11- triage:
12- runs-on: ubuntu-latest
13- steps:
14- - uses: github/issue-labeler@v3.4
15- with:
16- configuration-path: .github/labeler.yml
17-# not-before: 2020-01-15T02:54:32Z # optional and will result in any issues prior to this timestamp to be ignored.
18- enable-versioned-regex: 0
19- repo-token: ${{ github.token }}
19 \ No newline at end of file
.github/workflows/manage-pending-labels-closed.yml+0 -17
@@ -1,17 +0,0 @@
1-# When a new comment is added to an issue, if it had the Stale or Awaiting User Response labels, then those labels will be removed
2-
3-name: 🎯 Remove Pending Labels on Close
4-on:
5- issues:
6- types: [closed]
7-jobs:
8- remove-labels:
9- runs-on: ubuntu-latest
10- steps:
11- - name: Remove Labels when Closed
12- uses: actions-cool/issues-helper@v2
13- with:
14- actions: remove-labels
15- token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
16- issue-number: ${{ github.event.issue.number }}
17- labels: '🚏 Awaiting User Response,⚰️ Stale,👤 Awaiting Maintainer Response'
17 \ No newline at end of file
.github/workflows/manage-pending-labels.yml+0 -42
@@ -1,42 +0,0 @@
1-# When a new comment is added to an issue, if it had the Stale or Awaiting User Response labels, then those labels will be removed
2-
3-name: 🎯 Add/ Remove Awaiting Response Labels
4-on:
5- issue_comment:
6- types: [created]
7-jobs:
8- remove-stale:
9- runs-on: ubuntu-latest
10- if: ${{ github.event.comment.author_association != 'COLLABORATOR' && github.event.comment.author_association != 'OWNER' }}
11- steps:
12- - name: Remove Stale labels when Updated
13- uses: actions-cool/issues-helper@v2
14- with:
15- actions: remove-labels
16- token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
17- issue-number: ${{ github.event.issue.number }}
18- labels: '🚏 Awaiting User Response,⚰️ Stale'
19-
20- add-awaiting-author:
21- runs-on: ubuntu-latest
22- if: ${{!github.event.issue.pull_request && github.event.comment.author_association != 'COLLABORATOR' && github.event.comment.author_association != 'OWNER' && github.event.issue.state == 'open' }}
23- steps:
24- - name: Add Awaiting Author labels when Updated
25- uses: actions-cool/issues-helper@v2
26- with:
27- actions: add-labels
28- token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
29- issue-number: ${{ github.event.issue.number }}
30- labels: '👤 Awaiting Maintainer Response'
31-
32- remove-awaiting-author:
33- runs-on: ubuntu-latest
34- if: ${{ github.event.comment.author_association == 'OWNER' }}
35- steps:
36- - name: Remove Awaiting Author labels when Updated
37- uses: actions-cool/issues-helper@v2
38- with:
39- actions: remove-labels
40- token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
41- issue-number: ${{ github.event.issue.number }}
42- labels: '👤 Awaiting Maintainer Response'
42 \ No newline at end of file
.github/workflows/on-close-handler.yml+23 -0
@@ -0,0 +1,23 @@
1+name: 🚪 Issues/PRs On Close Handler
2+
3+on:
4+ issues:
5+ types: [closed]
6+ pull_request_target:
7+ types: [closed]
8+
9+jobs:
10+ remove-labels:
11+ name: 🗑️ Remove Pending Labels on Close
12+ runs-on: ubuntu-latest
13+
14+ steps:
15+ - name: Remove Pending Labels on Close
16+ # 🤖 Issues Helper
17+ # https://github.com/marketplace/actions/issues-helper
18+ uses: actions-cool/issues-helper@v3
19+ with:
20+ actions: remove-labels
21+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
22+ issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
23+ labels: '🚏 Awaiting User Response,🧑‍💻 In Progress,📌 Keep Open,🚫 Merge Conflicts,🔬 Needs Testing,🔨 Needs Work,⚰️ Stale,⛔ Waiting For External/Upstream'
.github/workflows/on-open-handler.yml+24 -0
@@ -0,0 +1,24 @@
1+name: 📨 Issues/PRs Open Handler
2+
3+on:
4+ issues:
5+ types: [opened]
6+ pull_request_target:
7+ types: [opened]
8+
9+jobs:
10+ label-maintainer:
11+ name: 🏷️ Label if Author is a Repo Maintainer
12+ runs-on: ubuntu-latest
13+ if: contains(fromJson('["Cohee1207", "RossAscends", "Wolfsblvt"]'), github.actor)
14+
15+ steps:
16+ - name: Label if Author is a Repo Maintainer
17+ # 🤖 Issues Helper
18+ # https://github.com/marketplace/actions/issues-helper
19+ uses: actions-cool/issues-helper@v3
20+ with:
21+ actions: 'add-labels'
22+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
23+ issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
24+ labels: '👷 Maintainer'
.github/workflows/pr-auto-manager.yml+192 -0
@@ -0,0 +1,192 @@
1+name: 🔀 Pull Request Manager
2+
3+on:
4+ pull_request_target:
5+ types: [opened, synchronize, reopened, edited, labeled, unlabeled, closed]
6+ pull_request_review_comment:
7+ types: [created]
8+
9+jobs:
10+ label-by-size:
11+ name: 🏷️ Label PR by Size
12+ runs-on: ubuntu-latest
13+
14+ steps:
15+ - name: Label PR Size
16+ # Pull Request Size Labeler
17+ # https://github.com/marketplace/actions/pull-request-size-labeler
18+ uses: codelytv/pr-size-labeler@v1
19+ with:
20+ GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
21+ xs_label: '🟩 ⬤○○○○'
22+ xs_max_size: '20'
23+ s_label: '🟩 ⬤⬤○○○'
24+ s_max_size: '100'
25+ m_label: '🟨 ⬤⬤⬤○○'
26+ m_max_size: '500'
27+ l_label: '🟧 ⬤⬤⬤⬤○'
28+ l_max_size: '1000'
29+ xl_label: '🟥 ⬤⬤⬤⬤⬤'
30+ fail_if_xl: 'false'
31+ github_api_url: 'https://api.github.com'
32+ files_to_ignore: |
33+ "package-lock.json"
34+ "public/lib/*"
35+
36+ label-by-branches:
37+ name: 🏷️ Label PR by Branches
38+ runs-on: ubuntu-latest
39+ # Only label once when PR is created or branches are changed, to allow manual label removal
40+ if: github.event.action == 'opened' || (github.event.action == 'synchronize' && (github.event.changes.base || github.event.changes.head))
41+
42+ steps:
43+ - name: Checkout Repository
44+ # Checkout
45+ # https://github.com/marketplace/actions/checkout
46+ uses: actions/checkout@v4
47+
48+ - name: Apply Labels Based on Branch Name and Target Branch
49+ # Pull Request Labeler
50+ # https://github.com/marketplace/actions/labeler
51+ uses: actions/labeler@v5
52+ with:
53+ configuration-path: .github/pr-auto-labels-by-branch.yml
54+ repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
55+
56+ label-by-files:
57+ name: 🏷️ Label PR by Files
58+ runs-on: ubuntu-latest
59+
60+ steps:
61+ - name: Checkout Repository
62+ # Checkout
63+ # https://github.com/marketplace/actions/checkout
64+ uses: actions/checkout@v4
65+
66+ - name: Apply Labels Based on Changed Files
67+ # Pull Request Labeler
68+ # https://github.com/marketplace/actions/labeler
69+ uses: actions/labeler@v5
70+ with:
71+ configuration-path: .github/pr-auto-labels-by-files.yml
72+ repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
73+
74+ remove-stale-label:
75+ name: 🗑️ Remove Stale Label on Comment
76+ runs-on: ubuntu-latest
77+ # Only runs when this is not done by the github actions bot
78+ if: github.actor != 'github-actions[bot]'
79+
80+ steps:
81+ - name: Remove Stale Label
82+ # 🤖 Issues Helper
83+ # https://github.com/marketplace/actions/issues-helper
84+ uses: actions-cool/issues-helper@v3
85+ with:
86+ actions: 'remove-labels'
87+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
88+ issue-number: ${{ github.event.pull_request.number }}
89+ labels: '⚰️ Stale'
90+
91+ check-merge-blocking-labels:
92+ name: 🚫 Check Merge Blocking Labels
93+ needs: [label-by-branches, label-by-files]
94+ runs-on: ubuntu-latest
95+ # Run, even if the previous jobs were skipped/failed
96+ if: always()
97+
98+ steps:
99+ - name: Check Merge Blocking
100+ # GitHub Script
101+ # https://github.com/marketplace/actions/github-scriptLabels
102+ id: label-check
103+ uses: actions/github-script@v7
104+ with:
105+ script: |
106+ const prLabels = context.payload.pull_request.labels.map(label => label.name);
107+ const blockingLabels = [
108+ "⛔ Don't Merge",
109+ "🔨 Needs Work",
110+ "🔬 Needs Testing",
111+ "⛔ Waiting For External/Upstream",
112+ "❗ Against Release Branch",
113+ "💥💣 Breaking Changes"
114+ ];
115+ const hasBlockingLabel = prLabels.some(label => blockingLabels.includes(label));
116+
117+ if (hasBlockingLabel) {
118+ console.log("Blocking label detected. Setting warning status.");
119+ await github.rest.checks.create({
120+ owner: context.repo.owner,
121+ repo: context.repo.repo,
122+ name: "PR Label Warning",
123+ head_sha: context.payload.pull_request.head.sha,
124+ status: "completed",
125+ conclusion: "neutral",
126+ output: {
127+ title: "Potential Merge Issue",
128+ summary: "This PR has a merge-blocking label. Proceed with caution."
129+ }
130+ });
131+ } else {
132+ console.log("No merge-blocking labels found.");
133+ }
134+
135+ write-auto-comments:
136+ name: 💬 Post PR Comments Based on Labels
137+ needs: [label-by-size, label-by-branches, label-by-files]
138+ runs-on: ubuntu-latest
139+ # Run, even if the previous jobs were skipped/failed
140+ if: always()
141+
142+ steps:
143+ - name: Checkout Repository
144+ # Checkout
145+ # https://github.com/marketplace/actions/checkout
146+ uses: actions/checkout@v4
147+
148+ - name: Post PR Comments Based on Labels
149+ # Label Commenter for PRs
150+ # https://github.com/marketplace/actions/label-commenter
151+ uses: peaceiris/actions-label-commenter@v1
152+ with:
153+ config_file: .github/pr-auto-comments.yml
154+ github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
155+
156+ # This runs on merged PRs to staging, reading the PR body and directly linked issues. Check `issues-updates-on-merge.yml`:`update-linked-issues` for commit-based updates.
157+ update-linked-issues:
158+ name: 🔗 Mark Linked Issues Done on Staging Merge
159+ runs-on: ubuntu-latest
160+ if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'staging'
161+
162+ steps:
163+ - name: Extract Linked Issues From PR Description
164+ id: extract_issues
165+ run: |
166+ ISSUES=$(jq -r '.pull_request.body' "$GITHUB_EVENT_PATH" | grep -oiE '(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) #([0-9]+)' | awk '{print $2}' | tr -d '#' | jq -R -s -c 'split("\n")[:-1]')
167+ echo "issues=$ISSUES" >> $GITHUB_ENV
168+
169+ - name: Fetch Directly Linked Issues
170+ id: fetch_linked_issues
171+ run: |
172+ PR_NUMBER=${{ github.event.pull_request.number }}
173+ REPO=${{ github.repository }}
174+ API_URL="https://api.github.com/repos/$REPO/pulls/$PR_NUMBER/issues"
175+ ISSUES=$(curl -s -H "Authorization: token ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}" "$API_URL" | jq -r '.[].number' | jq -R -s -c 'split("\n")[:-1]')
176+ echo "linked_issues=$ISSUES" >> $GITHUB_ENV
177+
178+ - name: Merge Issue Lists
179+ id: merge_issues
180+ run: |
181+ ISSUES=$(jq -c -n --argjson a "$issues" --argjson b "$linked_issues" '$a + $b | unique')
182+ echo "final_issues=$ISSUES" >> $GITHUB_ENV
183+
184+ - name: Label Linked Issues
185+ id: label_linked_issues
186+ env:
187+ GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
188+ run: |
189+ for ISSUE in $(echo $final_issues | jq -r '.[]'); do
190+ gh issue edit $ISSUE -R ${{ github.repository }} --add-label "✅ Done (staging)"
191+ echo "Added label '✅ Done (staging)' to issue #$ISSUE"
192+ done
.github/workflows/pr-check-merge-conflicts.yaml+24 -0
@@ -0,0 +1,24 @@
1+name: ⚔️ Check Merge Conflicts
2+
3+on:
4+ # So that PRs touching the same files as the push are updated
5+ push:
6+ # So that the `dirtyLabel` is removed if conflicts are resolved
7+ pull_request_target:
8+ types: [synchronize]
9+
10+jobs:
11+ check-merge-conflicts:
12+ name: ⚔️ Check Merge Conflicts
13+ runs-on: ubuntu-latest
14+
15+ steps:
16+ - name: Check Merge Conflicts
17+ # Label Conflicting Pull Requests
18+ # https://github.com/marketplace/actions/label-conflicting-pull-requests
19+ uses: eps1lon/actions-label-merge-conflict@v3
20+ with:
21+ dirtyLabel: '🚫 Merge Conflicts'
22+ repoToken: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
23+ commentOnDirty: >
24+ ⚠️ This PR has conflicts that need to be resolved before it can be merged.
Dockerfile+1 -1
@@ -4,7 +4,7 @@ FROM node:lts-alpine3.19
44ARG APP_HOME=/home/node/app
55
66# Install system dependencies
77RUN apk add --no-cache gcompat tini git
88
99# Create app directory
1010WORKDIR ${APP_HOME}
default/config.yaml+27 -6
@@ -1,8 +1,6 @@
11# -- DATA CONFIGURATION --
22# Root directory for user data storage
33dataRoot: ./data
4-# The maximum amount of memory that parsed character cards can use in MB
5-cardsCacheCapacity: 100
64# -- SERVER CONFIGURATION --
75# Listen for incoming connections
86listen: false
@@ -28,6 +26,11 @@ port: 8000
2826# - Use -1 to use the server port.
2927# - Specify a port to override the default.
3028autorunPortOverride: -1
29+# -- SSL options --
30+ssl:
31+ enabled: false
32+ certPath: "./certs/cert.pem"
33+ keyPath: "./certs/privkey.pem"
3134# -- SECURITY CONFIGURATION --
3235# Toggle whitelist mode
3336whitelistMode: true
@@ -37,6 +40,8 @@ enableForwardedWhitelist: true
3740whitelist:
3841 - ::1
3942 - 127.0.0.1
43+# Automatically whitelist Docker host and gateway IPs
44+whitelistDockerHosts: true
4045# Toggle basic authentication for endpoints
4146basicAuthMode: false
4247# Basic authentication credentials
@@ -71,20 +76,28 @@ autheliaAuth: false
7176# the username and passwords for basic auth are the same as those
7277# for the individual accounts
7378perUserBasicAuth: false
74-# Minimum log level to display in the terminal (DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3)
75-minLogLevel: 0
7679
7780# User session timeout *in seconds* (defaults to 24 hours).
7881## Set to a positive number to expire session after a certain time of inactivity
7982## Set to 0 to expire session when the browser is closed
8083## Set to a negative number to disable session expiration
8184sessionTimeout: -1
82-# Used to sign session cookies. Will be auto-generated if not set
83-cookieSecret: ''
8485# Disable CSRF protection - NOT RECOMMENDED
8586disableCsrfProtection: false
8687# Disable startup security checks - NOT RECOMMENDED
8788securityOverride: 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
88101# -- ADVANCED CONFIGURATION --
89102# Open the browser automatically
90103autorun: true
@@ -120,6 +133,14 @@ thumbnails:
120133 # Maximum thumbnail dimensions per type [width, height]
121134 dimensions: { 'bg': [160, 90], 'avatar': [96, 144] }
122135
136+# PERFORMANCE-RELATED CONFIGURATION
137+performance:
138+ # Enables lazy loading of character cards. Improves performances with large card libraries.
139+ # May have compatibility issues with some extensions.
140+ lazyLoadCharacters: false
141+ # The maximum amount of memory that parsed character cards can use. Set to 0 to disable memory caching.
142+ memoryCacheCapacity: '100mb'
143+
123144# Allow secret keys exposure via API
124145allowKeysExposure: false
125146# Skip new default content checks
default/content/presets/openai/Default.json+1 -2
@@ -28,12 +28,11 @@
2828 "wrap_in_quotes": false,
2929 "names_behavior": 0,
3030 "send_if_empty": "",
31- "jailbreak_system": false,
3231 "impersonation_prompt": "[Write your next reply from the point of view of {{user}}, using the chat history so far as a guideline for the writing style of {{user}}. Don't write as {{char}} or system. Don't describe actions of {{char}}.]",
3332 "new_chat_prompt": "[Start a new Chat]",
3433 "new_group_chat_prompt": "[Start a new group chat. Group members: {{group}}]",
3534 "new_example_chat_prompt": "[Example Chat]",
36- "continue_nudge_prompt": "[Continue the following message. Do not include ANY parts of the original message. Use capitalization and punctuation as if your reply is a part of the original message: {{lastChatMessage}}]",
35+ "continue_nudge_prompt": "[Continue your last message without repeating its original content.]",
3736 "bias_preset_selected": "Default (none)",
3837 "reverse_proxy": "",
3938 "proxy_password": "",
default/content/settings.json+1 -2
@@ -593,7 +593,7 @@
593593 "new_chat_prompt": "[Start a new Chat]",
594594 "new_group_chat_prompt": "[Start a new group chat. Group members: {{group}}]",
595595 "new_example_chat_prompt": "[Example Chat]",
596- "continue_nudge_prompt": "[Continue the following message. Do not include ANY parts of the original message. Use capitalization and punctuation as if your reply is a part of the original message: {{lastChatMessage}}]",
596+ "continue_nudge_prompt": "[Continue your last message without repeating its original content.]",
597597 "bias_preset_selected": "Default (none)",
598598 "bias_presets": {
599599 "Default (none)": [],
@@ -626,7 +626,6 @@
626626 "ai21_model": "jamba-1.5-large",
627627 "windowai_model": "",
628628 "openrouter_model": "OR_Website",
629- "jailbreak_system": true,
630629 "reverse_proxy": "",
631630 "chat_completion_source": "openai",
632631 "max_context_unlocked": false,
docker/build-lib.js+1 -1
@@ -1,4 +1,4 @@
11import getWebpackServeMiddleware from '../src/middleware/webpack-serve.js';
22
33const middleware = getWebpackServeMiddleware();
44await middleware.runWebpackCompiler({ forceDist: true });
docker/docker-compose.yml+3 -1
@@ -1,10 +1,12 @@
1-version: "3"
21services:
32 sillytavern:
43 build: ..
54 container_name: sillytavern
65 hostname: sillytavern
76 image: ghcr.io/sillytavern/sillytavern:latest
7+ environment:
8+ - NODE_ENV=production
9+ - FORCE_COLOR=1
810 ports:
911 - "8000:8000"
1012 volumes:
docker/docker-entrypoint.sh+3 -0
@@ -5,5 +5,8 @@ if [ ! -e "config/config.yaml" ]; then
55 cp -r "default/config.yaml" "config/config.yaml"
66fi
77
8+# Execute postinstall to auto-populate config.yaml with missing values
9+npm run postinstall
10+
811# Start the server
912exec node server.js --listen "$@"
index.d.ts+36 -2
@@ -1,7 +1,36 @@
11import { UserDirectoryList, UserEventEmitter } from "./src/users"'node:events';
22import { CsrfSyncedToken } from "'csrf-sync"';
3+import { UserDirectoryList, User } from './src/users.js';
4+import { CommandLineArguments } from './src/command-line.js';
5+import { EVENT_NAMES } from './src/server-events.js';
6+
7+/**
8+ * Event payload for SERVER_STARTED event.
9+ */
10+export interface ServerStartedEvent {
11+ /**
12+ * The URL the server is listening on.
13+ */
14+ url: URL;
15+}
16+
17+/**
18+ * Map of all server events to their payload types.
19+ */
20+export interface ServerEventMap {
21+ [EVENT_NAMES.SERVER_STARTED]: [ServerStartedEvent];
22+}
323
424declare global {
25+ declare namespace NodeJS {
26+ export interface Process {
27+ /**
28+ * A global instance of the server events emitter.
29+ */
30+ serverEvents: EventEmitter<ServerEventMap>;
31+ }
32+ }
33+
534 declare namespace CookieSessionInterfaces {
635 export interface CookieSessionObject {
736 /**
@@ -32,4 +61,9 @@ declare global {
3261 * The root directory for user data.
3362 */
3463 var DATA_ROOT: string;
64+
65+ /**
66+ * Parsed command line arguments.
67+ */
68+ var COMMAND_LINE_ARGS: CommandLineArguments;
3569}
package-lock.json+640 -477
@@ -1,28 +1,30 @@
11{
22 "name": "sillytavern",
33 "version": "1.12.1213",
44 "lockfileVersion": 3,
55 "requires": true,
66 "packages": {
77 "": {
88 "name": "sillytavern",
99 "version": "1.12.1213",
1010 "hasInstallScript": true,
1111 "license": "AGPL-3.0",
1212 "dependencies": {
1313 "@adobe/css-tools": "^4.4.02",
1414 "@agnai/sentencepiece-js": "^1.1.1",
1515 "@agnai/web-tokenizers": "^0.1.3",
1616 "@iconfu/svg-inject": "^1.2.3",
1717 "@mozilla/readability": "^0.56.0",
1818 "@popperjs/core": "^2.11.8",
1919 "@zeldafan0225/ai_horde": "^5.12.0",
2020 "archiver": "^7.0.1",
2121 "bing-translate-api": "^4.0.2",
2222 "body-parser": "^1.20.2",
2323 "bowser": "^2.11.0",
24+ "bytes": "^3.1.2",
25+ "chalk": "^5.4.1",
2426 "command-exists": "^1.2.9",
2527 "compression": "^1.8.0",
2628 "cookie-parser": "^1.4.6",
2729 "cookie-session": "^2.1.0",
2830 "cors": "^2.8.5",
@@ -31,18 +33,19 @@
3133 "dompurify": "^3.2.4",
3234 "droll": "^0.2.1",
3335 "express": "^4.21.0",
3436 "form-data": "^4.0.02",
3537 "fuse.js": "^7.01.0",
3638 "google-translate-api-browser": "^3.0.1",
3739 "google-translate-api-x": "^10.7.12",
3840 "handlebars": "^4.7.8",
3941 "helmet": "^7.12.0",
4042 "highlight.js": "^11.1011.01",
4143 "html-entities": "^2.5.2",
4244 "iconv-lite": "^0.6.3",
4345 "ip-matching": "^2.1.2",
4446 "ip-regex": "^5.0.0",
4547 "ipaddr.js": "^2.02.10",
48+ "is-docker": "^3.0.0",
4649 "jimp": "^0.22.10",
4750 "localforage": "^1.10.0",
4851 "lodash": "^4.17.21",
@@ -51,28 +54,28 @@
5154 "morphdom": "^2.7.4",
5255 "multer": "^1.4.5-lts.1",
5356 "node-fetch": "^3.3.2",
5457 "node-persist": "^4.0.14",
5558 "open": "^8.4.2",
5659 "png-chunk-text": "^1.0.0",
5760 "png-chunks-encode": "^1.0.0",
5861 "png-chunks-extract": "^1.0.0",
5962 "proxy-agent": "^6.45.0",
6063 "rate-limiter-flexible": "^5.0.05",
6164 "response-time": "^2.3.23",
6265 "sanitize-filename": "^1.6.3",
6366 "seedrandom": "^3.0.5",
6467 "showdown": "^2.1.0",
6568 "sillytavern-transformers": "2.14.6",
6669 "simple-git": "^3.1927.10",
6770 "slidetoggle": "^4.0.0",
6871 "tiktoken": "^1.0.1620",
6972 "url-join": "^5.0.0",
7073 "vectra": "^0.2.2",
7174 "wavefile": "^11.0.0",
7275 "webpack": "^5.9598.0",
7376 "write-file-atomic": "^5.0.1",
7477 "ws": "^8.1718.1",
7578 "yaml": "^2.37.40",
7679 "yargs": "^17.7.1",
7780 "yauzl": "^2.10.0"
7881 },
@@ -80,23 +83,23 @@
8083 "sillytavern": "server.js"
8184 },
8285 "devDependencies": {
8386 "@types/archiver": "^6.0.23",
87+ "@types/bytes": "^3.1.5",
8488 "@types/command-exists": "^1.2.3",
8589 "@types/compression": "^1.7.5",
8690 "@types/cookie-parser": "^1.4.78",
8791 "@types/cookie-session": "^2.0.49",
8892 "@types/cors": "^2.8.17",
8993 "@types/deno": "^2.02.0",
90- "@types/dompurify": "^3.2.0",
9194 "@types/express": "^4.17.21",
9295 "@types/jquery": "^3.5.2932",
9396 "@types/jquery-cropper": "^1.0.4",
9497 "@types/jquery.transit": "^0.9.33",
9598 "@types/jqueryui": "^1.12.2324",
9699 "@types/lodash": "^4.17.1016",
97100 "@types/mime-types": "^2.1.4",
98101 "@types/multer": "^1.4.12",
99102 "@types/node": "^18.19.5580",
100103 "@types/node-persist": "^3.1.8",
101104 "@types/png-chunk-text": "^1.0.3",
102105 "@types/png-chunks-encode": "^1.0.2",
@@ -107,7 +110,7 @@
107110 "@types/write-file-atomic": "^4.0.3",
108111 "@types/yargs": "^17.0.33",
109112 "@types/yauzl": "^2.10.3",
110113 "eslint": "^8.57.01"
111114 },
112115 "engines": {
113116 "node": ">= 18"
@@ -124,9 +127,9 @@
124127 }
125128 },
126129 "node_modules/@adobe/css-tools": {
127130 "version": "4.4.02",
128131 "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.02.tgz",
129132 "integrity": "sha512-Ff9baYZExFpsdkBNuvGKTKWCwKH57HRZLVtycZS05WTQNVOiXVSeAki3nU35zlRbToeMW8aHlJfyS+ksdQQB3rMncgqDK78uLznstjyfIf2Arnh22pW8kBpLs6rpKDwgnZT46hin5Hl1WzazzK64DOrhSwYpS7bQ1C4BOv27q0A==",
130133 "license": "MIT"
131134 },
132135 "node_modules/@agnai/sentencepiece-js": {
@@ -220,9 +223,9 @@
220223 "license": "MIT"
221224 },
222225 "node_modules/@eslint/js": {
223226 "version": "8.57.01",
224227 "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.01.tgz",
225228 "integrity": "sha512-Ysd9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",
226229 "dev": true,
227230 "license": "MIT",
228231 "engines": {
@@ -239,14 +242,14 @@
239242 }
240243 },
241244 "node_modules/@humanwhocodes/config-array": {
242245 "version": "0.1113.140",
243246 "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.1113.140.tgz",
244247 "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSgDZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",
245248 "deprecated": "Use @eslint/config-array instead",
246249 "dev": true,
247250 "license": "Apache-2.0",
248251 "dependencies": {
249252 "@humanwhocodes/object-schema": "^2.0.23",
250253 "debug": "^4.3.1",
251254 "minimatch": "^3.0.5"
252255 },
@@ -255,13 +258,13 @@
255258 }
256259 },
257260 "node_modules/@humanwhocodes/config-array/node_modules/debug": {
258261 "version": "4.34.60",
259262 "resolved": "https://registry.npmjs.org/debug/-/debug-4.34.60.tgz",
260263 "integrity": "sha512-O6WTZ/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1AIxCY/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIgT6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
261264 "dev": true,
262265 "license": "MIT",
263266 "dependencies": {
264267 "ms": "^2.1.23"
265268 },
266269 "engines": {
267270 "node": ">=6.0"
@@ -273,9 +276,9 @@
273276 }
274277 },
275278 "node_modules/@humanwhocodes/config-array/node_modules/ms": {
276279 "version": "2.1.23",
277280 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.23.tgz",
278281 "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk6FlzubTLZG3J2a/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2wNVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
279282 "dev": true,
280283 "license": "MIT"
281284 },
@@ -816,9 +819,9 @@
816819 }
817820 },
818821 "node_modules/@jridgewell/gen-mapping": {
819822 "version": "0.3.58",
820823 "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.58.tgz",
821824 "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7imAbBGkb+OKnq0qlz/GaQgebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==",
822825 "license": "MIT",
823826 "dependencies": {
824827 "@jridgewell/set-array": "^1.2.1",
@@ -912,9 +915,9 @@
912915 "license": "MIT"
913916 },
914917 "node_modules/@mozilla/readability": {
915918 "version": "0.56.0",
916919 "resolved": "https://registry.npmjs.org/@mozilla/readability/-/readability-0.56.0.tgz",
917920 "integrity": "sha512-Z+CZ3QaosfFaTqvhQsIktyGrjFjSC0Fa4EMph4mqKnWhmyoGICsVjuG5VWh4qAivzTAeMzvY9xs9HY5rAcr2E4I7tiSSCokRFi7XIZCAu92ZkSTsIj1OPceCifL3cpfteP3pDT9/8QK+8HpXut6zV7zwfWwqDmEjtk1Qf6EgQQQ==",
918921 "license": "Apache-2.0",
919922 "engines": {
920923 "node": ">=14.0.0"
@@ -1084,9 +1087,9 @@
10841087 "license": "MIT"
10851088 },
10861089 "node_modules/@types/archiver": {
10871090 "version": "6.0.23",
10881091 "resolved": "https://registry.npmjs.org/@types/archiver/-/archiver-6.0.23.tgz",
10891092 "integrity": "sha512-KmROQqbQzKGuaAbmKa6wUll6k3zX6qs5KlxIggs1P1JcYJaTCx2gnlr+ZcytkJ51f0S1yd2DoaEwoIK10HmBaLnZwWneBz+YqDa7NmbXjmtC5YBLSyQYo21YaUnQ3HbaPFKL1ooo6RQ6OPYPIDyxfpDDXwJBm0dwcZu0zECBcQ==",
10901093 "dev": true,
10911094 "license": "MIT",
10921095 "dependencies": {
@@ -1104,6 +1107,13 @@
11041107 "@types/node": "*"
11051108 }
11061109 },
1110+ "node_modules/@types/bytes": {
1111+ "version": "3.1.5",
1112+ "resolved": "https://registry.npmjs.org/@types/bytes/-/bytes-3.1.5.tgz",
1113+ "integrity": "sha512-VgZkrJckypj85YxEsEavcMmmSOIzkUHqWmM4CCyia5dc54YwsXzJ5uT4fYxBQNEXx+oF1krlhgCbvfubXqZYsQ==",
1114+ "dev": true,
1115+ "license": "MIT"
1116+ },
11071117 "node_modules/@types/cacheable-request": {
11081118 "version": "6.0.3",
11091119 "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz",
@@ -1144,12 +1154,12 @@
11441154 }
11451155 },
11461156 "node_modules/@types/cookie-parser": {
11471157 "version": "1.4.78",
11481158 "resolved": "https://registry.npmjs.org/@types/cookie-parser/-/cookie-parser-1.4.78.tgz",
11491159 "integrity": "sha512-Fvuyi354Zl37JqFrOJ9yQfRQkljb41l0xVphc7kg5JTjjr+uayxzIGCwYTayFKocfV7TuDYZClCdIP9ckhvAu/ixDtCB6qx2TT0FKjPLf1f3P/J1rgf6lPs64mwpLRZ0IyZ49V4BQ8vbF4Ut2C2e+WH4al3xD3ZwYwIUfnbT4NQ==",
11501160 "dev": true,
11511161 "license": "MIT",
11521162 "dependenciespeerDependencies": {
11531163 "@types/express": "*"
11541164 }
11551165 },
@@ -1175,21 +1185,30 @@
11751185 }
11761186 },
11771187 "node_modules/@types/deno": {
11781188 "version": "2.02.0",
11791189 "resolved": "https://registry.npmjs.org/@types/deno/-/deno-2.02.0.tgz",
11801190 "integrity": "sha512-O94x6M/jRVlq93kqfkl4sYR5N7ZSyoQy6fJeMArP0dvvNT4IOolfySyukuqqKhsLmSXDV4wGanqXIZ+Pz4ukzXVIbMnE/VgvpauNHsvjQ9iBVnJ3X0gAvMa2khcoFD8DSO7mQVCuiuDMPgxFihw3TlReS6JTa4hRG9nAZInpmw==",
11811191 "dev": true,
11821192 "license": "MIT"
11831193 },
11841194 "node_modules/@types/dompurifyeslint": {
11851195 "version": "39.26.01",
11861196 "resolved": "https://registry.npmjs.org/@types/dompurifyeslint/-/dompurifyeslint-39.26.01.tgz",
11871197 "integrity": "sha512-Fgg31wv9QbLDA0SpTOXO3MaxySc4DKGLi8sna4FXx2pKgId/Utjo4r3ZRPdCt4UQee8BWrWyYo2jXw63kk7/+Q5z21yifghREPJGYaEOEIACgTY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==",
1188- "deprecated": "This is a stub types definition. dompurify provides its own type definitions, so you do not need this installed.",
1198+ "license": "MIT",
11891199 "devdependencies": true,{
1200+ "@types/estree": "*",
1201+ "@types/json-schema": "*"
1202+ }
1203+ },
1204+ "node_modules/@types/eslint-scope": {
1205+ "version": "3.7.7",
1206+ "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz",
1207+ "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==",
11901208 "license": "MIT",
11911209 "dependencies": {
11921210 "dompurify@types/eslint": "*",
1211+ "@types/estree": "*"
11931212 }
11941213 },
11951214 "node_modules/@types/estree": {
@@ -1236,9 +1255,9 @@
12361255 "license": "MIT"
12371256 },
12381257 "node_modules/@types/jquery": {
12391258 "version": "3.5.3132",
12401259 "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.5.3132.tgz",
12411260 "integrity": "sha512-rf/iB+cPJ/YZfMwrb9Xbf4CkMqS02YH8zACqN1xzdxc3cO735Qe5AbSUFmyOiaWAbcpqh9Wna+FVuQbm7IaWC4y3FVYfVDxRGqmUCFjjPII0HWaP0vTPJGp6m4o13AXySCcMbWfrWtBFAKwUk0vgACvoQHpWDg2rGdHkYPLmCiQ==",
12421261 "dev": true,
12431262 "license": "MIT",
12441263 "dependencies": {
@@ -1266,9 +1285,9 @@
12661285 }
12671286 },
12681287 "node_modules/@types/jqueryui": {
12691288 "version": "1.12.2324",
12701289 "resolved": "https://registry.npmjs.org/@types/jqueryui/-/jqueryui-1.12.2324.tgz",
12711290 "integrity": "sha512-pm1yVNVI29B9IGw41anCEzA5eR2r1pYc7flqD471ZT7B0yUXIY7YNe/zq7LGpihIGXNzWyGE2sGULwzMhg4kAeOV+Q4YQSzv2AF3fNAgYcXjg988RuPkviWCt09jLe6GGK9sHM7dTqS8H7JMuUWoZQBucIBzBAgM5o/ezKUFkeg==",
12721291 "dev": true,
12731292 "license": "MIT",
12741293 "dependencies": {
@@ -1298,9 +1317,9 @@
12981317 }
12991318 },
13001319 "node_modules/@types/lodash": {
13011320 "version": "4.17.1016",
13021321 "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.1016.tgz",
13031322 "integrity": "sha512-YpS0zzoduEhuOWjAotS6A5AVCva7X4lVlYLF0FYHAY9sdraBfnatttHItlWeZdGhuEkfHX7Em5NYQAXKW+OzMNg2ZYAx8t1T+52uQFiuG27NGwzJfCX3s1GjOa7ujxZa52kjJLOr4FUxT+giF6Tgxv1e+/czV/iTtBw27WTU9g==",
13041323 "dev": true,
13051324 "license": "MIT"
13061325 },
@@ -1335,9 +1354,9 @@
13351354 }
13361355 },
13371356 "node_modules/@types/node": {
13381357 "version": "18.19.5580",
13391358 "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.5580.tgz",
13401359 "integrity": "sha512-zzw5Vw52205Zr/nmErSEkN5FLqXPuKXkEWeMwMeIvxYkeg1gTc01awpwLbfMRZXdIhwRcakd/k5d1D7RKHATGqU7y6YfX9QxZraUzUrFGqH6XzOzG196BC35ltJC4CwKlK53jmRC26LqcbIt7fnAQTu5GzlnWmzA3H6+l1u6xxQ==",
13411360 "license": "MIT",
13421361 "dependencies": {
13431362 "undici-types": "~5.26.4"
@@ -1527,148 +1546,148 @@
15271546 "license": "ISC"
15281547 },
15291548 "node_modules/@webassemblyjs/ast": {
15301549 "version": "1.1214.1",
15311550 "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.1214.1.tgz",
15321551 "integrity": "sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFKnuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWgPLwr6X1Nhw6OLme5usuBWYBvuQ==",
15331552 "license": "MIT",
15341553 "dependencies": {
15351554 "@webassemblyjs/helper-numbers": "1.1113.62",
15361555 "@webassemblyjs/helper-wasm-bytecode": "1.1113.62"
15371556 }
15381557 },
15391558 "node_modules/@webassemblyjs/floating-point-hex-parser": {
15401559 "version": "1.1113.62",
15411560 "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.1113.62.tgz",
15421561 "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS6oXyTOzbKxGH4steLbLNOu71Oj+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhwC8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==",
15431562 "license": "MIT"
15441563 },
15451564 "node_modules/@webassemblyjs/helper-api-error": {
15461565 "version": "1.1113.62",
15471566 "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.1113.62.tgz",
15481567 "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2TxgU56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/Qmas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==",
15491568 "license": "MIT"
15501569 },
15511570 "node_modules/@webassemblyjs/helper-buffer": {
15521571 "version": "1.1214.1",
15531572 "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.1214.1.tgz",
15541573 "integrity": "sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJhjyH7wtcHiKssDtFPRB+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCwiQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==",
15551574 "license": "MIT"
15561575 },
15571576 "node_modules/@webassemblyjs/helper-numbers": {
15581577 "version": "1.1113.62",
15591578 "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.1113.62.tgz",
15601579 "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3gFE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==",
15611580 "license": "MIT",
15621581 "dependencies": {
15631582 "@webassemblyjs/floating-point-hex-parser": "1.1113.62",
15641583 "@webassemblyjs/helper-api-error": "1.1113.62",
15651584 "@xtuc/long": "4.2.2"
15661585 }
15671586 },
15681587 "node_modules/@webassemblyjs/helper-wasm-bytecode": {
15691588 "version": "1.1113.62",
15701589 "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.1113.62.tgz",
15711590 "integrity": "sha512-sFFHKwcmBprO9e7Icf03QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdAWRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==",
15721591 "license": "MIT"
15731592 },
15741593 "node_modules/@webassemblyjs/helper-wasm-section": {
15751594 "version": "1.1214.1",
15761595 "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.1214.1.tgz",
15771596 "integrity": "sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5gds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==",
15781597 "license": "MIT",
15791598 "dependencies": {
15801599 "@webassemblyjs/ast": "1.1214.1",
15811600 "@webassemblyjs/helper-buffer": "1.1214.1",
15821601 "@webassemblyjs/helper-wasm-bytecode": "1.1113.62",
15831602 "@webassemblyjs/wasm-gen": "1.1214.1"
15841603 }
15851604 },
15861605 "node_modules/@webassemblyjs/ieee754": {
15871606 "version": "1.1113.62",
15881607 "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.1113.62.tgz",
15891608 "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==",
15901609 "license": "MIT",
15911610 "dependencies": {
15921611 "@xtuc/ieee754": "^1.2.0"
15931612 }
15941613 },
15951614 "node_modules/@webassemblyjs/leb128": {
15961615 "version": "1.1113.62",
15971616 "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.1113.62.tgz",
15981617 "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tuLde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ6sQw==",
15991618 "license": "Apache-2.0",
16001619 "dependencies": {
16011620 "@xtuc/long": "4.2.2"
16021621 }
16031622 },
16041623 "node_modules/@webassemblyjs/utf8": {
16051624 "version": "1.1113.62",
16061625 "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.1113.62.tgz",
16071626 "integrity": "sha512-vtXf2wTQ33NQWGjKTASY1xV5m7Hr0iPeXD9+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbofRDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/RACt12lo+R9tJk0NZQ==",
16081627 "license": "MIT"
16091628 },
16101629 "node_modules/@webassemblyjs/wasm-edit": {
16111630 "version": "1.1214.1",
16121631 "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.1214.1.tgz",
16131632 "integrity": "sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdrRNJUIQH/Q0qaMgB01+SQ1u6gJ8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==",
16141633 "license": "MIT",
16151634 "dependencies": {
16161635 "@webassemblyjs/ast": "1.1214.1",
16171636 "@webassemblyjs/helper-buffer": "1.1214.1",
16181637 "@webassemblyjs/helper-wasm-bytecode": "1.1113.62",
16191638 "@webassemblyjs/helper-wasm-section": "1.1214.1",
16201639 "@webassemblyjs/wasm-gen": "1.1214.1",
16211640 "@webassemblyjs/wasm-opt": "1.1214.1",
16221641 "@webassemblyjs/wasm-parser": "1.1214.1",
16231642 "@webassemblyjs/wast-printer": "1.1214.1"
16241643 }
16251644 },
16261645 "node_modules/@webassemblyjs/wasm-gen": {
16271646 "version": "1.1214.1",
16281647 "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.1214.1.tgz",
16291648 "integrity": "sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7wAmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==",
16301649 "license": "MIT",
16311650 "dependencies": {
16321651 "@webassemblyjs/ast": "1.1214.1",
16331652 "@webassemblyjs/helper-wasm-bytecode": "1.1113.62",
16341653 "@webassemblyjs/ieee754": "1.1113.62",
16351654 "@webassemblyjs/leb128": "1.1113.62",
16361655 "@webassemblyjs/utf8": "1.1113.62"
16371656 }
16381657 },
16391658 "node_modules/@webassemblyjs/wasm-opt": {
16401659 "version": "1.1214.1",
16411660 "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.1214.1.tgz",
16421661 "integrity": "sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfTPTcKLUNvBqnY2U6E5bdOQcSM+oVP/Q5tb2djnCjBtMocYPmrDY9NzowJjislEjwP/Su1GfxPBgC4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==",
16431662 "license": "MIT",
16441663 "dependencies": {
16451664 "@webassemblyjs/ast": "1.1214.1",
16461665 "@webassemblyjs/helper-buffer": "1.1214.1",
16471666 "@webassemblyjs/wasm-gen": "1.1214.1",
16481667 "@webassemblyjs/wasm-parser": "1.1214.1"
16491668 }
16501669 },
16511670 "node_modules/@webassemblyjs/wasm-parser": {
16521671 "version": "1.1214.1",
16531672 "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.1214.1.tgz",
16541673 "integrity": "sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2JLBl+glRGWCEqZo1WCLyAQKZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==",
16551674 "license": "MIT",
16561675 "dependencies": {
16571676 "@webassemblyjs/ast": "1.1214.1",
16581677 "@webassemblyjs/helper-api-error": "1.1113.62",
16591678 "@webassemblyjs/helper-wasm-bytecode": "1.1113.62",
16601679 "@webassemblyjs/ieee754": "1.1113.62",
16611680 "@webassemblyjs/leb128": "1.1113.62",
16621681 "@webassemblyjs/utf8": "1.1113.62"
16631682 }
16641683 },
16651684 "node_modules/@webassemblyjs/wast-printer": {
16661685 "version": "1.1214.1",
16671686 "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.1214.1.tgz",
16681687 "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeAc3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==",
16691688 "license": "MIT",
16701689 "dependencies": {
16711690 "@webassemblyjs/ast": "1.1214.1",
16721691 "@xtuc/long": "4.2.2"
16731692 }
16741693 },
@@ -1685,9 +1704,10 @@
16851704 "license": "Apache-2.0"
16861705 },
16871706 "node_modules/@zeldafan0225/ai_horde": {
16881707 "version": "5.12.0",
16891708 "resolved": "https://registry.npmjs.org/@zeldafan0225/ai_horde/-/ai_horde-5.12.0.tgz",
16901709 "integrity": "sha512-rPC0nmmFSXK808Oon0zFPA7yGSUKBXiLtMejkmKTyfAzzOHHQtIkFFwt8nTW+F87Kndl1b5ZQfZVgnTm2qf5By4M82fEH+KyHXvnkSTzOl/i2lO4ccfN2e355LzX1lBLwSirUaqW0tjAXIyD+nlATVA43SwDM0D35TpdolPj4g==",
1710+ "license": "MIT",
16911711 "dependencies": {
16921712 "@thunder04/supermap": "^3.0.2"
16931713 },
@@ -1721,9 +1741,9 @@
17211741 }
17221742 },
17231743 "node_modules/acorn": {
17241744 "version": "8.1114.20",
17251745 "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.1114.20.tgz",
17261746 "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4wcl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==",
17271747 "license": "MIT",
17281748 "bin": {
17291749 "acorn": "bin/acorn"
@@ -1732,15 +1752,6 @@
17321752 "node": ">=0.4.0"
17331753 }
17341754 },
1735- "node_modules/acorn-import-attributes": {
1736- "version": "1.9.5",
1737- "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz",
1738- "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==",
1739- "license": "MIT",
1740- "peerDependencies": {
1741- "acorn": "^8"
1742- }
1743- },
17441755 "node_modules/acorn-jsx": {
17451756 "version": "5.3.2",
17461757 "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
@@ -1752,40 +1763,14 @@
17521763 }
17531764 },
17541765 "node_modules/agent-base": {
17551766 "version": "7.1.13",
17561767 "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.13.tgz",
17571768 "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOAjRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",
17581769 "license": "MIT",
1759- "dependencies": {
1760- "debug": "^4.3.4"
1761- },
17621770 "engines": {
17631771 "node": ">= 14"
17641772 }
17651773 },
1766- "node_modules/agent-base/node_modules/debug": {
1767- "version": "4.3.7",
1768- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
1769- "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
1770- "license": "MIT",
1771- "dependencies": {
1772- "ms": "^2.1.3"
1773- },
1774- "engines": {
1775- "node": ">=6.0"
1776- },
1777- "peerDependenciesMeta": {
1778- "supports-color": {
1779- "optional": true
1780- }
1781- }
1782- },
1783- "node_modules/agent-base/node_modules/ms": {
1784- "version": "2.1.3",
1785- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1786- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
1787- "license": "MIT"
1788- },
17891774 "node_modules/agentkeepalive": {
17901775 "version": "4.5.0",
17911776 "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz",
@@ -1802,6 +1787,7 @@
18021787 "version": "6.12.6",
18031788 "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
18041789 "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
1790+ "dev": true,
18051791 "license": "MIT",
18061792 "dependencies": {
18071793 "fast-deep-equal": "^3.1.1",
@@ -1814,15 +1800,45 @@
18141800 "url": "https://github.com/sponsors/epoberezkin"
18151801 }
18161802 },
18171803 "node_modules/ajv-keywordsformats": {
18181804 "version": "32.51.21",
18191805 "resolved": "https://registry.npmjs.org/ajv-keywordsformats/-/ajv-keywordsformats-32.51.21.tgz",
18201806 "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmLWx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQWMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
18211807 "license": "MIT",
1808+ "dependencies": {
1809+ "ajv": "^8.0.0"
1810+ },
18221811 "peerDependencies": {
18231812 "ajv": "^68.90.10"
1813+ },
1814+ "peerDependenciesMeta": {
1815+ "ajv": {
1816+ "optional": true
1817+ }
18241818 }
18251819 },
1820+ "node_modules/ajv-formats/node_modules/ajv": {
1821+ "version": "8.17.1",
1822+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
1823+ "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
1824+ "license": "MIT",
1825+ "dependencies": {
1826+ "fast-deep-equal": "^3.1.3",
1827+ "fast-uri": "^3.0.1",
1828+ "json-schema-traverse": "^1.0.0",
1829+ "require-from-string": "^2.0.2"
1830+ },
1831+ "funding": {
1832+ "type": "github",
1833+ "url": "https://github.com/sponsors/epoberezkin"
1834+ }
1835+ },
1836+ "node_modules/ajv-formats/node_modules/json-schema-traverse": {
1837+ "version": "1.0.0",
1838+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
1839+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
1840+ "license": "MIT"
1841+ },
18261842 "node_modules/ansi-regex": {
18271843 "version": "5.0.1",
18281844 "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
@@ -2220,15 +2236,6 @@
22202236 "npm": "1.2.8000 || >= 1.4.16"
22212237 }
22222238 },
2223- "node_modules/body-parser/node_modules/bytes": {
2224- "version": "3.1.2",
2225- "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
2226- "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
2227- "license": "MIT",
2228- "engines": {
2229- "node": ">= 0.8"
2230- }
2231- },
22322239 "node_modules/body-parser/node_modules/iconv-lite": {
22332240 "version": "0.4.24",
22342241 "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
@@ -2356,9 +2363,9 @@
23562363 }
23572364 },
23582365 "node_modules/bytes": {
23592366 "version": "3.01.02",
23602367 "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.01.02.tgz",
23612368 "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sMNf7TyzTx6S3yRJObOAV7956r8cr2+SjgFDcwOj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
23622369 "license": "MIT",
23632370 "engines": {
23642371 "node": ">= 0.8"
@@ -2410,6 +2417,19 @@
24102417 "url": "https://github.com/sponsors/ljharb"
24112418 }
24122419 },
2420+ "node_modules/call-bind-apply-helpers": {
2421+ "version": "1.0.2",
2422+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
2423+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
2424+ "license": "MIT",
2425+ "dependencies": {
2426+ "es-errors": "^1.3.0",
2427+ "function-bind": "^1.1.2"
2428+ },
2429+ "engines": {
2430+ "node": ">= 0.4"
2431+ }
2432+ },
24132433 "node_modules/callsites": {
24142434 "version": "3.1.0",
24152435 "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
@@ -2450,17 +2470,12 @@
24502470 }
24512471 },
24522472 "node_modules/chalk": {
24532473 "version": "5.4.1.2",
24542474 "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.2.tgz",
24552475 "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+0G76SLROeyw9CpQ061i4mAU3w==",
2456- "dev": true,
24572476 "license": "MIT",
2458- "dependencies": {
2459- "ansi-styles": "^4.1.0",
2460- "supports-color": "^7.1.0"
2461- },
24622477 "engines": {
2463- "node": ">=10"
2478+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
24642479 },
24652480 "funding": {
24662481 "url": "https://github.com/chalk/chalk?sponsor=1"
@@ -2703,23 +2718,52 @@
27032718 }
27042719 },
27052720 "node_modules/compression": {
27062721 "version": "1.78.40",
27072722 "resolved": "https://registry.npmjs.org/compression/-/compression-1.78.40.tgz",
27082723 "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6tk6WLKfunuqCYD3t6AsuPGvQWaKwuLLh2/xHNcX4qE+6CUQcAoA6tvIfDNXpSqnrhwA7O53R7WVQUnt8dVAIW+x89MLrWAqpfDE8iQYHr7xTgOgGA==",
27092724 "license": "MIT",
27102725 "dependencies": {
27112726 "acceptsbytes": "~1.3.51.2",
27122727 "bytescompressible": "3~2.0.018",
2713- "compressible": "~2.0.16",
27142728 "debug": "2.6.9",
2729+ "negotiator": "~0.6.4",
27152730 "on-headers": "~1.0.2",
27162731 "safe-buffer": "5.1.2.1",
27172732 "vary": "~1.1.2"
27182733 },
27192734 "engines": {
27202735 "node": ">= 0.8.0"
27212736 }
27222737 },
2738+ "node_modules/compression/node_modules/negotiator": {
2739+ "version": "0.6.4",
2740+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz",
2741+ "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==",
2742+ "license": "MIT",
2743+ "engines": {
2744+ "node": ">= 0.6"
2745+ }
2746+ },
2747+ "node_modules/compression/node_modules/safe-buffer": {
2748+ "version": "5.2.1",
2749+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
2750+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
2751+ "funding": [
2752+ {
2753+ "type": "github",
2754+ "url": "https://github.com/sponsors/feross"
2755+ },
2756+ {
2757+ "type": "patreon",
2758+ "url": "https://www.patreon.com/feross"
2759+ },
2760+ {
2761+ "type": "consulting",
2762+ "url": "https://feross.org/support"
2763+ }
2764+ ],
2765+ "license": "MIT"
2766+ },
27232767 "node_modules/concat-map": {
27242768 "version": "0.0.1",
27252769 "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@@ -3280,6 +3324,20 @@
32803324 "node": ">=0.8.0"
32813325 }
32823326 },
3327+ "node_modules/dunder-proto": {
3328+ "version": "1.0.1",
3329+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
3330+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
3331+ "license": "MIT",
3332+ "dependencies": {
3333+ "call-bind-apply-helpers": "^1.0.1",
3334+ "es-errors": "^1.3.0",
3335+ "gopd": "^1.2.0"
3336+ },
3337+ "engines": {
3338+ "node": ">= 0.4"
3339+ }
3340+ },
32833341 "node_modules/eastasianwidth": {
32843342 "version": "0.2.0",
32853343 "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
@@ -3347,9 +3405,9 @@
33473405 }
33483406 },
33493407 "node_modules/es-define-property": {
33503408 "version": "1.0.01",
33513409 "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.01.tgz",
33523410 "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQLTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
33533411 "license": "MIT",
33543412 "dependencies": {
33553413 "get-intrinsic": "^1.2.4"
@@ -3373,6 +3431,33 @@
33733431 "integrity": "sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==",
33743432 "license": "MIT"
33753433 },
3434+ "node_modules/es-object-atoms": {
3435+ "version": "1.1.1",
3436+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
3437+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
3438+ "license": "MIT",
3439+ "dependencies": {
3440+ "es-errors": "^1.3.0"
3441+ },
3442+ "engines": {
3443+ "node": ">= 0.4"
3444+ }
3445+ },
3446+ "node_modules/es-set-tostringtag": {
3447+ "version": "2.1.0",
3448+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
3449+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
3450+ "license": "MIT",
3451+ "dependencies": {
3452+ "es-errors": "^1.3.0",
3453+ "get-intrinsic": "^1.2.6",
3454+ "has-tostringtag": "^1.0.2",
3455+ "hasown": "^2.0.2"
3456+ },
3457+ "engines": {
3458+ "node": ">= 0.4"
3459+ }
3460+ },
33763461 "node_modules/escalade": {
33773462 "version": "3.2.0",
33783463 "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
@@ -3419,17 +3504,18 @@
34193504 }
34203505 },
34213506 "node_modules/eslint": {
34223507 "version": "8.57.01",
34233508 "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.01.tgz",
34243509 "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",
3510+ "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",
34253511 "dev": true,
34263512 "license": "MIT",
34273513 "dependencies": {
34283514 "@eslint-community/eslint-utils": "^4.2.0",
34293515 "@eslint-community/regexpp": "^4.6.1",
34303516 "@eslint/eslintrc": "^2.1.4",
34313517 "@eslint/js": "8.57.01",
34323518 "@humanwhocodes/config-array": "^0.1113.140",
34333519 "@humanwhocodes/module-importer": "^1.0.1",
34343520 "@nodelib/fs.walk": "^1.2.8",
34353521 "@ungap/structured-clone": "^1.2.0",
@@ -3504,6 +3590,23 @@
35043590 "url": "https://opencollective.com/eslint"
35053591 }
35063592 },
3593+ "node_modules/eslint/node_modules/chalk": {
3594+ "version": "4.1.2",
3595+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
3596+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
3597+ "dev": true,
3598+ "license": "MIT",
3599+ "dependencies": {
3600+ "ansi-styles": "^4.1.0",
3601+ "supports-color": "^7.1.0"
3602+ },
3603+ "engines": {
3604+ "node": ">=10"
3605+ },
3606+ "funding": {
3607+ "url": "https://github.com/chalk/chalk?sponsor=1"
3608+ }
3609+ },
35073610 "node_modules/eslint/node_modules/debug": {
35083611 "version": "4.3.4",
35093612 "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
@@ -3750,6 +3853,7 @@
37503853 "version": "2.1.0",
37513854 "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
37523855 "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
3856+ "dev": true,
37533857 "license": "MIT"
37543858 },
37553859 "node_modules/fast-levenshtein": {
@@ -3759,6 +3863,22 @@
37593863 "dev": true,
37603864 "license": "MIT"
37613865 },
3866+ "node_modules/fast-uri": {
3867+ "version": "3.0.6",
3868+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz",
3869+ "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==",
3870+ "funding": [
3871+ {
3872+ "type": "github",
3873+ "url": "https://github.com/sponsors/fastify"
3874+ },
3875+ {
3876+ "type": "opencollective",
3877+ "url": "https://opencollective.com/fastify"
3878+ }
3879+ ],
3880+ "license": "BSD-3-Clause"
3881+ },
37623882 "node_modules/fastq": {
37633883 "version": "1.15.0",
37643884 "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",
@@ -3929,13 +4049,14 @@
39294049 }
39304050 },
39314051 "node_modules/form-data": {
39324052 "version": "4.0.02",
39334053 "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.02.tgz",
39344054 "integrity": "sha512-ETEklSGi5t0QMZuiXoAhGfm/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPpslu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+xgEhuMaHCZ0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+zGgn31Kd235W35f7Hykkawwnr6FM8w==",
39354055 "license": "MIT",
39364056 "dependencies": {
39374057 "asynckit": "^0.4.0",
39384058 "combined-stream": "^1.0.8",
4059+ "es-set-tostringtag": "^2.1.0",
39394060 "mime-types": "^2.1.12"
39404061 },
39414062 "engines": {
@@ -4000,20 +4121,6 @@
40004121 "node": ">= 0.6"
40014122 }
40024123 },
4003- "node_modules/fs-extra": {
4004- "version": "11.2.0",
4005- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz",
4006- "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==",
4007- "license": "MIT",
4008- "dependencies": {
4009- "graceful-fs": "^4.2.0",
4010- "jsonfile": "^6.0.1",
4011- "universalify": "^2.0.0"
4012- },
4013- "engines": {
4014- "node": ">=14.14"
4015- }
4016- },
40174124 "node_modules/fs.realpath": {
40184125 "version": "1.0.0",
40194126 "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
@@ -4031,9 +4138,9 @@
40314138 }
40324139 },
40334140 "node_modules/fuse.js": {
40344141 "version": "7.01.0",
40354142 "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-7.01.0.tgz",
40364143 "integrity": "sha512-14F4hBIxqKvD4Zz/XjDc3y94mNZN6pRv3U13Udo0lNLCWRBUsrMv2xwcF/y/Z5sV6+FQWtrLf4SzuuUxfusZADLINj+dE8clK1frKdmqiJNb1Es75fmI5oY6X2mxLVUciLLjxqw/ow68cHpm4sunt8Qxr72Dhy+lER6dGd02FQ==",
40374144 "license": "Apache-2.0",
40384145 "engines": {
40394146 "node": ">=10"
@@ -4049,16 +4156,21 @@
40494156 }
40504157 },
40514158 "node_modules/get-intrinsic": {
40524159 "version": "1.23.40",
40534160 "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.23.40.tgz",
40544161 "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF79fSjSaos/oQuhzumXJK7paBRQfRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
40554162 "license": "MIT",
40564163 "dependencies": {
4164+ "call-bind-apply-helpers": "^1.0.2",
4165+ "es-define-property": "^1.0.1",
40574166 "es-errors": "^1.3.0",
4167+ "es-object-atoms": "^1.1.1",
40584168 "function-bind": "^1.1.2",
40594169 "hasget-proto": "^1.0.1",
40604170 "has-symbolsgopd": "^1.02.30",
40614171 "hasownhas-symbols": "^21.01.0",
4172+ "hasown": "^2.0.2",
4173+ "math-intrinsics": "^1.1.0"
40624174 },
40634175 "engines": {
40644176 "node": ">= 0.4"
@@ -4067,6 +4179,19 @@
40674179 "url": "https://github.com/sponsors/ljharb"
40684180 }
40694181 },
4182+ "node_modules/get-proto": {
4183+ "version": "1.0.1",
4184+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
4185+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
4186+ "license": "MIT",
4187+ "dependencies": {
4188+ "dunder-proto": "^1.0.1",
4189+ "es-object-atoms": "^1.0.0"
4190+ },
4191+ "engines": {
4192+ "node": ">= 0.4"
4193+ }
4194+ },
40704195 "node_modules/get-stream": {
40714196 "version": "5.2.0",
40724197 "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
@@ -4083,24 +4208,23 @@
40834208 }
40844209 },
40854210 "node_modules/get-uri": {
40864211 "version": "6.0.34",
40874212 "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.34.tgz",
40884213 "integrity": "sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanwE1b1lFFLvLgak2whF2xDBcOy6NLVGZBqqjJjsIhvopKfWWEi64pLVTWWehV8KlLerZkfNTA95sTe2OdJKm1OzQ==",
40894214 "license": "MIT",
40904215 "dependencies": {
40914216 "basic-ftp": "^5.0.2",
40924217 "data-uri-to-buffer": "^6.0.2",
40934218 "debug": "^4.3.4",
4094- "fs-extra": "^11.2.0"
40954219 },
40964220 "engines": {
40974221 "node": ">= 14"
40984222 }
40994223 },
41004224 "node_modules/get-uri/node_modules/debug": {
41014225 "version": "4.34.70",
41024226 "resolved": "https://registry.npmjs.org/debug/-/debug-4.34.70.tgz",
41034227 "integrity": "sha512-Er2nc6WTZ/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yWIxCY/T6BALoZHaE4ctp9xm+GOJap1Krg4w0Hg80oCqgQZ5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
41044228 "license": "MIT",
41054229 "dependencies": {
41064230 "ms": "^2.1.3"
@@ -4190,9 +4314,9 @@
41904314 "license": "MIT"
41914315 },
41924316 "node_modules/google-translate-api-x": {
41934317 "version": "10.7.12",
41944318 "resolved": "https://registry.npmjs.org/google-translate-api-x/-/google-translate-api-x-10.7.12.tgz",
41954319 "integrity": "sha512-OdZDS6jRWzn1woOk62aOKQ5OyVaJSAGSmbvGMcnULaih2NFgD4Y6840DLAMot90mLWgwoB+eyc6CktOWxo36IWfstOjwGFG/dkvnGl3Z2Sbpmk1A+jc2WwrBiRjqaY2AQpetyZkFrZkxop8ZxXgOAQXGskFOhGJady8nA6ZJ2g==",
41964320 "license": "MIT",
41974321 "engines": {
41984322 "node": ">=14.0.0"
@@ -4203,12 +4327,12 @@
42034327 }
42044328 },
42054329 "node_modules/gopd": {
42064330 "version": "1.02.10",
42074331 "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.02.10.tgz",
42084332 "integrity": "sha512-d65bNlIadxvpbZUKRh6/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwAkUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
42094333 "license": "MIT",
42104334 "dependenciesengines": {
42114335 "get-intrinsicnode": "^1.1>= 0.34"
42124336 },
42134337 "funding": {
42144338 "url": "https://github.com/sponsors/ljharb"
@@ -4305,10 +4429,10 @@
43054429 "url": "https://github.com/sponsors/ljharb"
43064430 }
43074431 },
43084432 "node_modules/has-protosymbols": {
43094433 "version": "1.01.30",
43104434 "resolved": "https://registry.npmjs.org/has-protosymbols/-/has-protosymbols-1.01.30.tgz",
43114435 "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+Qeb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
43124436 "license": "MIT",
43134437 "engines": {
43144438 "node": ">= 0.4"
@@ -4317,11 +4441,14 @@
43174441 "url": "https://github.com/sponsors/ljharb"
43184442 }
43194443 },
43204444 "node_modules/has-symbolstostringtag": {
43214445 "version": "1.0.32",
43224446 "resolved": "https://registry.npmjs.org/has-symbolstostringtag/-/has-symbolstostringtag-1.0.32.tgz",
43234447 "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2TdNqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+AieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
43244448 "license": "MIT",
4449+ "dependencies": {
4450+ "has-symbols": "^1.0.3"
4451+ },
43254452 "engines": {
43264453 "node": ">= 0.4"
43274454 },
@@ -4342,17 +4469,18 @@
43424469 }
43434470 },
43444471 "node_modules/helmet": {
43454472 "version": "7.12.0",
43464473 "resolved": "https://registry.npmjs.org/helmet/-/helmet-7.12.0.tgz",
43474474 "integrity": "sha512-g+HZqgfbpXdCkme/Cd/mZkV0aV3BZZZSugecH03kl38mZRiwvN089JfMXokizgqEPXsl2Guk094yExfoDXR0cBYWxtBbaSww/Kmdx8jKjBikpDj2crw+Iynv4KpYEviojNdTJActJAgvT4WEJsBW2iTUi1GgZ6swmoug3Oy4Xw==",
4475+ "license": "MIT",
43484476 "engines": {
43494477 "node": ">=16.0.0"
43504478 }
43514479 },
43524480 "node_modules/highlight.js": {
43534481 "version": "11.1011.01",
43544482 "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.1011.01.tgz",
43554483 "integrity": "sha512-SYVnVFswQERXwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+zu1laSya563sJvd8/qCJ2p+F8VDGt7o35d4utbamowvUNLLMovFqwCLSocpZTz3MgaSRA1IbqRWZv97dtErQML0/XVkJ2q+Mr+UVdpJK5w==",
43564484 "license": "BSD-3-Clause",
43574485 "engines": {
43584486 "node": ">=12.0.0"
@@ -4429,9 +4557,9 @@
44294557 }
44304558 },
44314559 "node_modules/http-proxy-agent/node_modules/debug": {
44324560 "version": "4.34.70",
44334561 "resolved": "https://registry.npmjs.org/debug/-/debug-4.34.70.tgz",
44344562 "integrity": "sha512-Er2nc6WTZ/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yWIxCY/T6BALoZHaE4ctp9xm+GOJap1Krg4w0Hg80oCqgQZ5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
44354563 "license": "MIT",
44364564 "dependencies": {
44374565 "ms": "^2.1.3"
@@ -4465,12 +4593,12 @@
44654593 }
44664594 },
44674595 "node_modules/https-proxy-agent": {
44684596 "version": "7.0.56",
44694597 "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.56.tgz",
44704598 "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvwvK9P5/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalwiUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
44714599 "license": "MIT",
44724600 "dependencies": {
44734601 "agent-base": "^7.01.2",
44744602 "debug": "4"
44754603 },
44764604 "engines": {
@@ -4478,9 +4606,9 @@
44784606 }
44794607 },
44804608 "node_modules/https-proxy-agent/node_modules/debug": {
44814609 "version": "4.34.70",
44824610 "resolved": "https://registry.npmjs.org/debug/-/debug-4.34.70.tgz",
44834611 "integrity": "sha512-Er2nc6WTZ/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yWIxCY/T6BALoZHaE4ctp9xm+GOJap1Krg4w0Hg80oCqgQZ5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
44844612 "license": "MIT",
44854613 "dependencies": {
44864614 "ms": "^2.1.3"
@@ -4647,9 +4775,9 @@
46474775 }
46484776 },
46494777 "node_modules/ipaddr.js": {
46504778 "version": "2.12.0",
46514779 "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.12.0.tgz",
46524780 "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0mAg3wB2o37wslZS19hZqorUnrnzSkpOVy+mAm9xyNGEduwXMEDuf4WfzBIiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQwfW8fWJA==",
46534781 "license": "MIT",
46544782 "engines": {
46554783 "node": ">= 10"
@@ -4662,15 +4790,15 @@
46624790 "license": "MIT"
46634791 },
46644792 "node_modules/is-docker": {
46654793 "version": "23.20.10",
46664794 "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-23.20.10.tgz",
46674795 "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQeljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",
46684796 "license": "MIT",
46694797 "bin": {
46704798 "is-docker": "cli.js"
46714799 },
46724800 "engines": {
4673- "node": ">=8"
4801+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
46744802 },
46754803 "funding": {
46764804 "url": "https://github.com/sponsors/sindresorhus"
@@ -4747,6 +4875,21 @@
47474875 "node": ">=8"
47484876 }
47494877 },
4878+ "node_modules/is-wsl/node_modules/is-docker": {
4879+ "version": "2.2.1",
4880+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
4881+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
4882+ "license": "MIT",
4883+ "bin": {
4884+ "is-docker": "cli.js"
4885+ },
4886+ "engines": {
4887+ "node": ">=8"
4888+ },
4889+ "funding": {
4890+ "url": "https://github.com/sponsors/sindresorhus"
4891+ }
4892+ },
47504893 "node_modules/isarray": {
47514894 "version": "1.0.0",
47524895 "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
@@ -4960,6 +5103,7 @@
49605103 "version": "0.4.1",
49615104 "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
49625105 "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
5106+ "dev": true,
49635107 "license": "MIT"
49645108 },
49655109 "node_modules/json-stable-stringify-without-jsonify": {
@@ -4969,18 +5113,6 @@
49695113 "dev": true,
49705114 "license": "MIT"
49715115 },
4972- "node_modules/jsonfile": {
4973- "version": "6.1.0",
4974- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
4975- "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
4976- "license": "MIT",
4977- "dependencies": {
4978- "universalify": "^2.0.0"
4979- },
4980- "optionalDependencies": {
4981- "graceful-fs": "^4.1.6"
4982- }
4983- },
49845116 "node_modules/keygrip": {
49855117 "version": "1.1.0",
49865118 "resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.1.0.tgz",
@@ -5127,6 +5259,15 @@
51275259 "node": "14 || >=16.14"
51285260 }
51295261 },
5262+ "node_modules/math-intrinsics": {
5263+ "version": "1.1.0",
5264+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
5265+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
5266+ "license": "MIT",
5267+ "engines": {
5268+ "node": ">= 0.4"
5269+ }
5270+ },
51305271 "node_modules/md5": {
51315272 "version": "2.3.0",
51325273 "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz",
@@ -5383,9 +5524,13 @@
53835524 }
53845525 },
53855526 "node_modules/node-persist": {
53865527 "version": "4.0.14",
53875528 "resolved": "https://registry.npmjs.org/node-persist/-/node-persist-4.0.14.tgz",
53885529 "integrity": "sha512-QtRjwAlcOQChQpfG6odtEhxYmA3nS5XYr+bx9JRjwahl1TM3sm9J3CCn518sPAz/MI0eoHRb2DrkEsCOFo8sq8jG5sQ7tw1mCCc8xBG4f0wi+flHkSSgQeX998iQ75Pu27evA6UUWCjSE7xnrYTg2q33oU5leJ061EKPDv6BocQ==",
5530+ "license": "MIT",
5531+ "dependencies": {
5532+ "p-limit": "^3.1.0"
5533+ },
53895534 "engines": {
53905535 "node": ">=10.12.0"
53915536 }
@@ -5531,6 +5676,21 @@
55315676 "url": "https://github.com/sponsors/sindresorhus"
55325677 }
55335678 },
5679+ "node_modules/open/node_modules/is-docker": {
5680+ "version": "2.2.1",
5681+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
5682+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
5683+ "license": "MIT",
5684+ "bin": {
5685+ "is-docker": "cli.js"
5686+ },
5687+ "engines": {
5688+ "node": ">=8"
5689+ },
5690+ "funding": {
5691+ "url": "https://github.com/sponsors/sindresorhus"
5692+ }
5693+ },
55345694 "node_modules/openai": {
55355695 "version": "4.17.4",
55365696 "resolved": "https://registry.npmjs.org/openai/-/openai-4.17.4.tgz",
@@ -5602,7 +5762,6 @@
56025762 "version": "3.1.0",
56035763 "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
56045764 "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
5605- "dev": true,
56065765 "license": "MIT",
56075766 "dependencies": {
56085767 "yocto-queue": "^0.1.0"
@@ -5631,28 +5790,28 @@
56315790 }
56325791 },
56335792 "node_modules/pac-proxy-agent": {
56345793 "version": "7.0.2.0",
56355794 "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.2.0.tgz",
56365795 "integrity": "sha512-BFi3vZnO9X5Qt6NRz7ZOaPja3ic0PhlsmCRYLOpN11+mWBCR6XJDqW5RF3j8jm4WGGQZtBATEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+bTfxYzeKW73eHgpIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==",
56375796 "license": "MIT",
56385797 "dependencies": {
56395798 "@tootallnate/quickjs-emscripten": "^0.23.0",
56405799 "agent-base": "^7.01.2",
56415800 "debug": "^4.3.4",
56425801 "get-uri": "^6.0.1",
56435802 "http-proxy-agent": "^7.0.0",
56445803 "https-proxy-agent": "^7.0.56",
56455804 "pac-resolver": "^7.0.1",
56465805 "socks-proxy-agent": "^8.0.45"
56475806 },
56485807 "engines": {
56495808 "node": ">= 14"
56505809 }
56515810 },
56525811 "node_modules/pac-proxy-agent/node_modules/debug": {
56535812 "version": "4.34.70",
56545813 "resolved": "https://registry.npmjs.org/debug/-/debug-4.34.70.tgz",
56555814 "integrity": "sha512-Er2nc6WTZ/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yWIxCY/T6BALoZHaE4ctp9xm+GOJap1Krg4w0Hg80oCqgQZ5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
56565815 "license": "MIT",
56575816 "dependencies": {
56585817 "ms": "^2.1.3"
@@ -5988,19 +6147,19 @@
59886147 }
59896148 },
59906149 "node_modules/proxy-agent": {
59916150 "version": "6.45.0",
59926151 "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.45.0.tgz",
59936152 "integrity": "sha512-u0piLUTmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+nCOHMgGjRbimiXmA9kMEaCzoInSu/L9EHh3zL81xCdp7m+Y2pHIsnmbdDoEDoAz5geaonNR6q6+yOPQs6n4T6sBQA==",
59946153 "license": "MIT",
59956154 "dependencies": {
59966155 "agent-base": "^7.01.2",
59976156 "debug": "^4.3.4",
59986157 "http-proxy-agent": "^7.0.1",
59996158 "https-proxy-agent": "^7.0.36",
60006159 "lru-cache": "^7.14.1",
60016160 "pac-proxy-agent": "^7.0.1.0",
60026161 "proxy-from-env": "^1.1.0",
60036162 "socks-proxy-agent": "^8.0.25"
60046163 },
60056164 "engines": {
60066165 "node": ">= 14"
@@ -6135,9 +6294,10 @@
61356294 }
61366295 },
61376296 "node_modules/rate-limiter-flexible": {
61386297 "version": "5.0.05",
61396298 "resolved": "https://registry.npmjs.org/rate-limiter-flexible/-/rate-limiter-flexible-5.0.05.tgz",
61406299 "integrity": "sha512-ivCyLBwPtR5IRrz+aZnztVwX16ZK3iAjdlW21I/vjHq56at5Zb8eIefDzODg8R7hwPOHpBtb6Pj9Zdmn0nRb8gdSQfo+3FYwYygUs/V2BBdwGa9nFtakDwKt4l0bnvNB53TNT++QSFewwHX9qXrZJuMe9j+TUaU21lm5ARgqdQ==",
6300+ "license": "ISC"
61416301 },
61426302 "node_modules/raw-body": {
61436303 "version": "2.5.2",
@@ -6154,15 +6314,6 @@
61546314 "node": ">= 0.8"
61556315 }
61566316 },
6157- "node_modules/raw-body/node_modules/bytes": {
6158- "version": "3.1.2",
6159- "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
6160- "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
6161- "license": "MIT",
6162- "engines": {
6163- "node": ">= 0.8"
6164- }
6165- },
61666317 "node_modules/raw-body/node_modules/iconv-lite": {
61676318 "version": "0.4.24",
61686319 "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
@@ -6262,6 +6413,15 @@
62626413 "node": ">=0.10.0"
62636414 }
62646415 },
6416+ "node_modules/require-from-string": {
6417+ "version": "2.0.2",
6418+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
6419+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
6420+ "license": "MIT",
6421+ "engines": {
6422+ "node": ">=0.10.0"
6423+ }
6424+ },
62656425 "node_modules/resolve-alpn": {
62666426 "version": "1.2.1",
62676427 "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz",
@@ -6279,27 +6439,18 @@
62796439 }
62806440 },
62816441 "node_modules/response-time": {
62826442 "version": "2.3.23",
62836443 "resolved": "https://registry.npmjs.org/response-time/-/response-time-2.3.23.tgz",
62846444 "integrity": "sha512-MUIDaDQf+CVqflfTdQ5yam+aYCkXj1PY8fjlPDQ6ppxJlmgZb864pHtA750mayywNg8tx4rS7qH9JXdSsjjOPHl/OFFfrTQNgmc5oen8Hr1Jxpn6LlHNXxCIFdYMHuK1kMeYMobb9XN3mvxaGQm3dbegqYFMX4+3gwGDORfbWg==",
62856445 "license": "MIT",
62866446 "dependencies": {
62876447 "depd": "~12.10.0",
62886448 "on-headers": "~1.0.1"
62896449 },
62906450 "engines": {
62916451 "node": ">= 0.8.0"
62926452 }
62936453 },
6294- "node_modules/response-time/node_modules/depd": {
6295- "version": "1.1.2",
6296- "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
6297- "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==",
6298- "license": "MIT",
6299- "engines": {
6300- "node": ">= 0.6"
6301- }
6302- },
63036454 "node_modules/responselike": {
63046455 "version": "2.0.1",
63056456 "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz",
@@ -6390,6 +6541,59 @@
63906541 "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==",
63916542 "license": "ISC"
63926543 },
6544+ "node_modules/schema-utils": {
6545+ "version": "4.3.0",
6546+ "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.0.tgz",
6547+ "integrity": "sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g==",
6548+ "license": "MIT",
6549+ "dependencies": {
6550+ "@types/json-schema": "^7.0.9",
6551+ "ajv": "^8.9.0",
6552+ "ajv-formats": "^2.1.1",
6553+ "ajv-keywords": "^5.1.0"
6554+ },
6555+ "engines": {
6556+ "node": ">= 10.13.0"
6557+ },
6558+ "funding": {
6559+ "type": "opencollective",
6560+ "url": "https://opencollective.com/webpack"
6561+ }
6562+ },
6563+ "node_modules/schema-utils/node_modules/ajv": {
6564+ "version": "8.17.1",
6565+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
6566+ "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
6567+ "license": "MIT",
6568+ "dependencies": {
6569+ "fast-deep-equal": "^3.1.3",
6570+ "fast-uri": "^3.0.1",
6571+ "json-schema-traverse": "^1.0.0",
6572+ "require-from-string": "^2.0.2"
6573+ },
6574+ "funding": {
6575+ "type": "github",
6576+ "url": "https://github.com/sponsors/epoberezkin"
6577+ }
6578+ },
6579+ "node_modules/schema-utils/node_modules/ajv-keywords": {
6580+ "version": "5.1.0",
6581+ "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz",
6582+ "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",
6583+ "license": "MIT",
6584+ "dependencies": {
6585+ "fast-deep-equal": "^3.1.3"
6586+ },
6587+ "peerDependencies": {
6588+ "ajv": "^8.8.2"
6589+ }
6590+ },
6591+ "node_modules/schema-utils/node_modules/json-schema-traverse": {
6592+ "version": "1.0.0",
6593+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
6594+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
6595+ "license": "MIT"
6596+ },
63936597 "node_modules/seedrandom": {
63946598 "version": "3.0.5",
63956599 "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-3.0.5.tgz",
@@ -6570,14 +6774,14 @@
65706774 }
65716775 },
65726776 "node_modules/simple-git": {
65736777 "version": "3.1927.10",
65746778 "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.1927.10.tgz",
65756779 "integrity": "sha512-Ck+rcjVaE1HotraRAS8uivHoFS9Yi9GY49ogc6/YAi3Fl9ROnF4VyubNylgCkA+xgTvToTuoMkT9/l9lvuP5jftwnYUp6DwuJzsKErHgfyRk8IB8pqGHWEbM3tLgV1wRVqLaKWnDSzXOVzya8csELIaWaYNutsEuAhZrtOjozA==",
65766780 "license": "MIT",
65776781 "dependencies": {
65786782 "@kwsites/file-exists": "^1.1.1",
65796783 "@kwsites/promise-deferred": "^1.1.1",
65806784 "debug": "^4.3.45"
65816785 },
65826786 "funding": {
65836787 "type": "github",
@@ -6585,12 +6789,12 @@
65856789 }
65866790 },
65876791 "node_modules/simple-git/node_modules/debug": {
65886792 "version": "4.3.4.0",
65896793 "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.0.tgz",
65906794 "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX6WTZ/IxCY/T6BALoZHaE4ctp9xm+7GZ5kY/vCNNhehwxfkQpzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
65916795 "license": "MIT",
65926796 "dependencies": {
65936797 "ms": "^2.1.23"
65946798 },
65956799 "engines": {
65966800 "node": ">=6.0"
@@ -6602,9 +6806,9 @@
66026806 }
66036807 },
66046808 "node_modules/simple-git/node_modules/ms": {
66056809 "version": "2.1.23",
66066810 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.23.tgz",
66076811 "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk6FlzubTLZG3J2a/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2wNVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
66086812 "license": "MIT"
66096813 },
66106814 "node_modules/sliced": {
@@ -6630,9 +6834,9 @@
66306834 }
66316835 },
66326836 "node_modules/socks": {
66336837 "version": "2.8.34",
66346838 "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.34.tgz",
66356839 "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsFD3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/AJPYCW8Zwb3saV0KflYhyVJXKhb947GndU35SxYNResQ==",
66366840 "license": "MIT",
66376841 "dependencies": {
66386842 "ip-address": "^9.0.5",
@@ -6644,12 +6848,12 @@
66446848 }
66456849 },
66466850 "node_modules/socks-proxy-agent": {
66476851 "version": "8.0.45",
66486852 "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.45.tgz",
66496853 "integrity": "sha512-GNAq/eg8Udq2x0eNiFkr9gRg5bA7PXEWagQdeRX4cPSGHehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+X/8V38v637gim9bjFptMk1QWsCTr0ttrJEiXbNnRwE+YTzJw==",
66506854 "license": "MIT",
66516855 "dependencies": {
66526856 "agent-base": "^7.1.12",
66536857 "debug": "^4.3.4",
66546858 "socks": "^2.8.3"
66556859 },
@@ -6658,9 +6862,9 @@
66586862 }
66596863 },
66606864 "node_modules/socks-proxy-agent/node_modules/debug": {
66616865 "version": "4.34.70",
66626866 "resolved": "https://registry.npmjs.org/debug/-/debug-4.34.70.tgz",
66636867 "integrity": "sha512-Er2nc6WTZ/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yWIxCY/T6BALoZHaE4ctp9xm+GOJap1Krg4w0Hg80oCqgQZ5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
66646868 "license": "MIT",
66656869 "dependencies": {
66666870 "ms": "^2.1.3"
@@ -6858,9 +7062,9 @@
68587062 }
68597063 },
68607064 "node_modules/terser": {
68617065 "version": "5.3639.0",
68627066 "resolved": "https://registry.npmjs.org/terser/-/terser-5.3639.0.tgz",
68637067 "integrity": "sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6LBAhFyLho16harJoWMg/RwRvM9SZjR4GUq8Nk8zj67FzVARr74wnZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw==",
68647068 "license": "BSD-2-Clause",
68657069 "dependencies": {
68667070 "@jridgewell/source-map": "^0.3.3",
@@ -6876,16 +7080,16 @@
68767080 }
68777081 },
68787082 "node_modules/terser-webpack-plugin": {
68797083 "version": "5.3.1012",
68807084 "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.1012.tgz",
68817085 "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgsjDLYqo7oF8tJIttjXO6jBY5Hk8p3A8W4ttih7cCEq64fQFWmgJ4VqAQjKr7WwIDlmXKEc6QeoRb5ecjZ+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w2afcg==",
68827086 "license": "MIT",
68837087 "dependencies": {
68847088 "@jridgewell/trace-mapping": "^0.3.2025",
68857089 "jest-worker": "^27.4.5",
68867090 "schema-utils": "^34.13.10",
68877091 "serialize-javascript": "^6.0.12",
68887092 "terser": "^5.2631.01"
68897093 },
68907094 "engines": {
68917095 "node": ">= 10.13.0"
@@ -6909,24 +7113,6 @@
69097113 }
69107114 }
69117115 },
6912- "node_modules/terser-webpack-plugin/node_modules/schema-utils": {
6913- "version": "3.3.0",
6914- "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz",
6915- "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==",
6916- "license": "MIT",
6917- "dependencies": {
6918- "@types/json-schema": "^7.0.8",
6919- "ajv": "^6.12.5",
6920- "ajv-keywords": "^3.5.2"
6921- },
6922- "engines": {
6923- "node": ">= 10.13.0"
6924- },
6925- "funding": {
6926- "type": "opencollective",
6927- "url": "https://opencollective.com/webpack"
6928- }
6929- },
69307116 "node_modules/text-table": {
69317117 "version": "0.2.0",
69327118 "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
@@ -6935,9 +7121,9 @@
69357121 "license": "MIT"
69367122 },
69377123 "node_modules/tiktoken": {
69387124 "version": "1.0.1620",
69397125 "resolved": "https://registry.npmjs.org/tiktoken/-/tiktoken-1.0.1620.tgz",
69407126 "integrity": "sha512-hRcORIGF2YlAgWx3nzrGJOrKSJwLoc81HpXmMQk89632XAgURc7IeV2FgQ2iXo9zzVIpXp84kth/J96fCvpsHg2kWoHcbj9fgNi2me1uYlJgl2RZ2EjxwDaWLeDY/s6fZiyO9n1QoTOM5P7ZSYfToPvAvwYNMbg5LETVYVKyzfQ==",
69417127 "license": "MIT"
69427128 },
69437129 "node_modules/timm": {
@@ -7000,9 +7186,9 @@
70007186 }
70017187 },
70027188 "node_modules/tslib": {
70037189 "version": "2.78.01",
70047190 "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.78.01.tgz",
70057191 "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55ooJFu94HQb+dW7IXv3RCXDzAKVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
70067192 "license": "0BSD"
70077193 },
70087194 "node_modules/tsscmp": {
@@ -7077,15 +7263,6 @@
70777263 "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
70787264 "license": "MIT"
70797265 },
7080- "node_modules/universalify": {
7081- "version": "2.0.1",
7082- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
7083- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
7084- "license": "MIT",
7085- "engines": {
7086- "node": ">= 10.0.0"
7087- }
7088- },
70897266 "node_modules/unpipe": {
70907267 "version": "1.0.0",
70917268 "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
@@ -7129,6 +7306,7 @@
71297306 "version": "4.4.1",
71307307 "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
71317308 "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
7309+ "dev": true,
71327310 "license": "BSD-2-Clause",
71337311 "dependencies": {
71347312 "punycode": "^2.1.0"
@@ -7257,18 +7435,18 @@
72577435 }
72587436 },
72597437 "node_modules/webpack": {
72607438 "version": "5.9598.0",
72617439 "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.9598.0.tgz",
72627440 "integrity": "sha512-2t3XstrKULz41MNMBFUFynvx+cJ97TyHdyQ8HCt//pqErqDvNjU9YQBnZxIHa11VXsi7F3mb5gM44Gv9qFgj0acCQK2VE1CtdfwFdimkapco3hlPCJ/aO2tuDxdeTPdU7xu9Qzeq73n2yVKimVbtm+TnApIugGhLJnkU6gjYXA==",
72637441 "license": "MIT",
72647442 "dependencies": {
72657443 "@types/estreeeslint-scope": "^13.07.57",
72667444 "@webassemblyjstypes/astestree": "^1.120.16",
72677445 "@webassemblyjs/wasm-editast": "^1.1214.1",
72687446 "@webassemblyjs/wasm-parseredit": "^1.1214.1",
72697447 "acorn@webassemblyjs/wasm-parser": "^81.714.1",
72707448 "acorn-import-attributes": "^18.914.50",
72717449 "browserslist": "^4.2124.100",
72727450 "chrome-trace-event": "^1.0.2",
72737451 "enhanced-resolve": "^5.17.1",
72747452 "es-module-lexer": "^1.2.1",
@@ -7280,9 +7458,9 @@
72807458 "loader-runner": "^4.2.0",
72817459 "mime-types": "^2.1.27",
72827460 "neo-async": "^2.6.2",
72837461 "schema-utils": "^34.23.0",
72847462 "tapable": "^2.1.1",
72857463 "terser-webpack-plugin": "^5.3.1011",
72867464 "watchpack": "^2.4.1",
72877465 "webpack-sources": "^3.2.3"
72887466 },
@@ -7333,24 +7511,6 @@
73337511 "node": ">=4.0"
73347512 }
73357513 },
7336- "node_modules/webpack/node_modules/schema-utils": {
7337- "version": "3.3.0",
7338- "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz",
7339- "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==",
7340- "license": "MIT",
7341- "dependencies": {
7342- "@types/json-schema": "^7.0.8",
7343- "ajv": "^6.12.5",
7344- "ajv-keywords": "^3.5.2"
7345- },
7346- "engines": {
7347- "node": ">= 10.13.0"
7348- },
7349- "funding": {
7350- "type": "opencollective",
7351- "url": "https://opencollective.com/webpack"
7352- }
7353- },
73547514 "node_modules/whatwg-fetch": {
73557515 "version": "3.6.20",
73567516 "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz",
@@ -7445,9 +7605,10 @@
74457605 }
74467606 },
74477607 "node_modules/ws": {
74487608 "version": "8.1718.1",
74497609 "resolved": "https://registry.npmjs.org/ws/-/ws-8.1718.1.tgz",
74507610 "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZRKW2aJZMXeMxVpnZ6bck+h4gZekJyRqFU8pvnbAbbs/3TgRPyRswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+GQuurzwa0rVI16n/Xzjdz1w==",
7611+ "license": "MIT",
74517612 "engines": {
74527613 "node": ">=10.0.0"
74537614 },
@@ -7523,10 +7684,13 @@
75237684 }
75247685 },
75257686 "node_modules/yaml": {
75267687 "version": "2.37.40",
75277688 "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.37.40.tgz",
75287689 "integrity": "sha512-8aAvwVUSHpfEqTQ4w+hSoy/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocAQHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==",
75297690 "license": "ISC",
7691+ "bin": {
7692+ "yaml": "bin.mjs"
7693+ },
75307694 "engines": {
75317695 "node": ">= 14"
75327696 }
@@ -7572,7 +7736,6 @@
75727736 "version": "0.1.0",
75737737 "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
75747738 "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
7575- "dev": true,
75767739 "license": "MIT",
75777740 "engines": {
75787741 "node": ">=10"
package.json+34 -30
@@ -1,18 +1,20 @@
11{
22 "dependencies": {
33 "@adobe/css-tools": "^4.4.02",
44 "@agnai/sentencepiece-js": "^1.1.1",
55 "@agnai/web-tokenizers": "^0.1.3",
66 "@iconfu/svg-inject": "^1.2.3",
77 "@mozilla/readability": "^0.56.0",
88 "@popperjs/core": "^2.11.8",
99 "@zeldafan0225/ai_horde": "^5.12.0",
1010 "archiver": "^7.0.1",
1111 "bing-translate-api": "^4.0.2",
1212 "body-parser": "^1.20.2",
1313 "bowser": "^2.11.0",
14+ "bytes": "^3.1.2",
15+ "chalk": "^5.4.1",
1416 "command-exists": "^1.2.9",
1517 "compression": "^1.8.0",
1618 "cookie-parser": "^1.4.6",
1719 "cookie-session": "^2.1.0",
1820 "cors": "^2.8.5",
@@ -21,18 +23,19 @@
2123 "dompurify": "^3.2.4",
2224 "droll": "^0.2.1",
2325 "express": "^4.21.0",
2426 "form-data": "^4.0.02",
2527 "fuse.js": "^7.01.0",
2628 "google-translate-api-browser": "^3.0.1",
2729 "google-translate-api-x": "^10.7.12",
2830 "handlebars": "^4.7.8",
2931 "helmet": "^7.12.0",
3032 "highlight.js": "^11.1011.01",
3133 "html-entities": "^2.5.2",
3234 "iconv-lite": "^0.6.3",
3335 "ip-matching": "^2.1.2",
3436 "ip-regex": "^5.0.0",
3537 "ipaddr.js": "^2.02.10",
38+ "is-docker": "^3.0.0",
3639 "jimp": "^0.22.10",
3740 "localforage": "^1.10.0",
3841 "lodash": "^4.17.21",
@@ -41,28 +44,28 @@
4144 "morphdom": "^2.7.4",
4245 "multer": "^1.4.5-lts.1",
4346 "node-fetch": "^3.3.2",
4447 "node-persist": "^4.0.14",
4548 "open": "^8.4.2",
4649 "png-chunk-text": "^1.0.0",
4750 "png-chunks-encode": "^1.0.0",
4851 "png-chunks-extract": "^1.0.0",
4952 "proxy-agent": "^6.45.0",
5053 "rate-limiter-flexible": "^5.0.05",
5154 "response-time": "^2.3.23",
5255 "sanitize-filename": "^1.6.3",
5356 "seedrandom": "^3.0.5",
5457 "showdown": "^2.1.0",
5558 "sillytavern-transformers": "2.14.6",
5659 "simple-git": "^3.1927.10",
5760 "slidetoggle": "^4.0.0",
5861 "tiktoken": "^1.0.1620",
5962 "url-join": "^5.0.0",
6063 "vectra": "^0.2.2",
6164 "wavefile": "^11.0.0",
6265 "webpack": "^5.9598.0",
6366 "write-file-atomic": "^5.0.1",
6467 "ws": "^8.1718.1",
6568 "yaml": "^2.37.40",
6669 "yargs": "^17.7.1",
6770 "yauzl": "^2.10.0"
6871 },
@@ -87,10 +90,11 @@
8790 "type": "git",
8891 "url": "https://github.com/SillyTavern/SillyTavern.git"
8992 },
9093 "version": "1.12.1213",
9194 "scripts": {
9295 "start": "node server.js",
9396 "debug": "node server.js --inspect server.js",
97+ "start:electron": "cd ./src/electron && npm run start",
9498 "start:deno": "deno run --allow-run --allow-net --allow-read --allow-write --allow-sys --allow-env server.js",
9599 "start:bun": "bun server.js",
96100 "start:no-csrf": "node server.js --disableCsrf",
@@ -109,23 +113,23 @@
109113 },
110114 "main": "server.js",
111115 "devDependencies": {
112116 "@types/archiver": "^6.0.23",
117+ "@types/bytes": "^3.1.5",
113118 "@types/command-exists": "^1.2.3",
114119 "@types/compression": "^1.7.5",
115120 "@types/cookie-parser": "^1.4.78",
116121 "@types/cookie-session": "^2.0.49",
117122 "@types/cors": "^2.8.17",
118123 "@types/deno": "^2.02.0",
119- "@types/dompurify": "^3.2.0",
120124 "@types/express": "^4.17.21",
121125 "@types/jquery": "^3.5.2932",
122126 "@types/jquery-cropper": "^1.0.4",
123127 "@types/jquery.transit": "^0.9.33",
124128 "@types/jqueryui": "^1.12.2324",
125129 "@types/lodash": "^4.17.1016",
126130 "@types/mime-types": "^2.1.4",
127131 "@types/multer": "^1.4.12",
128132 "@types/node": "^18.19.5580",
129133 "@types/node-persist": "^3.1.8",
130134 "@types/png-chunk-text": "^1.0.3",
131135 "@types/png-chunks-encode": "^1.0.2",
@@ -136,6 +140,6 @@
136140 "@types/write-file-atomic": "^4.0.3",
137141 "@types/yargs": "^17.0.33",
138142 "@types/yauzl": "^2.10.3",
139143 "eslint": "^8.57.01"
140144 }
141145}
plugins.js+2 -2
@@ -8,7 +8,7 @@ import path from 'node:path';
88import process from 'node:process';
99import { fileURLToPath } from 'node:url';
1010
1111import { default as git, CheckRepoActions } from 'simple-git';
1212import { color } from './src/util.js';
1313
1414const __dirname = import.meta.dirname ?? path.dirname(fileURLToPath(import.meta.url));
@@ -49,7 +49,7 @@ async function updatePlugins() {
4949 const pluginPath = path.join(pluginsPath, directory);
5050 const pluginRepo = git(pluginPath);
5151
5252 const isRepo = await pluginRepo.checkIsRepo(CheckRepoActions.IS_REPO_ROOT);
5353 if (!isRepo) {
5454 console.log(`Directory ${color.yellow(directory)} is not a Git repository`);
5555 continue;
post-install.js+31 -16
@@ -7,26 +7,13 @@ import crypto from 'node:crypto';
77import process from 'node:process';
88import yaml from 'yaml';
99import _ from 'lodash';
10+import chalk from 'chalk';
1011import { createRequire } from 'node:module';
1112
1213/**
1314 * Colorizes console output.
1415 */
1516const color = {chalk;
16- byNum: (mess, fgNum) => {
17- mess = mess || '';
18- fgNum = fgNum === undefined ? 31 : fgNum;
19- return '\u001b[' + fgNum + 'm' + mess + '\u001b[39m';
20- },
21- black: (mess) => color.byNum(mess, 30),
22- red: (mess) => color.byNum(mess, 31),
23- green: (mess) => color.byNum(mess, 32),
24- yellow: (mess) => color.byNum(mess, 33),
25- blue: (mess) => color.byNum(mess, 34),
26- magenta: (mess) => color.byNum(mess, 35),
27- cyan: (mess) => color.byNum(mess, 36),
28- white: (mess) => color.byNum(mess, 37),
29-};
3017
3118const keyMigrationMap = [
3219 {
@@ -104,6 +91,25 @@ const keyMigrationMap = [
10491 newKey: 'extensions.models.textToSpeech',
10592 migrate: (value) => value,
10693 },
94+ {
95+ oldKey: 'minLogLevel',
96+ newKey: 'logging.minLogLevel',
97+ migrate: (value) => value,
98+ },
99+ {
100+ oldKey: 'cardsCacheCapacity',
101+ newKey: 'performance.memoryCacheCapacity',
102+ migrate: (value) => `${value}mb`,
103+ },
104+ // uncomment one release after 1.12.13
105+ /*
106+ {
107+ oldKey: 'cookieSecret',
108+ newKey: 'cookieSecret',
109+ migrate: () => void 0,
110+ remove: true,
111+ },
112+ */
107113];
108114
109115/**
@@ -163,8 +169,17 @@ function addMissingConfigValues() {
163169
164170 // Migrate old keys to new keys
165171 const migratedKeys = [];
166172 for (const { oldKey, newKey, migrate, remove } of keyMigrationMap) {
167173 if (_.has(config, oldKey)) {
174+ if (remove) {
175+ _.unset(config, oldKey);
176+ migratedKeys.push({
177+ oldKey,
178+ newValue: void 0,
179+ });
180+ continue;
181+ }
182+
168183 const oldValue = _.get(config, oldKey);
169184 const newValue = migrate(oldValue);
170185 _.set(config, newKey, newValue);
public/css/scrollable-button.css+0 -1
@@ -1,6 +1,5 @@
11.scrollable-buttons-container {
22 max-height: 50vh; /* Use viewport height instead of fixed pixels */
3- overflow-y: auto;
43 -webkit-overflow-scrolling: touch; /* Momentum scrolling on iOS */
54 margin-top: 1rem; /* m-t-1 is equivalent to margin-top: 1rem; */
65 flex-shrink: 1;
public/css/toggle-dependent.css+6 -5
@@ -96,11 +96,6 @@ body.charListGrid #rm_print_characters_block .group_select .group_name_block,
9696 flex-direction: column;
9797}
9898
99-#user_avatar_block.gridView .avatar-container .avatar-buttons {
100- flex-wrap: wrap;
101- justify-content: space-evenly;
102-}
103-
10499body.charListGrid #rm_print_characters_block .bogus_folder_select .character_select_container,
105100body.charListGrid #rm_print_characters_block .character_select .character_select_container,
106101body.charListGrid #rm_print_characters_block .group_select .group_select_container,
@@ -231,10 +226,16 @@ body.big-avatars .avatars_inline_small .avatar img {
231226body.big-avatars .avatars_inline {
232227 max-height: calc(var(--avatar-base-height) * var(--big-avatar-height-factor) + 2 * var(--avatar-base-border-radius));
233228}
229+body.big-avatars .avatars_inline.avatars_multiline {
230+ max-height: fit-content;
231+}
234232
235233body.big-avatars .avatars_inline.avatars_inline_small {
236234 height: calc(var(--avatar-base-height) * var(--big-avatar-height-factor) * var(--inline-avatar-small-factor) + 2 * var(--avatar-base-border-radius));
237235}
236+body.big-avatars .avatars_inline.avatars_inline_small.avatars_multiline {
237+ height: inherit;
238+}
238239
239240body:not(.big-avatars) .avatars_inline_small .avatar_collage {
240241 min-width: calc(var(--avatar-base-width) * var(--inline-avatar-small-factor));
public/global.d.ts+21 -10
@@ -1,18 +1,21 @@
11import libs from './lib';
22import getContext from './scripts/st-context';
33
4-// Global namespace modules
4+declare global {
5-declare var ai;
5+ // Global namespace modules
6-declare var pdfjsLib;
6+ interface Window {
7-declare var ePub;
7+ ai: any;
8+ }
89
910 declare var SillyTavern: {pdfjsLib;
10- getContext(): typeof getContext;
11+ declare var ePub;
11- llm: any;
12+
12- libs: typeof libs;
13+ declare var SillyTavern: {
13-};
14+ getContext(): typeof getContext;
15+ llm: any;
16+ libs: typeof libs;
17+ };
1418
15-declare global {
1619 // Jquery plugins
1720 interface JQuery {
1821 nanogallery2(options?: any): JQuery;
@@ -40,4 +43,12 @@ declare global {
4043 searchInputCssClass?: string;
4144 }
4245 }
46+
47+ /**
48+ * Translates a text to a target language using a translation provider.
49+ * @param text Text to translate
50+ * @param lang Target language
51+ * @param provider Translation provider
52+ */
53+ async function translate(text: string, lang: string, provider: string = null): Promise<string>;
4354}
public/index.html+202 -88
@@ -1294,8 +1294,8 @@
12941294 <span data-i18n="TFS">TFS</span>
12951295 <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Tail_Free_Sampling_desc" title="Tail-Free Sampling (TFS) searches for a tail of low-probability tokens in the distribution,&#13;by analyzing the rate of change in token probabilities using derivatives. It retains tokens up to a threshold (e.g., 0.3) based on the normalized second derivative.&#13;The closer to 0, the more discarded tokens. Set to 1.0 to disable."></div>
12961296 </small>
12971297 <input class="neo-range-slider" type="range" id="tfs_textgenerationwebui" name="volume" min="0" max="1" step="0.01001">
12981298 <input class="neo-range-input" type="number" min="0" max="1" step="0.01001" data-for="tfs_textgenerationwebui" id="tfs_counter_textgenerationwebui">
12991299 </div>
13001300 <div data-tg-type="ooba,mancer,aphrodite" class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
13011301 <small>
@@ -1305,7 +1305,7 @@
13051305 <input class="neo-range-slider" type="range" id="epsilon_cutoff_textgenerationwebui" name="volume" min="0" max="9" step="0.01">
13061306 <input class="neo-range-input" type="number" min="0" max="9" step="0.01" data-for="epsilon_cutoff_textgenerationwebui" id="epsilon_cutoff_counter_textgenerationwebui">
13071307 </div>
13081308 <div data-tg-type="aphrodite,koboldcpp" class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
13091309 <small>
13101310 <span data-i18n="Top nsigma">Top nsigma</span>
13111311 <div class="fa-solid fa-circle-info opacity50p" title="A sampling method that filters logits based on their statistical properties. It keeps tokens within n standard deviations of the maximum logit value, providing a simpler alternative to top-p/top-k sampling while maintaining sampling stability across different temperatures."></div>
@@ -1477,8 +1477,8 @@
14771477 </div>
14781478 <div class="alignitemscenter flex-container marginBot5 flexFlowColumn flexGrow flexShrink gap0">
14791479 <small data-i18n="Exponent">Exponent</small>
14801480 <input class="neo-range-slider" type="range" id="dynatemp_exponent_textgenerationwebui" name="volume" min="0.01001" max="10" step="0.01001" />
14811481 <input class="neo-range-input" type="number" min="0.01001" max="10" step="0.01001" data-for="dynatemp_exponent_textgenerationwebui" id="dynatemp_exponent_counter_textgenerationwebui">
14821482 </div>
14831483 </div>
14841484 </div>
@@ -1951,7 +1951,18 @@
19511951 </span>
19521952 </div>
19531953 </div>
19541954 <div class="range-block" data-source="openai,cohere,mistralai,custom,claudemakersuite,openrouter,groq,deepseek">
1955+ <label for="openai_enable_web_search" class="checkbox_label flexWrap widthFreeExpand">
1956+ <input id="openai_enable_web_search" type="checkbox" />
1957+ <span data-i18n="Enable web search">Enable web search</span>
1958+ </label>
1959+ <div class="flexBasis100p toggle-description justifyLeft">
1960+ <span>
1961+ Use search capabilities provided by the backend.
1962+ </span>
1963+ </div>
1964+ </div>
1965+ <div class="range-block" data-source="openai,cohere,mistralai,custom,claude,openrouter,groq,deepseek,makersuite,ai21">
19551966 <label for="openai_function_calling" class="checkbox_label flexWrap widthFreeExpand">
19561967 <input id="openai_function_calling" type="checkbox" />
19571968 <span data-i18n="Enable function calling">Enable function calling</span>
@@ -1987,6 +1998,23 @@
19871998 </div>
19881999 </div>
19892000 <div class="range-block" data-source="makersuite">
2001+ <label for="openai_request_images" class="checkbox_label widthFreeExpand">
2002+ <input id="openai_request_images" type="checkbox" />
2003+ <span>
2004+ <span data-i18n="Request inline images">Request inline images</span>
2005+ <i class="opacity50p fa-solid fa-circle-info" title="Gemini 2.0 Flash Experimental"></i>
2006+ </span>
2007+ </label>
2008+ <div class="toggle-description justifyLeft marginBot5">
2009+ <span data-i18n="Allows the model to return image attachments.">
2010+ Allows the model to return image attachments.
2011+ </span>
2012+ <em data-source="makersuite" data-i18n="Request inline images_desc_2">
2013+ Incompatible with the following features: function calling, web search, system prompt.
2014+ </em>
2015+ </div>
2016+ </div>
2017+ <div class="range-block" data-source="makersuite">
19902018 <label for="use_makersuite_sysprompt" class="checkbox_label widthFreeExpand">
19912019 <input id="use_makersuite_sysprompt" type="checkbox" />
19922020 <span>
@@ -2000,7 +2028,7 @@
20002028 </span>
20012029 </div>
20022030 </div>
20032031 <div class="range-block" data-source="deepseek,openrouter,custom,claude">
20042032 <label for="openai_show_thoughts" class="checkbox_label widthFreeExpand">
20052033 <input id="openai_show_thoughts" type="checkbox" />
20062034 <span>
@@ -2014,10 +2042,11 @@
20142042 </span>
20152043 </div>
20162044 </div>
20172045 <div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,claude">
20182046 <div class="flex-container oneline-dropdown" title="Constrains effort on reasoning for reasoning models.&#10;Currently supported values are low, medium, and high.&#10;Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response." data-i18n="[title]Constrains effort on reasoning for reasoning models.">
20192047 <label for="openai_reasoning_effort" data-i18n="Reasoning Effort">
2020- Reasoning Effort
2048+ <span data-i18n="Reasoning Effort">Reasoning Effort</span>
2049+ <i data-source="claude" class="opacity50p fa-solid fa-circle-info" title="Allocates a portion of the response length for thinking (low: 10%, medium: 25%, high: 50%), but minimum 1024 tokens."></i>
20212050 </label>
20222051 <select id="openai_reasoning_effort">
20232052 <option data-i18n="openai_reasoning_effort_low" value="low">Low</option>
@@ -2866,6 +2895,10 @@
28662895 <option value="o3-mini">o3-mini</option>
28672896 <option value="o3-mini-2025-01-31">o3-mini-2025-01-31</option>
28682897 </optgroup>
2898+ <optgroup label="GPT-4.5">
2899+ <option value="gpt-4.5-preview">gpt-4.5-preview</option>
2900+ <option value="gpt-4.5-preview-2025-02-27">gpt-4.5-preview-2025-02-27</option>
2901+ </optgroup>
28692902 <optgroup label="GPT-4 Turbo and GPT-4">
28702903 <option value="gpt-4-turbo">gpt-4-turbo</option>
28712904 <option value="gpt-4-turbo-2024-04-09">gpt-4-turbo-2024-04-09</option>
@@ -2915,6 +2948,8 @@
29152948 <h4 data-i18n="Claude Model">Claude Model</h4>
29162949 <select id="model_claude_select">
29172950 <optgroup label="Versions">
2951+ <option value="claude-3-7-sonnet-latest">claude-3-7-sonnet-latest</option>
2952+ <option value="claude-3-7-sonnet-20250219">claude-3-7-sonnet-20250219</option>
29182953 <option value="claude-3-5-sonnet-latest">claude-3-5-sonnet-latest</option>
29192954 <option value="claude-3-5-sonnet-20241022">claude-3-5-sonnet-20241022</option>
29202955 <option value="claude-3-5-sonnet-20240620">claude-3-5-sonnet-20240620</option>
@@ -3060,7 +3095,15 @@
30603095 <div>
30613096 <h4 data-i18n="AI21 Model">AI21 Model</h4>
30623097 <select id="model_ai21_select">
30633098 <optgroup label="Jamba 1.5(Latest)">
3099+ <option value="jamba-mini">jamba-mini</option>
3100+ <option value="jamba-large">jamba-large</option>
3101+ </optgroup>
3102+ <optgroup label="Jamba 1.6">
3103+ <option value="jamba-1.6-mini">jamba-1.6-mini</option>
3104+ <option value="jamba-1.6-large">jamba-1.6-large</option>
3105+ </optgroup>
3106+ <optgroup label="Jamba 1.5 (Deprecated)">
30643107 <option value="jamba-1.5-mini">jamba-1.5-mini</option>
30653108 <option value="jamba-1.5-large">jamba-1.5-large</option>
30663109 </optgroup>
@@ -3091,6 +3134,9 @@
30913134 <option value="gemini-ultra">Gemini Ultra (1.0)</option>
30923135 <option value="gemini-1.0-ultra-latest">Gemini 1.0 Ultra</option>
30933136 </optgroup>
3137+ <optgroup label="Gemma">
3138+ <option value="gemma-3-27b-it">Gemma 3 27B</option>
3139+ </optgroup>
30943140 <optgroup label="Subversions">
30953141 <option value="gemini-2.0-pro-exp">Gemini 2.0 Pro Experimental</option>
30963142 <option value="gemini-2.0-pro-exp-02-05">Gemini 2.0 Pro Experimental 2025-02-05</option>
@@ -3101,6 +3147,7 @@
31013147 <option value="gemini-2.0-flash-thinking-exp-01-21">Gemini 2.0 Flash Thinking Experimental 2025-01-21</option>
31023148 <option value="gemini-2.0-flash-thinking-exp-1219">Gemini 2.0 Flash Thinking Experimental 2024-12-19</option>
31033149 <option value="gemini-2.0-flash-exp">Gemini 2.0 Flash Experimental</option>
3150+ <option value="gemini-2.0-flash-exp-image-generation">Gemini 2.0 Flash (Image Generation) Experimental</option>
31043151 <option value="gemini-exp-1114">Gemini Experimental 2024-11-14</option>
31053152 <option value="gemini-exp-1121">Gemini Experimental 2024-11-21</option>
31063153 <option value="gemini-exp-1206">Gemini Experimental 2024-12-06</option>
@@ -3186,21 +3233,33 @@
31863233 </div>
31873234 <h4 data-i18n="Groq Model">Groq Model</h4>
31883235 <select id="model_groq_select">
31893236 <optgroup label="ProductionAlibaba ModelsCloud">
31903237 <option value="gemma2qwen-9b2.5-it32b">gemma2qwen-9b2.5-it32b</option>
31913238 <option value="llamaqwen-32.35-70bcoder-versatile32b">llamaqwen-32.35-70bcoder-versatile32b</option>
3192- <option value="llama-3.1-8b-instant">llama-3.1-8b-instant</option>
3239+ </optgroup>
3193- <option value="llama3-70b-8192">llama3-70b-8192</option>
3240+ <optgroup label="DeepSeek / Alibaba Cloud">
31943241 <option value="llama3deepseek-8br1-8192distill-qwen-32b">llama3deepseek-8br1-8192distill-qwen-32b</option>
3195- <option value="mixtral-8x7b-32768">mixtral-8x7b-32768</option>
31963242 </optgroup>
31973243 <optgroup label="PreviewDeepSeek Models/ Meta">
31983244 <option value="deepseek-r1-distill-llama-70b">deepseek-r1-distill-llama-70b</option>
3199- <option value="llama-3.3-70b-specdec">llama-3.3-70b-specdec</option>
3245+ </optgroup>
3200- <option value="llama-3.2-1b-preview">llama-3.2-1b-preview</option>
3246+ <optgroup label="Google">
32013247 <option value="llama-3.2gemma2-3b9b-previewit">llama-3.2gemma2-3b9b-previewit</option>
3202- <option value="llama-3.2-11b-vision-preview">llama-3.2-11b-vision-preview</option>
3248+ </optgroup>
3203- <option value="llama-3.2-90b-vision-preview">llama-3.2-90b-vision-preview</option>
3249+ <optgroup label="Meta">
3250+ <option value="llama-3.1-8b-instant">llama-3.1-8b-instant </option>
3251+ <option value="llama-3.2-11b-vision-preview">llama-3.2-11b-vision-preview </option>
3252+ <option value="llama-3.2-1b-preview">llama-3.2-1b-preview </option>
3253+ <option value="llama-3.2-3b-preview">llama-3.2-3b-preview </option>
3254+ <option value="llama-3.2-90b-vision-preview">llama-3.2-90b-vision-preview </option>
3255+ <option value="llama-3.3-70b-specdec">llama-3.3-70b-specdec </option>
3256+ <option value="llama-3.3-70b-versatile">llama-3.3-70b-versatile </option>
3257+ <option value="llama-guard-3-8b">llama-guard-3-8b </option>
3258+ <option value="llama3-70b-8192">llama3-70b-8192 </option>
3259+ <option value="llama3-8b-8192">llama3-8b-8192 </option>
3260+ </optgroup>
3261+ <optgroup label="Mistral AI">
3262+ <option value="mixtral-8x7b-32768">mixtral-8x7b-32768</option>
32043263 </optgroup>
32053264 </select>
32063265 </div>
@@ -3253,6 +3312,10 @@
32533312 <option value="sonar">sonar</option>
32543313 <option value="sonar-pro">sonar-pro</option>
32553314 <option value="sonar-reasoning">sonar-reasoning</option>
3315+ <option value="sonar-reasoning-pro">sonar-reasoning-pro</option>
3316+ </optgroup>
3317+ <optgroup label="Offline Models">
3318+ <option value="r1-1776">r1-1776</option>
32563319 </optgroup>
32573320 <optgroup label="Deprecated Models">
32583321 <!-- These are scheduled for deprecation after 2/22/2025 -->
@@ -3282,6 +3345,8 @@
32823345 <option value="c4ai-aya-23">c4ai-aya-23</option>
32833346 <option value="c4ai-aya-expanse-8b">c4ai-aya-expanse-8b</option>
32843347 <option value="c4ai-aya-expanse-32b">c4ai-aya-expanse-32b</option>
3348+ <option value="c4ai-aya-vision-8b">c4ai-aya-vision-8b</option>
3349+ <option value="c4ai-aya-vision-32b">c4ai-aya-vision-32b</option>
32853350 <option value="command-light">command-light</option>
32863351 <option value="command">command</option>
32873352 <option value="command-r">command-r</option>
@@ -3289,6 +3354,7 @@
32893354 <option value="command-r-08-2024">command-r-08-2024</option>
32903355 <option value="command-r-plus-08-2024">command-r-plus-08-2024</option>
32913356 <option value="command-r7b-12-2024">command-r7b-12-2024</option>
3357+ <option value="command-a-03-2025">command-a-03-2025</option>
32923358 </optgroup>
32933359 <optgroup label="Nightly">
32943360 <option value="command-light-nightly">command-light-nightly</option>
@@ -3318,7 +3384,7 @@
33183384 </div>
33193385 <div>
33203386 <small>
33213387 <span data-i18n="Doesn't work? Try adding">Doesn't work? Try adding</span> <code>/v1</code> <span data-i18n="at the end of the URL!">at the end of the URL!</span>
33223388 </small>
33233389 </div>
33243390 <h4>
@@ -3790,6 +3856,7 @@
37903856 <option value="14">Jamba</option>
37913857 <option value="15">Qwen2</option>
37923858 <option value="16">Command-R</option>
3859+ <option value="19">Command-A</option>
37933860 <option value="4">NerdStash (NovelAI Clio)</option>
37943861 <option value="5">NerdStash v2 (NovelAI Kayra)</option>
37953862 <option value="7">Mistral V1</option>
@@ -4001,7 +4068,7 @@
40014068 <div class="alignitemscenter flex-container flexFlowColumn flexGrow flexShrink gap0 flexBasis48p" title="Cap the number of entry activation recursions" data-i18n="[title]Cap the number of entry activation recursions">
40024069 <small>
40034070 <span data-i18n="Max Recursion Steps">Max Recursion Steps</span>
40044071 <div class="fa-solid fa-triangle-exclamation opacity50p" data-i18n="[title]0 = unlimited, 1 = scans once and doesn't recurse, 2 = scans once and recurses once, etc\n(disabled when min activations are used)" title="0 = unlimited, 1 = scans once and doesn't recurse, 2 = scans once and recurses once, etc&#10;(disabled when min activations are used)"></div>
40054072 </small>
40064073 <input class="neo-range-slider" type="range" id="world_info_max_recursion_steps" name="world_info_max_recursion_steps" min="0" max="10" step="1">
40074074 <input class="neo-range-input" type="number" min="0" max="10" step="1" data-for="world_info_max_recursion_steps" id="world_info_max_recursion_steps_counter">
@@ -4130,7 +4197,7 @@
41304197 </div>
41314198 <div id="UI-language-block" class="flex-container alignItemsBaseline">
41324199 <span data-i18n="UI Language">Language:</span>
41334200 <select id="ui_language_select" class="flex1 margin0 text_pole">
41344201 <option value="" data-i18n="Default">Default</option>
41354202 <option value="en">English</option>
41364203 </select>
@@ -4188,7 +4255,7 @@
41884255 <!-- <h4><span data-i18n="UI Colors">Theme Settings</span></h4> -->
41894256 <div name="AvatarAndChatDisplay" class="flex-container flexFlowColumn">
41904257 <div class="flex-container alignItemsBaseline">
41914258 <span data-i18n="Avatar Style:">Avatars:</span>
41924259 <select id="avatar_style" class="widthNatural flex1 margin0">
41934260 <option value="0" data-i18n="Circle">Circle</option>
41944261 <option value="2" data-i18n="Square">Square</option>
@@ -4398,7 +4465,7 @@
43984465 <option data-i18n="Ask" value="1">Ask</option>
43994466 <option data-i18n="tag_import_none" value="2">None</option>
44004467 <option data-i18n="tag_import_all" value="3">All</option>
44014468 <option data-i18n="Existingtag_import_existing" value="4">Existing</option>
44024469 </select>
44034470 </div>
44044471 <label class="checkbox_label" for="fuzzy_search_checkbox" title="Use fuzzy matching, and search characters in the list by all data fields, not just by a name substring." data-i18n="[title]Use fuzzy matching, and search characters in the list by all data fields, not just by a name substring">
@@ -4413,7 +4480,7 @@
44134480 <input id="prefer_character_jailbreak" type="checkbox" />
44144481 <small data-i18n="Prefer Character Card Instructions">Prefer Char. Instructions</small>
44154482 </label>
44164483 <label class="checkbox_label" for="never_resize_avatars" title="Avoid cropping and resizing imported character images. When off, crop/resize to 512x768.&#10;This will disable the upload cropping popup for avatars." data-i18n="[title]Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip">
44174484 <input id="never_resize_avatars" type="checkbox" />
44184485 <small data-i18n="Never resize avatars">Never resize avatars</small>
44194486 </label>
@@ -4666,7 +4733,7 @@
46664733 <small data-i18n="Enabled">Enabled</small>
46674734 </label>
46684735 <small data-i18n="Minimum generated message length">Minimum generated message length</small>
46694736 <input id="auto_swipe_minimum_length" name="auto_swipe_minimum_length" type="number" min="0" step="1" value="0" class="text_pole" title="If the generated message is shorter than thisthese many characters, trigger an auto-swipe." data-i18n="[title]If the generated message is shorter than thisthese many characters, trigger an auto-swipe">
46704737 <small data-i18n="Blacklisted words">Blacklisted words</small>
46714738 <div class="auto_swipe">
46724739 <textarea id="auto_swipe_blacklist" name="auto_swipe_blacklist" data-i18n="[placeholder]words you dont want generated separated by comma ','" placeholder="words you don't want generated separated by comma ','" class="text_pole textarea_compact" value="" autocomplete="off" rows="3"></textarea>
@@ -4917,7 +4984,10 @@
49174984 </div>
49184985 <hr class="wide100p margin0">
49194986 <div class="alignitemscenter flex-container justifyCenter wide100p" style="justify-content: space-between;">
4920- <h4 class="margin0"><span data-i18n="Extras API:">Extras API:</span></h4>
4987+ <h4 class="margin0">
4988+ <span data-i18n="(DEPRECATED)">(DEPRECATED)</span>
4989+ <span data-i18n="Extras API:">Extras API:</span>
4990+ </h4>
49214991 <div class="flex-container">
49224992 <div id="extensions_status" data-i18n="Not connected...">Not connected...</div>
49234993 <label for="extensions_autoconnect" class="checkbox_label flexNoGap">
@@ -4968,7 +5038,7 @@
49685038 </div>
49695039 </div>
49705040 <div id="persona-management-block" class="flex-container wide100p flexGap10">
49715041 <div class="persona_management_left_column flex1 overflowHidden wide100p">
49725042 <div class="flex-container marginBot10 alignitemscenter">
49735043 <div id="create_dummy_persona" class="menu_button menu_button_icon" title="Create a dummy persona" data-i18n="[title]Create a dummy persona">
49745044 <i class="fa-solid fa-person-circle-question fa-fw"></i>
@@ -4991,27 +5061,34 @@
49915061 <input type="hidden" id="avatar_upload_overwrite" name="overwrite_name" value="">
49925062 </form>
49935063 </div>
49945064 <div class="persona_management_right_column flex1">
49955065 <h4div data-i18nclass="Namepersona_management_current_persona">Name</h4>
4996- <div class="change_name">
5066+ <h4 class="standoutHeader" data-i18n="Current Persona">Current Persona</h4>
4997- <input id="your_name" name="your_name" data-i18n="[placeholder]Enter your name" placeholder="Enter your name" class="text_pole wide100p" value="" autocomplete="off">
5067+
4998- <div id="your_name_button" class="menu_button fa-solid fa-check" title="Click to set a new User Name" data-i18n="[title]Click to set a new User Name">
5068+ <div id="persona_controls" class="flex-container">
4999- </div>
5069+ <h5 id="your_name" class="persona_name">[Persona Name]</h5>
5000- <div id="lock_user_name" class="menu_button fa-solid fa-unlock" title="Click to lock your selected persona to the current chat. Click again to remove the lock." data-i18n="[title]Click to lock your selected persona to the current chat. Click again to remove the lock.">
5070+ <div class="persona_controls_buttons_block buttons_block">
5001- </div>
5071+ <div id="persona_rename_button" class="menu_button fa-solid fa-pencil" title="Rename Persona" data-i18n="[title]Rename Persona"></div>
50025072 <div id="sync_name_button" class="menu_button fa-solid fa-sync" title="Click to set user name for all messages" data-i18n="[title]Click to set user name for all messages"></div>
5003- </div>
5073+ <div id="persona_lore_button" class="menu_button fa-solid fa-globe" title="Persona Lore&#10;Alt+Click to open the lorebook" data-i18n="[title]Persona Lore Alt+Click to open the lorebook"></div>
5004- <div id="persona_lore_button" class="menu_button fa-solid fa-globe" title="Persona Lore&#10;Alt+Click to open the lorebook" data-i18n="[title]Persona Lore Alt+Click to open the lorebook">
5074+
5075+ <div id="persona_set_image_button" class="menu_button fa-solid fa-image" title="Change Persona Image" data-i18n="[title]Change Persona Image"></div>
5076+ <div id="persona_duplicate_button" class="menu_button fa-solid fa-clone" title="Duplicate Persona" data-i18n="[title]Duplicate Persona"></div>
5077+ <div id="persona_delete_button" class="menu_button fa-solid fa-skull red_button" title="Delete Persona" data-i18n="[title]Delete Persona"></div>
5078+ </div>
50055079 </div>
5006- </div>
5080+
5007- <div>
50085081 <h4 data-i18n="Persona Description">Persona Description</h4>
50095082 <textarea id="persona_description" name="persona_description" data-i18n="[placeholder]Example: [{{user}} is a 28-year-old Romanian cat girl.]" placeholder="Example:&#10;[{{user}} is a 28-year-old Romanian cat girl.]" class="text_pole textarea_compact" value="" autocomplete="off" rows="8"></textarea>
5010- <div class="extension_token_counter">
5083+
5011- <span data-i18n="Tokens persona description">Tokens</span>: <span id="persona_description_token_count">0</span>
5084+ <div class="flex-container justifySpaceBetween">
5085+ <h4 data-i18n="Position">Position</h4>
5086+ <div class="extension_token_counter widthFitContent">
5087+ <span data-i18n="Tokens persona description">Tokens</span>: <span id="persona_description_token_count">0</span>
5088+ </div>
50125089 </div>
5013- <div>
5090+
5014- <label for="persona_description_position" data-i18n="Position:">Position:</label>
5091+ <div class="persona_management_description_position_container">
50155092 <select id="persona_description_position">
50165093 <option value="9" data-i18n="None (disabled)">None (disabled)</option>
50175094 <option value="0" data-i18n="In Story String / Prompt Manager">In Story String / Prompt Manager</option>
@@ -5034,14 +5111,54 @@
50345111 </div>
50355112 </div>
50365113 </div>
5114+
5115+ <h4 data-i18n="Connections">Connections</h4>
5116+ <div id="persona_connections_buttons" class="flex-container">
5117+ <div id="lock_persona_default" class="menu_button menu_button_icon" title="Click to select this as default persona for the new chats. Click again to remove it." data-i18n="[title]Click to select this as default persona for the new chats. Click again to remove it.">
5118+ <i class="icon fa-solid fa-crown fa-fw"></i>
5119+ <div data-i18n="Default">Default</div>
5120+ </div>
5121+ <div id="lock_persona_to_char" class="menu_button menu_button_icon" title="Click to lock your selected persona to the current character. Click again to remove the lock." data-i18n="[title]Click to lock your selected persona to the current character. Click again to remove the lock.">
5122+ <i class="icon fa-solid fa-unlock fa-fw"></i>
5123+ <div data-i18n="Character">Character</div>
5124+ </div>
5125+ <div id="lock_user_name" class="menu_button menu_button_icon" title="Click to lock your selected persona to the current chat. Click again to remove the lock." data-i18n="[title]Click to lock your selected persona to the current chat. Click again to remove the lock.">
5126+ <i class="icon fa-solid fa-unlock fa-fw"></i>
5127+ <div data-i18n="Chat">Chat</div>
5128+ </div>
5129+ </div>
5130+ <div id="persona_connections_info_block"></div>
5131+ <div id="persona_connections_list" class="text_muted m-b-1 avatars_inline avatars_multiline scroll-reset-container expander">
5132+ </div>
50375133 </div>
5038- <div class="range-block">
5134+
50395135 <label for="persona_show_notifications"div class="checkbox_labelpersona_management_global_settings">
50405136 <inputh4 idclass="persona_show_notificationsstandoutHeader" typedata-i18n="checkboxGlobal Settings">Global Settings</h4>
5041- <span data-i18n="Show notifications on switching personas">
5137+
5042- Show notifications on switching personas
5138+ <div class="range-block">
5043- </span>
5139+ <label for="persona_show_notifications" class="checkbox_label">
5044- </label>
5140+ <input id="persona_show_notifications" type="checkbox" />
5141+ <span data-i18n="Show notifications on switching personas">
5142+ Show notifications on switching personas
5143+ </span>
5144+ </label>
5145+ </div>
5146+ <div class="range-block">
5147+ <label for="persona_allow_multi_connections" class="checkbox_label" title="When multiple personas are connected to a character, a popup will appear to select which one to use." data-i18n="[title]When multiple personas are connected to a character, a popup will appear to select which one to use">
5148+ <input id="persona_allow_multi_connections" type="checkbox" />
5149+ <span data-i18n="Allow multiple persona connections per character">
5150+ Allow multiple persona connections per character
5151+ </span>
5152+ </label>
5153+ </div>
5154+ <div class="range-block">
5155+ <label for="persona_auto_lock" class="checkbox_label" title="Whenever a persona is selected, it will be locked to the current chat and automatically selected when the chat is opened." data-i18n="[title]Whenever a persona is selected, it will be locked to the current chat and automatically selected when the chat is opened.">
5156+ <input id="persona_auto_lock" type="checkbox" />
5157+ <span data-i18n="Auto-lock a chosen persona to the chat">
5158+ Auto-lock a chosen persona to the chat
5159+ </span>
5160+ </label>
5161+ </div>
50455162 </div>
50465163 </div>
50475164 </div>
@@ -5068,7 +5185,7 @@
50685185 <div class="right_menu_button fa-solid fa-list-ul" id="rm_button_characters" title="Select/Create Characters" data-i18n="[title]Select/Create Characters"></div>
50695186 </div>
50705187 <div id="HotSwapWrapper" class="alignitemscenter flex-container margin0auto wide100p">
50715188 <div class="hotswap avatars_inline flex-container scroll-reset-container expander" data-i18n="[no_favs]Favorite characters to add them to HotSwaps" no_favs="Favorite characters to add them to HotSwaps"></div>
50725189 </div>
50735190 </div>
50745191 <hr>
@@ -5106,13 +5223,13 @@
51065223 </div>
51075224 </div>
51085225 <div class="flex-container flexFlowColumn expander flexNoGap">
51095226 <div id="avatar_div" class="avatar_div buttons_block alignitemsflexstart justifySpaceBetween flexnowrap">
51105227 <label id="avatar_div_div" class="add_avatar avatar" for="add_avatar_button" title="Click to select a new avatar for this character" data-i18n="[title]Click to select a new avatar for this character">
51115228 <img id="avatar_load_preview" src="img/ai4.png" alt="avatar">
51125229 <input hidden type="file" id="add_avatar_button" name="avatar" accept="image/*">
51135230 </label>
51145231 <div class="flex-container" id="avatar_controls">
51155232 <div class="form_create_bottom_buttons_block buttons_block">
51165233 <div id="rm_button_back" class="menu_button fa-solid fa-left-long "></div>
51175234 <!-- <div id="renameCharButton" class="menu_button fa-solid fa-user-pen" title="Rename Character"></div> -->
51185235 <div id="favorite_button" class="menu_button fa-solid fa-star" title="Add to Favorites" data-i18n="[title]Add to Favorites"></div>
@@ -5120,6 +5237,7 @@
51205237 <div id="advanced_div" class="menu_button fa-solid fa-book " title="Advanced Definitions" data-i18n="[title]Advanced Definition"></div>
51215238 <div id="world_button" class="menu_button fa-solid fa-globe" title="Character Lore&#10;&#10;Click to load&#10;Shift-click to open 'Link to World Info' popup" data-i18n="[title]world_button_title"></div>
51225239 <div class="chat_lorebook_button menu_button fa-solid fa-passport" title="Chat Lore&#10;Alt+Click to open the lorebook" data-i18n="[title]Chat Lore Alt+Click to open the lorebook"></div>
5240+ <div id="char_connections_button" class="menu_button fa-solid fa-face-smile" title="Connected Personas" data-i18n="[title]Connected Personas"></div>
51235241 <div id="export_button" class="menu_button fa-solid fa-file-export " title="Export and Download" data-i18n="[title]Export and Download"></div>
51245242 <!-- <div id="set_chat_scenario" class="menu_button fa-solid fa-scroll" title="Set a chat scenario override"></div> -->
51255243 <!-- <div id="set_character_world" class="menu_button fa-solid fa-globe" title="Set a character World Info / Lorebook"></div> -->
@@ -5127,7 +5245,7 @@
51275245 <label for="create_button" id="create_button_label" class="menu_button fa-solid fa-user-check" title="Create Character" data-i18n="[title]Create Character">
51285246 <input type="submit" id="create_button" name="create_button">
51295247 </label>
51305248 <div id="delete_button" class="menu_button fa-solid fa-skull red_button" title="Delete Character" data-i18n="[title]Delete Character"></div>
51315249 </div>
51325250 <label class="flex1 height100p" for="char-management-dropdown">
51335251 <select id="char-management-dropdown" class="text_pole">
@@ -5287,6 +5405,7 @@
52875405 <option value="2" data-i18n="Manual">Manual</option>
52885406 <option value="0" data-i18n="Natural order">Natural order</option>
52895407 <option value="1" data-i18n="List order">List order</option>
5408+ <option value="3" data-i18n="Pooled order">Pooled order</option>
52905409 </select>
52915410 </div>
52925411 <div class="flex1 flexGap5">
@@ -5317,17 +5436,17 @@
53175436 </div>
53185437 </div>
53195438 <div id="GroupFavDelOkBack" class="flex-container flexGap5 spaceEvenly flex1">
53205439 <div id="rm_button_back_from_group" class="heightFitContent margin0 menu_button fa-solid fa-fw fa-left-long"></div>
53215440 <div id="rm_group_scenario" class="heightFitContent margin0 menu_button fa-solid fa-fw fa-scroll" title="Set a group chat scenario" data-i18n="[title]Set a group chat scenario"></div>
53225441 <div id="group_favorite_button" class="heightFitContent margin0 menu_button fa-solid fa-fw fa-star" title="Add to Favorites" data-i18n="[title]Add to Favorites"></div>
53235442 <input id="rm_group_fav" type="hidden" />
53245443 <div id="group_open_media_overrides" class="heightFitContent margin0 menu_button menu_button_icon open_media_overrides" title="Click to allow/forbid the use of external media for this group." data-i18n="[title]Click to allow/forbid the use of external media for this group.">
53255444 <i id="group_media_allowed_icon" class="fa-solid fa-fw fa-link"></i>
53265445 <i id="group_media_forbidden_icon" class="fa-solid fa-fw fa-link-slash"></i>
53275446 </div>
53285447 <div id="rm_group_submit" class="heightFitContent margin0 menu_button fa-solid fa-fw fa-check" title="Create" data-i18n="[title]Create"></div>
53295448 <div id="rm_group_restore_avatar" class="heightFitContent margin0 menu_button fa-solid fa-fw fa-images" title="Restore collage avatar" data-i18n="[title]Restore collage avatar"></div>
53305449 <div id="rm_group_delete" class="heightFitContent margin0 menu_button fa-solid fa-fw fa-trash-can" title="Delete" data-i18n="[title]Delete"></div>
53315450 <div class="flex1">
53325451 <label class="checkbox_label whitespacenowrap">
53335452 <input id="rm_group_allow_self_responses" type="checkbox" />
@@ -5464,25 +5583,20 @@
54645583 <div class="flex-container wide100pLess70px character_select_container">
54655584 <div class="wide100p character_name_block">
54665585 <span class="ch_name flex1"></span>
5467- <div class="avatar-buttons">
5468- <button class="menu_button bind_user_name" title="Bind user name to that avatar" data-i18n="[title]Bind user name to that avatar">
5469- <i class="fa-fw fa-solid fa-user-edit fa-sm"></i>
5470- </button>
5471- <button class="menu_button set_persona_image" title="Change persona image" data-i18n="[title]Change persona image">
5472- <i class="fa-fw fa-solid fa-image fa-sm"></i>
5473- </button>
5474- <button class="menu_button set_default_persona" title="Select this as default persona for the new chats." data-i18n="[title]Select this as default persona for the new chats.">
5475- <i class="fa-fw fa-solid fa-crown fa-sm"></i>
5476- </button>
5477- <button class="menu_button duplicate_persona" title="Duplicate persona" data-i18n="[title]Duplicate persona">
5478- <i class="fa-fw fa-solid fa-clone fa-sm"></i>
5479- </button>
5480- <button class="menu_button delete_avatar" title="Delete persona" data-i18n="[title]Delete persona">
5481- <i class="fa-fw fa-solid fa-trash-alt fa-sm"></i>
5482- </button>
5483- </div>
54845586 </div>
54855587 <div class="ch_description"></div>
5588+ <div class="avatar_container_states buttons_block">
5589+ <div class="locked_to_chat_label avatar_state has_hover_label menu_button menu_button_icon disabled" title="Persona is locked to the current chat" data-i18n="[title]Persona is locked to the current chat">
5590+ <i class="icon fa-solid fa-lock fa-fw"></i>
5591+ <i class="label_icon icon fa-solid fa-comments fa-fw"></i>
5592+ <div class="label" data-i18n="Chat">Chat</div>
5593+ </div>
5594+ <div class="locked_to_character_label avatar_state has_hover_label menu_button menu_button_icon disabled " title="Persona is locked to the current character" data-i18n="[title]Persona is locked to the current character">
5595+ <i class="icon fa-solid fa-lock fa-fw"></i>
5596+ <i class="label_icon icon fa-solid fa-user fa-fw"></i>
5597+ <div class="label" data-i18n="Character">Character</div>
5598+ </div>
5599+ </div>
54865600 </div>
54875601 </div>
54885602 </div>
@@ -6308,7 +6422,7 @@
63086422 </div>
63096423 </div>
63106424 <div class="mes_reasoning_actions flex-container">
63116425 <div class="mes_reasoning_edit_done menu_button edit_button fa-solid fa-check" title="Confirm" data-i18n="[title]ConfirmeditConfirm Edit"></div>
63126426 <div class="mes_reasoning_delete menu_button edit_button fa-solid fa-trash-can" title="Remove reasoning" data-i18n="[title]Remove reasoning"></div>
63136427 <div class="mes_reasoning_edit_cancel menu_button edit_button fa-solid fa-xmark" title="Cancel edit" data-i18n="[title]Cancel edit"></div>
63146428 <div class="mes_reasoning_copy mes_button fa-solid fa-copy" title="Copy reasoning" data-i18n="[title]Copy reasoning"></div>
@@ -6890,8 +7004,8 @@
68907004 </div>
68917005 <div id="form_sheld">
68927006 <div id="dialogue_del_mes">
68937007 <div id="dialogue_del_mes_ok" data-i18n="Delete" class="menu_button">Delete</div>
68947008 <div id="dialogue_del_mes_cancel" data-i18n="Cancel" class="menu_button">Cancel</div>
68957009 </div>
68967010 <div id="send_form" class="no-connection">
68977011 <form id="file_form" class="wide100p displayNone">
public/jsconfig.json+2 -1
@@ -14,7 +14,8 @@
1414 "**/.git/**",
1515 "lib/**",
1616 "**/*.min.js",
1717 "scripts/extensions/quick-reply/lib/**",
18+ "scripts/extensions/tts/lib/**"
1819 ],
1920 "typeAcquisition": {
2021 "include": []
public/lib.js+3 -0
@@ -20,6 +20,7 @@ import * as Popper from '@popperjs/core';
2020import droll from 'droll';
2121import morphdom from 'morphdom';
2222import { toggle as slideToggle } from 'slidetoggle';
23+import chalk from 'chalk';
2324
2425/**
2526 * Expose the libraries to the 'window' object.
@@ -96,6 +97,7 @@ export default {
9697 droll,
9798 morphdom,
9899 slideToggle,
100+ chalk,
99101};
100102
101103export {
@@ -118,4 +120,5 @@ export {
118120 droll,
119121 morphdom,
120122 slideToggle,
123+ chalk,
121124};
public/lib/eventemitter.js+43 -2
@@ -24,10 +24,22 @@ if (typeof Array.prototype.indexOf === 'function') {
2424
2525
2626/* Polyfill EventEmitter. */
27-var EventEmitter = function () {
27+/**
28+ * Creates an event emitter.
29+ * @param {string[]} autoFireAfterEmit Auto-fire event names
30+ */
31+var EventEmitter = function (autoFireAfterEmit = []) {
2832 this.events = {};
33+ this.autoFireLastArgs = new Map();
34+ this.autoFireAfterEmit = new Set(autoFireAfterEmit);
2935};
3036
37+/**
38+ * Adds a listener to an event.
39+ * @param {string} event Event name
40+ * @param {function} listener Event listener
41+ * @returns
42+ */
3143EventEmitter.prototype.on = function (event, listener) {
3244 // Unknown event used by external libraries?
3345 if (event === undefined) {
@@ -40,6 +52,10 @@ EventEmitter.prototype.on = function (event, listener) {
4052 }
4153
4254 this.events[event].push(listener);
55+
56+ if (this.autoFireAfterEmit.has(event) && this.autoFireLastArgs.has(event)) {
57+ listener.apply(this, this.autoFireLastArgs.get(event));
58+ }
4359};
4460
4561/**
@@ -60,6 +76,10 @@ EventEmitter.prototype.makeLast = function (event, listener) {
6076 }
6177
6278 events.push(listener);
79+
80+ if (this.autoFireAfterEmit.has(event) && this.autoFireLastArgs.has(event)) {
81+ listener.apply(this, this.autoFireLastArgs.get(event));
82+ }
6383}
6484
6585/**
@@ -80,8 +100,17 @@ EventEmitter.prototype.makeFirst = function (event, listener) {
80100 }
81101
82102 events.unshift(listener);
103+
104+ if (this.autoFireAfterEmit.has(event) && this.autoFireLastArgs.has(event)) {
105+ listener.apply(this, this.autoFireLastArgs.get(event));
106+ }
83107}
84108
109+/**
110+ * Removes a listener from an event.
111+ * @param {string} event Event name
112+ * @param {function} listener Event listener
113+ */
85114EventEmitter.prototype.removeListener = function (event, listener) {
86115 var idx;
87116
@@ -94,6 +123,10 @@ EventEmitter.prototype.removeListener = function (event, listener) {
94123 }
95124};
96125
126+/**
127+ * Emits an event with optional arguments.
128+ * @param {string} event Event name
129+ */
97130EventEmitter.prototype.emit = async function (event) {
98131 let args = [].slice.call(arguments, 1);
99132 if (localStorage.getItem('eventTracing') === 'true') {
@@ -118,6 +151,10 @@ EventEmitter.prototype.emit = async function (event) {
118151 }
119152 }
120153 }
154+
155+ if (this.autoFireAfterEmit.has(event)) {
156+ this.autoFireLastArgs.set(event, args);
157+ }
121158};
122159
123160EventEmitter.prototype.emitAndWait = function (event) {
@@ -144,10 +181,14 @@ EventEmitter.prototype.emitAndWait = function (event) {
144181 }
145182 }
146183 }
184+
185+ if (this.autoFireAfterEmit.has(event)) {
186+ this.autoFireLastArgs.set(event, args);
187+ }
147188};
148189
149190EventEmitter.prototype.once = function (event, listener) {
150191 this.on(event, function g () {
151192 this.removeListener(event, g);
152193 listener.apply(this, arguments);
153194 });
public/locales/ar-sa.json+3 -3
@@ -558,7 +558,7 @@
558558 "Delete a theme": "حذف موضوع",
559559 "Update a theme file": "تحديث ملف السمة",
560560 "Save as a new theme": "حفظ كسمة جديدة",
561561 "Avatar Style:": "نمط الصورة الرمزية",
562562 "Circle": "دائرة",
563563 "Square": "مربع",
564564 "Rectangle": "مستطيل",
@@ -633,7 +633,7 @@
633633 "Prefer Character Card Prompt": "تفضيل التعليمات من بطاقة الشخصية",
634634 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "إذا تم التحقق وكانت بطاقة الشخصية تحتوي على تجاوز للكسر (تعليمات تاريخ المشاركة)، استخدم ذلك بدلاً من ذلك",
635635 "Prefer Character Card Jailbreak": "تفضيل كسر الحصار من بطاقة الشخصية",
636636 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "تجنب اقتصاص صور الأحرف المستوردة وتغيير حجمها. عند إيقاف التشغيل، قم بالقص/تغيير الحجم إلى 512 × 768.",
637637 "Never resize avatars": "لا تغيير حجم الصور الرمزية أبدًا",
638638 "Show actual file names on the disk, in the characters list display only": "عرض الأسماء الفعلية للملفات على القرص، في عرض قائمة الشخصيات فقط",
639639 "Show avatar filenames": "عرض أسماء ملفات الصور الرمزية",
@@ -709,7 +709,7 @@
709709 "Auto-swipe": "السحب التلقائي",
710710 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "تمكين وظيفة السحب التلقائي. الإعدادات في هذا القسم تؤثر فقط عند تمكين السحب التلقائي",
711711 "Minimum generated message length": "الحد الأدنى لطول الرسالة المولدة",
712712 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "إذا كانت الرسالة المولدة أقصر من هذا، فتحريض السحب التلقائي",
713713 "Blacklisted words": "الكلمات الممنوعة",
714714 "words you dont want generated separated by comma ','": "الكلمات التي لا تريد توليدها مفصولة بفاصلة ','",
715715 "Blacklisted word count to swipe": "عدد الكلمات الممنوعة للسحب",
public/locales/de-de.json+3 -3
@@ -558,7 +558,7 @@
558558 "Delete a theme": "Löschen eines Designs",
559559 "Update a theme file": "Ein Theme-Datei aktualisieren",
560560 "Save as a new theme": "Als neues Theme speichern",
561561 "Avatar Style:": "Avatar-Stil",
562562 "Circle": "Kreis",
563563 "Square": "Quadrat",
564564 "Rectangle": "Rechteck",
@@ -633,7 +633,7 @@
633633 "Prefer Character Card Prompt": "Bevorzuge Charakterkarten-Prompt",
634634 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "Wenn aktiviert und die Charakterkarte eine Jailbreak-Überschreibung enthält (Post-History-Instruction), verwende stattdessen diese",
635635 "Prefer Character Card Jailbreak": "Bevorzuge Charakterkarten-Jailbreak",
636636 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "Vermeiden Sie das Zuschneiden und Ändern der Größe importierter Zeichenbilder. Wenn deaktiviert, wird die Größe auf 512 x 768 zugeschnitten/angepasst.",
637637 "Never resize avatars": "Avatare niemals verkleinern",
638638 "Show actual file names on the disk, in the characters list display only": "Zeige tatsächliche Dateinamen auf der Festplatte, nur in der Anzeige der Charakterliste",
639639 "Show avatar filenames": "Avatar-Dateinamen anzeigen",
@@ -709,7 +709,7 @@
709709 "Auto-swipe": "Automatisches Wischen",
710710 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "Aktiviere die Auto-Wisch-Funktion. Einstellungen in diesem Abschnitt haben nur dann Auswirkungen, wenn das automatische Wischen aktiviert ist",
711711 "Minimum generated message length": "Minimale generierte Nachrichtenlänge",
712712 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "Wenn die generierte Nachricht kürzer ist als diese, löse automatisches Wischen aus",
713713 "Blacklisted words": "Verbotene Wörter",
714714 "words you dont want generated separated by comma ','": "Wörter, die du nicht generiert haben möchtest, durch Komma ',' getrennt",
715715 "Blacklisted word count to swipe": "Anzahl der verbotenen Wörter, um zu wischen",
public/locales/es-es.json+3 -3
@@ -558,7 +558,7 @@
558558 "Delete a theme": "Eliminar un tema",
559559 "Update a theme file": "Actualizar un archivo de tema",
560560 "Save as a new theme": "Guardar como nuevo tema",
561561 "Avatar Style:": "Estilo de Avatar",
562562 "Circle": "Círculo",
563563 "Square": "Cuadrado",
564564 "Rectangle": "Rectángulo",
@@ -633,7 +633,7 @@
633633 "Prefer Character Card Prompt": "Preferir Indicaciones en Tarjeta de Personaje",
634634 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "Si está marcado y la tarjeta de personaje contiene una anulación de jailbreak (Instrucciones Post Historial), usar eso en su lugar",
635635 "Prefer Character Card Jailbreak": "Preferir Jailbreak en Tarjeta de Personaje",
636636 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "Evite recortar y cambiar el tamaño de las imágenes de personajes importados. Cuando esté desactivado, recorte/cambie el tamaño a 512x768.",
637637 "Never resize avatars": "Nunca redimensionar avatares",
638638 "Show actual file names on the disk, in the characters list display only": "Mostrar nombres de archivo reales en el disco, solo en la visualización de la lista de personajes",
639639 "Show avatar filenames": "Mostrar nombres de archivo de avatares",
@@ -709,7 +709,7 @@
709709 "Auto-swipe": "Deslizamiento automático",
710710 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "Habilitar la función de deslizamiento automático. La configuración en esta sección solo tiene efecto cuando el deslizamiento automático está habilitado",
711711 "Minimum generated message length": "Longitud mínima del mensaje generado",
712712 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "Si el mensaje generado es más corto que esto, activar un deslizamiento automático",
713713 "Blacklisted words": "Palabras prohibidas",
714714 "words you dont want generated separated by comma ','": "palabras que no desea generar separadas por coma ','",
715715 "Blacklisted word count to swipe": "Número de palabras prohibidas para deslizar",
public/locales/fr-fr.json+5 -7
@@ -508,7 +508,7 @@
508508 "Delete a theme": "Supprimer un thème",
509509 "Update a theme file": "Mettre à jour un fichier de thème",
510510 "Save as a new theme": "Enregistrer en tant que nouveau thème",
511511 "Avatar Style:": "Style d'avatar",
512512 "Circle": "Cercle",
513513 "Square": "Carré",
514514 "Rectangle": "Rectangle",
@@ -581,7 +581,7 @@
581581 "Advanced Character Search": "Recherche de personnage avancée",
582582 "If checked and the character card contains a prompt override (System Prompt), use that instead": "Si cochée et si la carte de personnage contient un prompt de remplacement (prompt système), l'utiliser à la place",
583583 "Prefer Character Card Prompt": "Préférer le prompt du personnage",
584584 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "Évitez de recadrer et de redimensionner les images de personnages importés. Lorsqu'il est désactivé, recadrez/redimensionnez à 512 x 768.",
585585 "Never resize avatars": "Ne jamais redimensionner les avatars",
586586 "Show actual file names on the disk, in the characters list display only": "Afficher les noms de fichier réels sur le disque, dans l'affichage de la liste de personnages uniquement",
587587 "Show avatar filenames": "Afficher les noms de fichier des avatars",
@@ -656,7 +656,7 @@
656656 "Auto-swipe": "Balayage automatique",
657657 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "Activer la fonction de balayage automatique. Les paramètres de cette section n'ont d'effet que lorsque le balayage automatique est activé",
658658 "Minimum generated message length": "Longueur minimale du message généré",
659659 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "Si le message généré est plus court que cela, déclenchez un balayage automatique",
660660 "Blacklisted words": "Mots en liste noire",
661661 "words you dont want generated separated by comma ','": "mots que vous ne voulez pas générer séparés par des virgules ','",
662662 "Blacklisted word count to swipe": "Nombre de mots en liste noire pour balayer",
@@ -1420,7 +1420,6 @@
14201420 "Block Entropy API Key": "Clé API Block Entropy",
14211421 "Select a Model": "Sélectionner un modèle",
14221422 "Example: http://localhost:1234/v1": "Exemple: http://localhost:1234/v1",
1423- "at the end of the URL!": "à la fin de l'URL !",
14241423 "(Optional)": "(Optionnel)",
14251424 "Enter a Model ID": "Saisir un ID de modèle",
14261425 "Example: gpt-3.5-turbo": "Exemple: gpt-3.5-turbo",
@@ -1485,7 +1484,7 @@
14851484 "(disabled when max recursion steps are used)": "(désactivé lorsque le nombre maximum de pas de récursivité est utilisé)",
14861485 "Cap the number of entry activation recursions": "Plafonner le nombre de récursions d'activation d'entrée",
14871486 "Max Recursion Steps": "Nombre maximal d'étapes de récursivité",
14881487 "0 = unlimited, 1 = scans once and doesn't recurse, 2 = scans once and recurses once, etc\\n(disabled when min activations are used)": "0 = illimité, 1 = scanne une fois et ne récure pas, 2 = scanne une fois et récure une fois, etc.\n(désactivé lorsque des activations minimales sont utilisées)",
14891488 "Include names with each message into the context for scanning": "Inclure les noms dans chaque message dans le contexte pour l'analyse.",
14901489 "Apply current sorting as Order": "Appliquer le tri actuel comme ordre",
14911490 "Display swipe numbers for all messages, not just the last.": "Afficher le nombre de balayage sur tous les messages, et pas seulement le dernier.",
@@ -1494,7 +1493,7 @@
14941493 "Ask": "Demander",
14951494 "tag_import_none": "Aucun",
14961495 "tag_import_all": "Tous",
14971496 "Existingtag_import_existing": "Existant",
14981497 "If checked and the character card contains a Post-History Instructions override, use that instead": "Si cette case est cochée et que la carte de personnage contient une instruction de remplacement pour le post-histoire, utilisez-la à la place.",
14991498 "Prefer Character Card Instructions": "Préférer les instructions du personnage",
15001499 "Enable auto-select of input text in some text fields when clicking/selecting them. Applies to popup input textboxes, and possible other custom input fields.": "Active la sélection automatique du texte saisi dans certains champs de texte lorsque l'on clique dessus ou qu'on les sélectionne. S'applique aux zones de texte de type popup et, éventuellement, à d'autres champs de saisie personnalisés.",
@@ -1602,7 +1601,6 @@
16021601 "Character Expressions": "Expressions de personnages",
16031602 "Translate text to English before classification": "Traduire le texte en anglais avant de le classer",
16041603 "Show default images (emojis) if sprite missing": "Afficher les images par défaut (emojis) si le sprite est manquant",
1605- "Image Type - talkinghead (extras)": "Type d'image - talkinghead (extras)",
16061604 "Classifier API": "API de classification",
16071605 "Select the API for classifying expressions.": "Sélectionnez l'API pour classer les expressions.",
16081606 "Main API": "API principale",
public/locales/is-is.json+3 -3
@@ -558,7 +558,7 @@
558558 "Delete a theme": "Eyða þema",
559559 "Update a theme file": "Uppfæra þemu skrá",
560560 "Save as a new theme": "Vista sem nýja þemu",
561561 "Avatar Style:": "Avatar Stíll",
562562 "Circle": "Hring",
563563 "Square": "Reitur",
564564 "Rectangle": "Ferhyrningur",
@@ -633,7 +633,7 @@
633633 "Prefer Character Card Prompt": "Kosstu kvenkortu fyrirspurn",
634634 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "Ef merkt er og kortið inniheldur fangabrotsskil, notaðu það í staðinn",
635635 "Prefer Character Card Jailbreak": "Kosstu kvenkortu fangabrot",
636636 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "Forðastu að klippa og breyta stærð innfluttra stafamynda. Þegar slökkt er á því skaltu skera/breyta stærð í 512x768.",
637637 "Never resize avatars": "Aldrei breyta stærðinni á merkjum",
638638 "Show actual file names on the disk, in the characters list display only": "Sýna raunveruleg nöfn skráa á diskinum, í lista yfir persónur sýna aðeins",
639639 "Show avatar filenames": "Sýna nöfn merkja",
@@ -709,7 +709,7 @@
709709 "Auto-swipe": "Sjálfvirkur sveip",
710710 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "Virkjaðu sjálfvirka sveiflugerð. Stillingar í þessum hluta hafa aðeins áhrif þegar sjálfvirkur sveiflugerð er virk",
711711 "Minimum generated message length": "Lágmarks lengd á mynduðum skilaboðum",
712712 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "Ef mynduðu skilaboðin eru styttri en þessi, kallaðu fram sjálfvirkar sveiflugerðar",
713713 "Blacklisted words": "Svört orð",
714714 "words you dont want generated separated by comma ','": "orð sem þú vilt ekki að framleiða aðskilin með kommu ','",
715715 "Blacklisted word count to swipe": "Fjöldi svörtra orða til að sveipa",
public/locales/it-it.json+3 -3
@@ -558,7 +558,7 @@
558558 "Delete a theme": "Elimina un tema",
559559 "Update a theme file": "Aggiorna un file di tema",
560560 "Save as a new theme": "Salva come nuovo tema",
561561 "Avatar Style:": "Stile avatar",
562562 "Circle": "Cerchio",
563563 "Square": "Quadrato",
564564 "Rectangle": "Rettangolo",
@@ -633,7 +633,7 @@
633633 "Prefer Character Card Prompt": "Preferisci Prompt della Scheda Personaggio",
634634 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "Se selezionato e la scheda del personaggio contiene una sovrascrittura jailbreak (Istruzione Storico Post), usalo invece",
635635 "Prefer Character Card Jailbreak": "Preferisci Jailbreak della Scheda Personaggio",
636636 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "Evita di ritagliare e ridimensionare le immagini dei personaggi importati. Quando è disattivato, ritaglia/ridimensiona a 512x768.",
637637 "Never resize avatars": "Non ridimensionare mai gli avatar",
638638 "Show actual file names on the disk, in the characters list display only": "Mostra i nomi file effettivi sul disco, solo nella visualizzazione dell'elenco dei personaggi",
639639 "Show avatar filenames": "Mostra nomi file avatar",
@@ -709,7 +709,7 @@
709709 "Auto-swipe": "Auto-swipe",
710710 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "Abilita la funzione di auto-swipe. Le impostazioni in questa sezione hanno effetto solo quando l'auto-swipe è abilitato",
711711 "Minimum generated message length": "Lunghezza minima del messaggio generato",
712712 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "Se il messaggio generato è più breve di questo, attiva un'automatica rimozione",
713713 "Blacklisted words": "Parole in blacklist",
714714 "words you dont want generated separated by comma ','": "parole che non vuoi generate separate da virgola ','",
715715 "Blacklisted word count to swipe": "Numero di parole in blacklist per attivare un'automatica rimozione",
public/locales/ja-jp.json+3 -3
@@ -558,7 +558,7 @@
558558 "Delete a theme": "テーマを削除する",
559559 "Update a theme file": "テーマファイルを更新",
560560 "Save as a new theme": "新しいテーマとして保存",
561561 "Avatar Style:": "アバタースタイル",
562562 "Circle": "円",
563563 "Square": "正方形",
564564 "Rectangle": "長方形",
@@ -633,7 +633,7 @@
633633 "Prefer Character Card Prompt": "キャラクターカードのプロンプトを優先",
634634 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "チェックされていてキャラクターカードにジェイルブレイクオーバーライド(投稿履歴指示)が含まれている場合、それを代わりに使用します",
635635 "Prefer Character Card Jailbreak": "キャラクターカードのJailbreakを優先",
636636 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "インポートした文字画像の切り取りやサイズ変更を避けます。オフにすると、512x768 に切り取り/サイズ変更されます。",
637637 "Never resize avatars": "アバターを常にリサイズしない",
638638 "Show actual file names on the disk, in the characters list display only": "ディスク上の実際のファイル名を表示します。キャラクターリストの表示にのみ",
639639 "Show avatar filenames": "アバターのファイル名を表示",
@@ -709,7 +709,7 @@
709709 "Auto-swipe": "オートスワイプ",
710710 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "自動スワイプ機能を有効にします。このセクションの設定は、自動スワイプが有効になっている場合にのみ効果があります",
711711 "Minimum generated message length": "生成されたメッセージの最小長",
712712 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "生成されたメッセージがこれよりも短い場合、自動スワイプをトリガーします",
713713 "Blacklisted words": "ブラックリストされた単語",
714714 "words you dont want generated separated by comma ','": "コンマ ',' で区切られた生成したくない単語",
715715 "Blacklisted word count to swipe": "スワイプするブラックリストされた単語の数",
public/locales/ko-kr.json+4 -5
@@ -568,7 +568,7 @@
568568 "Delete a theme": "테마 삭제",
569569 "Update a theme file": "테마 파일 업데이트",
570570 "Save as a new theme": "새 테마로 저장",
571571 "Avatar Style:": "캐릭터 프로필 스타일",
572572 "Circle": "원",
573573 "Square": "정사각형",
574574 "Rectangle": "사각형",
@@ -646,7 +646,7 @@
646646 "Prefer Character Card Prompt": "캐릭터 카드 프롬프트 선호",
647647 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "선택되어 있고 캐릭터 카드에 (Post-History 지시)탈옥 재정의가 포함 된 경우, 그것을 대신 사용합니다.",
648648 "Prefer Character Card Jailbreak": "캐릭터 카드 탈옥 선호",
649649 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "가져온 캐릭터 이미지를 자르거나 크기를 조정하지 마세요. 꺼져 있으면 512x768로 자르거나 크기를 조정합니다.",
650650 "Never resize avatars": "아바타 크기 변경하지 않음",
651651 "Show actual file names on the disk, in the characters list display only": "실제 파일 이름을 디스크에 표시하며 캐릭터 목록 디스플레이에만",
652652 "Show avatar filenames": "아바타 파일 이름 표시",
@@ -724,7 +724,7 @@
724724 "Auto-swipe": "자동 스와이프",
725725 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "자동 스와이프 기능을 활성화합니다. 이 섹션의 설정은 자동 스와이프가 활성화되었을 때만 영향을 미칩니다",
726726 "Minimum generated message length": "생성된 메시지 최소 길이",
727727 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "생성된 메시지가이보다 짧으면 자동 스와이프를 트리거합니다",
728728 "Blacklisted words": "금지어",
729729 "words you dont want generated separated by comma ','": "쉼표로 구분된 생성하지 않으려는 단어",
730730 "Blacklisted word count to swipe": "스와이프할 금지어 개수",
@@ -1467,7 +1467,6 @@
14671467 "menu within": "내의 메뉴",
14681468 "Translate text to English before classification": "분류 전에 텍스트를 영어로 번역합니다.",
14691469 "Show default images (emojis) if sprite missing": "해당하는 스프라이트가 없으면 기본 이미지 (이모지들)을 표시합니다.",
1470- "Image Type - talkinghead (extras)": "이미지 유형 - 토킹 헤드 (부가 사항)",
14711470 "Classifier API": "분류를 위한 API",
14721471 "Select the API for classifying expressions.": "감정 이미지들을 분류할 API를 선택하세요.",
14731472 "Local": "로컬",
@@ -1614,7 +1613,7 @@
16141613 "Ask": "묻기",
16151614 "tag_import_none": "불러오지 않음",
16161615 "tag_import_all": "전부",
16171616 "Existingtag_import_existing": "기존 태그 참조",
16181617 "You can add more": "원한다면",
16191618 "or_welcome": "또는",
16201619 "from other websites": "를 통해 다른 웹사이트들로부터 불러올 수 있습니다.",
public/locales/nl-nl.json+3 -3
@@ -558,7 +558,7 @@
558558 "Delete a theme": "Verwijder een thema",
559559 "Update a theme file": "Werk een themabestand bij",
560560 "Save as a new theme": "Opslaan als nieuw thema",
561561 "Avatar Style:": "Avatarstijl",
562562 "Circle": "Cirkel",
563563 "Square": "Vierkant",
564564 "Rectangle": "Rechthoek",
@@ -633,7 +633,7 @@
633633 "Prefer Character Card Prompt": "Voorkeur karakterkaart prompt",
634634 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "Als aangevinkt en de karakterkaart bevat een jailbreak-override (Post History Instruction), gebruik die in plaats daarvan",
635635 "Prefer Character Card Jailbreak": "Voorkeur karakterkaart jailbreak",
636636 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "Vermijd het bijsnijden en vergroten/verkleinen van geïmporteerde karakterafbeeldingen. Indien uitgeschakeld, bijsnijden/formaat wijzigen naar 512 x 768.",
637637 "Never resize avatars": "Avatars nooit verkleinen",
638638 "Show actual file names on the disk, in the characters list display only": "Toon de werkelijke bestandsnamen op de schijf, alleen in de weergave van de lijst met personages",
639639 "Show avatar filenames": "Toon avatar bestandsnamen",
@@ -709,7 +709,7 @@
709709 "Auto-swipe": "Automatisch vegen",
710710 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "Schakel de automatische-vegen functie in. Instellingen in dit gedeelte hebben alleen effect wanneer automatisch vegen is ingeschakeld",
711711 "Minimum generated message length": "Minimale gegenereerde berichtlengte",
712712 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "Als het gegenereerde bericht korter is dan dit, activeer dan een automatische veeg",
713713 "Blacklisted words": "Verboden woorden",
714714 "words you dont want generated separated by comma ','": "woorden die je niet gegenereerd wilt hebben gescheiden door komma ','",
715715 "Blacklisted word count to swipe": "Aantal verboden woorden om te vegen",
public/locales/pt-pt.json+3 -3
@@ -558,7 +558,7 @@
558558 "Delete a theme": "Excluir um tema",
559559 "Update a theme file": "Atualizar um arquivo de tema",
560560 "Save as a new theme": "Salvar como um novo tema",
561561 "Avatar Style:": "Estilo de Avatar",
562562 "Circle": "Círculo",
563563 "Square": "Quadrado",
564564 "Rectangle": "Retângulo",
@@ -633,7 +633,7 @@
633633 "Prefer Character Card Prompt": "Preferir Prompt do Cartão de Personagem",
634634 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "Se marcado e o cartão de personagem contiver uma substituição de jailbreak (Instrução de Histórico de Postagens), use isso em vez disso",
635635 "Prefer Character Card Jailbreak": "Preferir Jailbreak do Cartão de Personagem",
636636 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "Evite cortar e redimensionar imagens de personagens importados. Quando desativado, corte/redimensione para 512x768.",
637637 "Never resize avatars": "Nunca redimensionar avatares",
638638 "Show actual file names on the disk, in the characters list display only": "Mostrar nomes de arquivo reais no disco, apenas na exibição da lista de personagens",
639639 "Show avatar filenames": "Mostrar nomes de arquivo de avatar",
@@ -709,7 +709,7 @@
709709 "Auto-swipe": "Auto-swipe",
710710 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "Ativar a função de auto-swipe. As configurações nesta seção só têm efeito quando o auto-swipe está ativado",
711711 "Minimum generated message length": "Comprimento mínimo da mensagem gerada",
712712 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "Se a mensagem gerada for mais curta que isso, acione um auto-swipe",
713713 "Blacklisted words": "Palavras proibidas",
714714 "words you dont want generated separated by comma ','": "palavras que você não quer geradas separadas por vírgula ','",
715715 "Blacklisted word count to swipe": "Contagem de palavras proibidas para swipe",
public/locales/ru-ru.json+76 -17
@@ -195,12 +195,12 @@
195195 "Yes": "Да",
196196 "No": "Нет",
197197 "Context %": "Процент контекста",
198198 "Budget Cap": "БюджетныйЛимит лимитбюджета",
199199 "(0 = disabled)": "(0 = отключено)",
200200 "None": "Отсутствует",
201201 "User Settings": "Настройки пользователя",
202202 "UI Language": "Язык интерфейса",
203203 "Avatar Style:": "Аватарки",
204204 "Circle": "Круглые",
205205 "Rectangle": "Прямоугольные",
206206 "Square": "Квадратные",
@@ -426,7 +426,7 @@
426426 "Requests logprobs from the API for the Token Probabilities feature": "Запросить логпробы из API для функции Token Probabilities.",
427427 "Automatically reject and re-generate AI message based on configurable criteria": "Автоматическое отклонение и повторная генерация сообщений AI на основе настраиваемых критериев.",
428428 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "Включить авто-свайп. Настройки в этом разделе действуют только при включенном авто-свайпе.",
429429 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "Если сгенерированное сообщение короче этого значения, срабатывает авто-свайп.",
430430 "Reload and redraw the currently open chat": "Перезагрузить и перерисовать открытый в данный момент чат.",
431431 "Auto-Expand Message Actions": "Развернуть действия",
432432 "Persona Management": "Управление персоной",
@@ -575,10 +575,10 @@
575575 "Characters sorting order": "Порядок сортировки персонажей",
576576 "Remove": "Убрать",
577577 "Select a World Info file for": "Выбрать файл с миром для",
578578 "Primary Lorebook": "ОсновногоОсновной лорбукалорбук",
579579 "A selected World Info will be bound to this character as its own Lorebook.": "Информация о мире будет привязана к персонажу как его собственный лорбук.",
580580 "When generating an AI reply, it will be combined with the entries from a global World Info selector.": "Когда ИИ генерирует ответ, он будет совмещён с записями из глобально выбранного мира.",
581581 "Exporting a character would also export the selected Lorebook file embedded in the JSON data.": "При экспорте персонажа вместе с ним также выгрузится выбранный лорбук в виде JSON.",
582582 "Additional Lorebooks": "Вспомогательные лорбуки",
583583 "Associate one or more auxillary Lorebooks with this character.": "Привязать к этому персонажу один или больше вспомогательных лорбуков",
584584 "NOTE: These choices are optional and won't be preserved on character export!": "ВНИМАНИЕ: эти выборы необязательные и не будут сохранены при экспорте персонажа!",
@@ -593,7 +593,7 @@
593593 "Prompt": "Промпт",
594594 "Copy": "Скопировать",
595595 "Confirm": "Подтвердить",
596596 "Copy this message": "СкопироватьПродублировать сообщение",
597597 "Delete this message": "Удалить сообщение",
598598 "Move message up": "Переместить сообщение вверх",
599599 "Move message down": "Переместить сообщение вниз",
@@ -612,7 +612,7 @@
612612 "Ask AI to write your message for you": "Попросить ИИ написать сообщение за вас",
613613 "Continue the last message": "Продолжить текущее сообщение",
614614 "Bind user name to that avatar": "Закрепить имя за этим аватаром",
615615 "Select this as default persona for the new chats.": "ВыбератьВыбирать эту Персону в качестве персоныперсону по умолчанию для всех новых чатов.",
616616 "Change persona image": "Сменить аватар персоны",
617617 "Delete persona": "Удалить персону",
618618 "Reduced Motion": "Сокращение анимаций",
@@ -640,7 +640,7 @@
640640 "Token Probabilities": "Вероятности токенов",
641641 "Close chat": "Закрыть чат",
642642 "Manage chat files": "Все чаты",
643643 "Import Extension From Git Repo": "Импортировать расширение из Git Repository-репозитория.",
644644 "Install extension": "Установить расширение",
645645 "Manage extensions": "Управление расширениями",
646646 "Tokens persona description": "Токенов",
@@ -995,7 +995,7 @@
995995 "Set your custom avatar.": "Установить аватарку",
996996 "Remove your custom avatar.": "Сбросить аватарку",
997997 "Make a Snapshot": "Сделать снимок",
998998 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "Не менять размер картинок у импортируемых персонажей. При отключении все картинки будут приводиться к размеру 512х768",
999999 "Char List Subheader": "Доп. заголовок в списке персонажей",
10001000 "# Messages to Load": "Сколько сообщений загружать",
10011001 "(0 = All)": "(0 = все)",
@@ -1122,12 +1122,11 @@
11221122 "help_hotkeys_0": "Горячие клавиши",
11231123 "You can browse a list of bundled characters in the": "Комплектных персонажей можно найти в меню",
11241124 "Download Extensions & Assets": "Загрузить расширения и ресурсы",
11251125 "menu within": "внутри этихв кубиковменю",
11261126 "Assets URL": "URL с описанием ресурсов",
11271127 "Custom (OpenAI-compatible)": "Кастомный (совместимый с OpenAI)",
11281128 "Custom Endpoint (Base URL)": "Кастомный эндпоинт (базовый URL)",
11291129 "Example: http://localhost:1234/v1": "Пример: http://localhost:1234/v1",
1130- "at the end of the URL!": "!",
11311130 "Custom API Key": "Ключ от кастомного API",
11321131 "(Optional)": "(необязательно)",
11331132 "Enter a Model ID": "Введите идентификатор модели",
@@ -1622,7 +1621,7 @@
16221621 "Defines on importing cards which action should be chosen for importing its listed tags. 'Ask' will always display the dialog.": "Выберите, какие действия следует предпринять по отношению к тегам импортируемой карточки. При выборе опции \"Спрашивать\" вы будете решать это индивидуально для каждой карточки.",
16231622 "Ask": "Спрашивать",
16241623 "tag_import_all": "Все",
16251624 "Existingtag_import_existing": "Только существующие",
16261625 "tag_import_none": "Не импортировать",
16271626 "Using a proxy that you're not running yourself is a risk to your data privacy.": "Помните, что используя чужую прокси, вы подвергаете риску конфиденциальность своих данных.",
16281627 "ANY support requests will be REFUSED if you are using a proxy.": "НЕ РАССЧИТЫВАЙТЕ на нашу поддержку, если используете прокси.",
@@ -1943,7 +1942,7 @@
19431942 "and connect to an": "и подключитесь к",
19441943 "You can add more": "Можете добавить больше",
19451944 "from other websites": "с других сайтов.",
19461945 "Go to the": "ЗаглянитеЗаходите в",
19471946 "to install additional features.": ", чтобы установить разные дополнительные ресурсы.",
19481947 "or_welcome": "; также доступен",
19491948 "Claude API Key": "Ключ от API Claude",
@@ -1958,7 +1957,7 @@
19581957 "Save": "Сохранить",
19591958 "Chat Lorebook": "Лорбук для чата",
19601959 "chat_world_template_txt": "Выбранный мир будет привязан к этому чату. Будет добавляться в промпт наряду с глобальным лорбуком и лором персонажа.",
19611960 "world_button_title": "Лор персонажа\n\nНажмите, чтобы загрузить\nShift + кликЛКМ, чтобы открыть диалог привязки мира",
19621961 "No auxillary Lorebooks set. Click here to select.": "Вспомогательный лорбук не выбран. Нажмите, чтобы выбрать.",
19631962 "ext_regex_user_input_desc": "Отправленные вами сообщения.",
19641963 "ext_regex_ai_input_desc": "Полученные от API ответы.",
@@ -2144,5 +2143,65 @@
21442143 "Not connected to the API!": "Нет соединения с API!",
21452144 "ext_type_system": "Это комплектное расширение. Его нельзя удалить, а обновляется оно вместе со всей системой.",
21462145 "Update all": "Обновить все",
21472146 "Close": "Закрыть",
2147+ "Optional modules:": "Необязательные модули:",
2148+ "Sort: Display Name": "Сортировать: по названию",
2149+ "Sort: Loading Order": "Сортировать: в порядке загрузки",
2150+ "Click to toggle": "Нажмите, чтобы включить или выключить",
2151+ "Loading Asset List": "Загрузить список ресурсов",
2152+ "Don't ask again for this URL": "Запомнить выбор для этого адреса",
2153+ "Are you sure you want to connect to the following url?": "Вы точно хотите подключиться к этому адресу?",
2154+ "All": "Всё",
2155+ "Characters": "Персонажи",
2156+ "Ambient sounds": "Звуковой эмбиент",
2157+ "Blip sounds": "Звуки уведомлений",
2158+ "Background music": "Фоновая музыка",
2159+ "Search": "Поиск",
2160+ "extension_install_1": "Чтобы загружать расширения из этого списка, у вас должен быть установлен ",
2161+ "extension_install_2": ".",
2162+ "extension_install_3": "Нажмите на иконку ",
2163+ "extension_install_4": ", чтобы перейти в репозиторий расширения и получить более подробную информацию о нём.",
2164+ "Extension repo/guide:": "Репозиторий расширения:",
2165+ "Preview in browser": "Предпросмотр",
2166+ "Adds a function tool": "Частично или полностью работает через вызов функций",
2167+ "Tool": "Функции",
2168+ "Move extension": "Переместить расширение",
2169+ "ext_type_local": "Это локальное расширение, доступно только вам",
2170+ "ext_type_global": "Это глобальное расширение, доступно всем пользователям",
2171+ "Move": "Переместить",
2172+ "Enter the Git URL of the extension to install": "Введите Git-адрес расширения",
2173+ "Please be aware that using external extensions can have unintended side effects and may pose security risks. Always make sure you trust the source before importing an extension. We are not responsible for any damage caused by third-party extensions.": "помните, что используя расширения от сторонних авторов, вы можете подвергать систему опасности. Устанавливайте расширения только от проверенных разработчиков. Мы не несём ответственности за любой ущерб, причинённый сторонними расширениями.",
2174+ "Disclaimer:": "Внимание:",
2175+ "Example:": "Пример:",
2176+ "context_derived": "Считывать из метаданных модели (по возможности)",
2177+ "instruct_derived": "Считывать из метаданных модели (по возможности)",
2178+ "Confirm token parsing with": "Чтобы убедиться в правильности выделения токенов, используйте",
2179+ "Reasoning Effort": "Рассуждения",
2180+ "Constrains effort on reasoning for reasoning models.": "Регулирует объём внутренних рассуждений модели (reasoning), для моделей которые поддерживают эту возможность.\nНа данный момент поддерживаются три значения: Подробные, Обычные, Поверхностные.\nПри менее подробном рассуждении ответ получается быстрее, а также экономятся токены, уходящие на рассуждения.",
2181+ "openai_reasoning_effort_low": "Поверхностные",
2182+ "openai_reasoning_effort_medium": "Обычные",
2183+ "openai_reasoning_effort_high": "Подробные",
2184+ "Persona Lore Alt+Click to open the lorebook": "Лорбук данной персоны\nAlt + ЛКМ чтобы открыть лорбук",
2185+ "Persona Lorebook for": "Лорбук для персоны",
2186+ "persona_world_template_txt": "Выбранная Информация о мире будет привязана к этой персоне. Информация будет добавляться в каждом промпте вместе с глобальным лорбуком и лорбуками персонажа и чата.",
2187+ "Global list": "Глобальный список",
2188+ "Preset-specific list": "Список для данного пресета",
2189+ "Banned tokens/strings are being sent in the request.": "Запрещённые токены и строки отсылаются в запросе.",
2190+ "Banned tokens/strings are NOT being sent in the request.": "Запрещённые токены и строки НЕ отсылаются в запросе.",
2191+ "Add a reasoning block": "Добавить блок рассуждений",
2192+ "Create a copy of this message?": "Продублировать это сообщение?",
2193+ "Max Recursion Steps": "Макс. глубина рекурсии",
2194+ "0 = unlimited, 1 = scans once and doesn't recurse, 2 = scans once and recurses once, etc": "0 = неограничено, 1 = сканировать единожды, 2 = сканировать единожды и сделать один повторный проход, и т.д.\n(неактивно при указанном мин. числе активаций)",
2195+ "(disabled when max recursion steps are used)": "(неактивно при указанной макс. глубине рекурсии)",
2196+ "Enter a valid API URL": "Введите корректный адрес API",
2197+ "No Ollama model selected.": "Не выбрана модель Ollama",
2198+ "Background Fitting": "Способ подгонки фона под разрешение",
2199+ "Chat Lore Alt+Click to open the lorebook": "Лорбук данного чата\nAlt + ЛКМ чтобы открыть лорбук",
2200+ "Token Counter": "Подсчитать токены",
2201+ "Type / paste in the box below to see the number of tokens in the text.": "Введите или вставьте текст в окошко ниже, чтобы подсчитать количество токенов в нём.",
2202+ "Selected tokenizer:": "Выбранный токенайзер:",
2203+ "Input:": "Входные данные:",
2204+ "Tokenized text:": "Токенизированный текст:",
2205+ "Token IDs:": "Идентификаторы токенов:",
2206+ "Tokens:": "Токенов:"
21482207}
public/locales/uk-ua.json+3 -3
@@ -558,7 +558,7 @@
558558 "Delete a theme": "Видалити тему",
559559 "Update a theme file": "Оновити файл теми",
560560 "Save as a new theme": "Зберегти як нову тему",
561561 "Avatar Style:": "Стиль аватара",
562562 "Circle": "Коло",
563563 "Square": "Квадрат",
564564 "Rectangle": "Прямокутник",
@@ -633,7 +633,7 @@
633633 "Prefer Character Card Prompt": "Перевага запиту персонажа",
634634 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "Якщо відмічено і картка персонажа містить заміну джейлбрейку (Інструкцію), використовуйте її замість цього",
635635 "Prefer Character Card Jailbreak": "Перевага джейлбрейку персонажа",
636636 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "Уникайте обрізання та зміни розміру імпортованих зображень символів. Коли вимкнено, обрізати/змінити розмір до 512x768.",
637637 "Never resize avatars": "Ніколи не змінювати розмір аватарів",
638638 "Show actual file names on the disk, in the characters list display only": "Показувати фактичні назви файлів на диску, тільки у відображенні списку персонажів",
639639 "Show avatar filenames": "Показувати імена файлів аватарів",
@@ -709,7 +709,7 @@
709709 "Auto-swipe": "Автоматичний змах",
710710 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "Вмикає функцію автоматичного змаху. Налаштування в цьому розділі діють лише тоді, коли увімкнено автоматичний змах",
711711 "Minimum generated message length": "Мінімальна довжина згенерованого повідомлення",
712712 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "Якщо згенероване повідомлення коротше за це, викликайте автоматичний змаху",
713713 "Blacklisted words": "Список заборонених слів",
714714 "words you dont want generated separated by comma ','": "слова, які ви не хочете генерувати, розділені комою ','",
715715 "Blacklisted word count to swipe": "Кількість заборонених слів для змаху",
public/locales/vi-vn.json+3 -3
@@ -558,7 +558,7 @@
558558 "Delete a theme": "Xóa một chủ đề",
559559 "Update a theme file": "Cập nhật một tập tin chủ đề",
560560 "Save as a new theme": "Lưu dưới dạng chủ đề mới",
561561 "Avatar Style:": "Kiểu hình đại diện",
562562 "Circle": "Hình tròn",
563563 "Square": "Hình vuông",
564564 "Rectangle": "Hình chữ nhật",
@@ -633,7 +633,7 @@
633633 "Prefer Character Card Prompt": "Ưu tiên Gợi ý từ Card",
634634 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "Nếu được kiểm tra và thẻ nhân vật chứa một lệnh phá vỡ giam giữ (Hướng dẫn Lịch sử Bài viết), hãy sử dụng thay vào đó",
635635 "Prefer Character Card Jailbreak": "Ưu tiên Jailbreak từ Card",
636636 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "Tránh cắt xén và thay đổi kích thước hình ảnh ký tự đã nhập. Khi tắt, hãy cắt/thay đổi kích thước thành 512x768.",
637637 "Never resize avatars": "Không bao giờ thay đổi kích thước hình đại diện",
638638 "Show actual file names on the disk, in the characters list display only": "Hiển thị tên tệp thực tế trên đĩa, chỉ trong danh sách nhân vật",
639639 "Show avatar filenames": "Hiển thị tên tệp hình đại diện",
@@ -709,7 +709,7 @@
709709 "Auto-swipe": "Tự động vuốt",
710710 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "Bật chức năng tự động vuốt. Các cài đặt trong phần này chỉ có tác dụng khi tự động vuốt được bật",
711711 "Minimum generated message length": "Độ dài tối thiểu của tin nhắn được tạo",
712712 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "Nếu tin nhắn được tạo ra ngắn hơn điều này, kích hoạt tự động vuốt",
713713 "Blacklisted words": "Từ trong danh sách đen",
714714 "words you dont want generated separated by comma ','": "các từ bạn không muốn được tạo ra được phân tách bằng dấu phẩy ','",
715715 "Blacklisted word count to swipe": "Số từ trong danh sách đen để vuốt",
public/locales/zh-cn.json+102 -41
@@ -2,7 +2,7 @@
22 "Favorite": "星标",
33 "Tag": "标签",
44 "Duplicate": "复制",
55 "Persona": "角色用户角色",
66 "Delete": "删除",
77 "AI Response Configuration": "AI响应配置",
88 "AI Configuration panel will stay open": "AI配置面板将保持打开",
@@ -203,6 +203,7 @@
203203 "Ignore EOS Token": "忽略序列结束词符",
204204 "Ignore the EOS Token even if it generates.": "即使生成了序列结束词符,也忽略它。",
205205 "Skip Special Tokens": "跳过特殊词符",
206+ "Request Model Reasoning": "Request Model Reasoning",
206207 "Temperature Last": "温度放最后",
207208 "Temperature_Last_desc": "温度采样器放到最后使用。这通常是合理的。\n当启用时:首先进行潜在词符的选择,然后应用温度来修正它们的相对概率(技术上是对数似然)。\n当禁用时:首先应用温度来修正所有词符的相对概率,然后从中选择潜在词符。\n禁用此项可以增大分布在尾部的词符概率,这可能加大得到不相关回复的几率。",
208209 "Speculative Ngram": "推测性 Ngram",
@@ -210,7 +211,9 @@
210211 "Spaces Between Special Tokens": "特殊词符之间的空格",
211212 "Seed_desc": "一个用于生成确定性和可复现的输出的随机种子。设置为 -1 时会使用随机种子。",
212213 "LLaMA / Mistral / Yi models only": "LLaMA / Mistral / Yi模型专用。首先确保您选择了适当的词符化器。\n这项设置决定了你不想在结果中看到的字符串。\n每行一个字符串。可以是文本或者[词符id]。\n许多词符以空格开头。如果不确定,请使用词符计数器。",
214+ "Global list": "Global list",
213215 "Example: some text [42, 69, 1337]": "例如:\n一些文本\n[42, 69, 1337]",
216+ "Preset-specific list": "Preset-specific list",
214217 "CFG": "CFG",
215218 "Classifier Free Guidance. More helpful tip coming soon": "无分类器指导(CFG)。更多有用的提示敬请期待。",
216219 "Scale": "缩放比例",
@@ -255,11 +258,11 @@
255258 "enable_functions_desc_1": "允许使用",
256259 "enable_functions_desc_2": "功能工具",
257260 "enable_functions_desc_3": "可以被各种扩展利用来提供附加功能。",
258261 "Send inline images": "发送内联图像发送图片",
259262 "image_inlining_hint_1": "如果模型支持,则在提示词中发送图像就可以在提示词中发送图片(例如 GPT-4V、Claude 3 或 Llava 13B)。\n对任何消息使用n发送消息时,点击",
260263 "image_inlining_hint_2": "在这里(",
261264 "image_inlining_hint_3": "菜单将图像文件附加到聊天中)将图片添加到消息中。",
262265 "Inline Image Quality": "内联图像质量图片画质",
263266 "openai_inline_image_quality_auto": "自动",
264267 "openai_inline_image_quality_low": "低",
265268 "openai_inline_image_quality_high": "高",
@@ -268,6 +271,11 @@
268271 "Merges_all_system_messages_desc_2": "字段发送。",
269272 "Request model reasoning": "请求思维链",
270273 "Allows the model to return its thinking process.": "允许模型返回其思维过程。",
274+ "Constrains effort on reasoning for reasoning models.": "限定模型推理的强度。\n当前支持低、中、高三种强度。\n降低推理强度可以让模型更快回复,并节省推理所用的词符数。。",
275+ "Reasoning Effort": "推理强度",
276+ "openai_reasoning_effort_low": "低",
277+ "openai_reasoning_effort_medium": "中",
278+ "openai_reasoning_effort_high": "高",
271279 "Assistant Prefill": "AI预填",
272280 "Expand the editor": "展开编辑器",
273281 "Start Claude's answer with...": "以如下内容开始Claude的回答...",
@@ -328,7 +336,8 @@
328336 "Click Authorize below or get the key from": "点击下方授权或从以下位置获取密钥",
329337 "View Remaining Credits": "查看剩余额度",
330338 "OpenRouter Model": "OpenRouter 模型",
331339 "Model Providers": "模型提供者模型提供商",
340+ "Automatically chooses an alternative provider if chosen providers can't serve your request.": "在当前选择的模型提供商无效时,自动选择备用的提供商。",
332341 "Allow fallback providers": "允许后备提供者",
333342 "InfermaticAI API Key": "InfermaticAI API 密钥",
334343 "InfermaticAI Model": "InfermaticAI 模型",
@@ -374,7 +383,7 @@
374383 "Use an admin API key.": "使用管理员API密钥。",
375384 "koboldcpp API key (optional)": "koboldcpp API 密钥(可选)",
376385 "Example: 127.0.0.1:5001": "示例:127.0.0.1:5001",
377386 "Bypass status check": "绕过状态检查跳过状态检查",
378387 "Derive context size from backend": "从后端获取上下文长度",
379388 "Authorize": "授权",
380389 "Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "使用OAuth流程获取您的OpenRouter API令牌。您将被重定向到openrouter.ai",
@@ -389,8 +398,8 @@
389398 "This will show up as your saved preset.": "这将显示为您保存的预设。",
390399 "Proxy Server URL": "代理服务器 URL",
391400 "Alternative server URL (leave empty to use the default value).": "备用服务器 URL(留空以使用默认值)。",
392401 "Doesn't work? Try adding": "不起作用?尝试添加在末尾添加",
393402 "at the end!": "试试!",
394403 "Proxy Password": "代理密码",
395404 "Will be used as a password for the proxy instead of API key.": "将用作代理的密码,而不是 API 密钥。",
396405 "Peek a password": "查看密码",
@@ -411,6 +420,7 @@
411420 "Anthropic's developer console": "Anthropic 开发者控制台",
412421 "Claude Model": "Claude 模型",
413422 "Window AI Model": "Window AI 模型",
423+ "Use extension settings": "使用扩展程序中的设定",
414424 "Allow fallback routes Description": "如果所选模型无法响应您的请求,则自动选择备用模型。",
415425 "Allow fallback models": "允许后备模型",
416426 "Model Order": "OpenRouter 模型顺序",
@@ -419,6 +429,7 @@
419429 "Context Size": "上下文长度",
420430 "Group by vendors": "按厂商分组",
421431 "Group by vendors Description": "将 OpenAI 模型放在一组,将 Anthropic 模型放在另一组,等等。可以与排序结合。",
432+ "To use instruct formatting, switch to OpenRouter under Text Completion API.": "To use instruct formatting, switch to OpenRouter under Text Completion API.",
422433 "Scale API Key": "Scale API密钥",
423434 "Clear your cookie": "清除你的 Cookie",
424435 "Alt Method": "备用方法",
@@ -442,7 +453,6 @@
442453 "Select a Model": "选择一个模型",
443454 "Custom Endpoint (Base URL)": "自定义端点(基础 URL)",
444455 "Example: http://localhost:1234/v1": "例如:http://localhost:1234/v1",
445- "at the end of the URL!": "到 URL 的末尾!",
446456 "Custom API Key": "自定义 API 密钥",
447457 "(Optional)": "(可选)",
448458 "Enter a Model ID": "输入模型名",
@@ -466,9 +476,9 @@
466476 "AI Response Formatting": "AI回复格式化",
467477 "Advanced Formatting": "高级格式化设置",
468478 "Import Advanced Formatting settings": "导入高级格式化设置\n\n对于指导和上下文模板,你也可以提供旧版文件。",
469479 "Master Import": "Master Import全局导入",
470480 "Export Advanced Formatting settings": "导出高级格式化设置",
471481 "Master Export": "Master Export全局导出",
472482 "Context Template": "上下文模板",
473483 "context_derived": "若可能,从模型的元数据获取。",
474484 "Select your current Context Template": "选择你当前的上下文模板",
@@ -508,7 +518,7 @@
508518 "Skip Example Dialogues Formatting": "跳过示例对话格式化",
509519 "Include Names": "包括名称",
510520 "Never": "永不",
511521 "Groups and Past Personas": "Groups and Past Personas群聊和过去的用户角色",
512522 "Always": "永远",
513523 "Instruct Sequences": "指令序列",
514524 "User Message Sequences": "用户消息序列",
@@ -561,6 +571,24 @@
561571 "JSON serialized array of strings": "JSON序列化的字符串数组",
562572 "Replace Macro in Stop Strings": "替换自定义停止字符串中的宏",
563573 "Token Padding": "词符填充",
574+ "Reasoning": "推理",
575+ "reasoning_auto_parse": "Automatically parse reasoning blocks from main content between the reasoning prefix/suffix. Both fields must be defined and non-empty.",
576+ "Auto-Parse": "自动解析",
577+ "reasoning_auto_expand": "自动展开推理内容块。",
578+ "Auto-Expand": "自动展开",
579+ "reasoning_show_hidden": "对于隐藏推理内容的模型,展示其推理用时。",
580+ "Show Hidden": "显示隐藏内容",
581+ "reasoning_add_to_prompts": "将已有的推理块添加到提示词。若需新增一个推理块,请使用消息编辑菜单。",
582+ "Add to Prompts": "添加到提示词",
583+ "reasoning_max_additions": "Maximum number of reasoning blocks to be added per prompt, counting from the last message.",
584+ "Max": "最大值",
585+ "Reasoning Formatting": "推理内容格式化",
586+ "reasoning_prefix": "插入在推理内容之前。",
587+ "Prefix": "前缀",
588+ "reasoning_suffix": "插入在推理内容之后。",
589+ "Suffix": "后缀",
590+ "reasoning_separator": "插入在推理内容和消息内容之间。",
591+ "Separator": "分隔符",
564592 "Miscellaneous": "杂项",
565593 "Non-markdown strings": "非 Markdown 字符串",
566594 "comma delimited,no spaces between": "以逗号分隔,无需空格",
@@ -584,7 +612,7 @@
584612 "(0 = unlimited, use budget)": "(“0”为无限制,使用预算)",
585613 "Cap the number of entry activation recursions": "限制条目激活递归的次数",
586614 "Max Recursion Steps": "最大递归深度",
587615 "0 = unlimited, 1 = scans once and doesn't recurse, 2 = scans once and recurses once, etc\\n(disabled when min activations are used)": "“0”为无限制,“1”为扫描一次且不递归,“2”为扫描一次且递归一次,依此类推\n(当使用最小激活次数时,此功能被禁用)",
588616 "Insertion Strategy": "插入策略",
589617 "Sorted Evenly": "均匀排序",
590618 "Character Lore First": "角色世界书优先",
@@ -639,7 +667,7 @@
639667 "Delete a theme": "删除主题",
640668 "Update a theme file": "更新主题文件",
641669 "Save as a new theme": "另存为新主题",
642670 "Avatar Style:": "头像样式",
643671 "Circle": "圆形",
644672 "Square": "正方形",
645673 "Rectangle": "矩形",
@@ -713,16 +741,16 @@
713741 "Defines on importing cards which action should be chosen for importing its listed tags. 'Ask' will always display the dialog.": "定义在导入卡片时应选择哪种操作来导入其列出的标签。“询问”将始终显示对话框。",
714742 "Import Card Tags": "导入卡片标签",
715743 "Ask": "询问",
716744 "tag_import_none": "不导入",
717745 "tag_import_all": "全部导入全部",
718746 "Existingtag_import_existing": "现存的仅导入现有的",
719747 "Use fuzzy matching, and search characters in the list by all data fields, not just by a name substring": "使用模糊匹配,在列表中通过所有数据字段搜索角色,而不仅仅是名称子字符串",
720748 "Advanced Character Search": "高级角色搜索",
721749 "If checked and the character card contains a prompt override (System Prompt), use that instead": "开启后,如果角色卡已包含系统提示词,则覆盖当前的系统提示词。",
722750 "Prefer Character Card Prompt": "角色卡提示词优先",
723751 "If checked and the character card contains a Post-History Instructions override, use that instead": "开启后,如果角色卡包含后历史指令覆盖,则使用它。",
724752 "Prefer Character Card Instructions": "首选角色卡说明",
725753 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768never_resize_avatars_tooltip": "避免裁剪和调整导入的角色图像的大小。关闭时,裁剪/调整大小为 512x768。",
726754 "Never resize avatars": "永不调整头像大小",
727755 "Show actual file names on the disk, in the characters list display only": "在角色列表显示中,显示磁盘上实际的文件名。",
728756 "Show avatar filenames": "显示头像文件名",
@@ -751,7 +779,7 @@
751779 "Restore User Input": "恢复用户输入",
752780 "Allow repositioning certain UI elements by dragging them. PC only, no effect on mobile": "允许通过拖动重新定位某些UI元素。仅适用于PC,对移动设备无影响",
753781 "Movable UI Panels": "可移动 UI 面板",
754782 "Reset MovingUI panel sizes/locations.": "重置 MovingUI可移动UI 面板大小/位置。",
755783 "mui_reset": "Reset",
756784 "MovingUI preset. Predefined/saved draggable positions": "可移动UI预设。预定义/保存的可拖动位置",
757785 "MUI Preset": "可移动 UI 预设",
@@ -759,7 +787,7 @@
759787 "Apply a custom CSS style to all of the ST GUI": "将自定义CSS样式应用于所有ST GUI",
760788 "Custom CSS": "自定义 CSS",
761789 "Chat/Message Handling": "聊天/消息处理",
762790 "# Messages to Load": "要加载 # 要加载的消息条消息",
763791 "The number of chat history messages to load before pagination.": "分页前要加载的聊天历史消息数。",
764792 "(0 = All)": "(“0”为全部)",
765793 "Streaming FPS": "流式传输帧速率",
@@ -804,11 +832,12 @@
804832 "Auto-swipe": "自动滑动",
805833 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "启用自动滑动功能。仅当启用自动滑动时,本节中的设置才会生效",
806834 "Minimum generated message length": "生成的消息的最小长度",
807835 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "如果生成的消息短于此长度,则触发自动滑动",
808836 "Blacklisted words": "屏蔽词",
809837 "words you dont want generated separated by comma ','": "不想生成的词语,用半角逗号“,”分隔",
810838 "Blacklisted word count to swipe": "触发滑动的黑名单词语数量",
811839 "Minimum number of blacklisted words detected to trigger an auto-swipe": "触发自动滑动刷新回复所需检测到的最少违禁词数量。",
840+ "Automatically 'continue' a response if the model stopped before reaching a certain amount of tokens.": "当回复没有达到特定词符数时,自动让模型“继续”这个回复。",
812841 "Auto-Continue": "自动继续",
813842 "Allow for Chat Completion APIs": "允许使用聊天补全API",
814843 "Target length (tokens)": "目标长度(以词符数计)",
@@ -843,12 +872,12 @@
843872 "Change Background Image": "更改背景图片",
844873 "Background Image": "背景图片",
845874 "Filter": "搜索",
846875 "Background Fitting": "Background Fitting背景图片尺寸",
847876 "Classic": "Classic经典",
848877 "Cover": "Cover填充",
849878 "Contain": "Contain不变换",
850879 "Stretch": "Stretch拉伸",
851880 "Center": "Center居中",
852881 "Automatically select a background based on the chat context": "根据聊天上下文自动选择背景",
853882 "Auto-select": "自动选择",
854883 "System Backgrounds": "系统背景",
@@ -930,6 +959,7 @@
930959 "Search / Create Tags": "搜索/创建标签",
931960 "View all tags": "查看所有标签",
932961 "Creator's Notes": "创作者的注释",
962+ "Character details are hidden.": "角色详情已隐藏。",
933963 "Show / Hide Description and First Message": "显示/隐藏描述和第一条消息",
934964 "Character Description": "角色描述",
935965 "Click to allow/forbid the use of external media for this character.": "单击以允许/禁止此角色使用外部媒体。",
@@ -1054,6 +1084,7 @@
10541084 "Drag to reorder tag": "拖动以排序",
10551085 "Use tag as folder": "标记为文件夹",
10561086 "Delete tag": "删除标签",
1087+ "Toggle entry's active state.": "切换条目激活状态。",
10571088 "Entry Title/Memo": "条目标题/备忘录",
10581089 "WI Entry Status:🔵 Constant🟢 Normal🔗 Vectorized": "世界书条目状态:\r🔵 永久\r🟢 关键词\r🔗 向量化",
10591090 "WI_Entry_Status_Constant": "永久",
@@ -1072,7 +1103,7 @@
10721103 "Depth": "深度",
10731104 "Order:": "顺序:",
10741105 "Order": "顺序",
10751106 "Trigger %:": "触发 %:",
10761107 "Duplicate world info entry": "重复的世界信息条目",
10771108 "Delete world info entry": "删除世界信息条目",
10781109 "Comma separated (required)": "逗号分隔(必填)",
@@ -1154,7 +1185,7 @@
11541185 "Message Actions": "消息操作",
11551186 "Translate message": "翻译消息",
11561187 "Generate Image": "生成图片",
11571188 "Narrate": "叙述朗读",
11581189 "Exclude message from prompts": "从提示词中排除消息",
11591190 "Include message in prompts": "将消息包含在提示词中",
11601191 "Embed file or image": "嵌入文件或图像",
@@ -1165,9 +1196,16 @@
11651196 "Edit": "编辑",
11661197 "Confirm": "确认",
11671198 "Copy this message": "复制此消息",
1199+ "Add a reasoning block": "添加一个推理块",
11681200 "Delete this message": "删除此消息",
11691201 "Move message up": "将消息上移",
11701202 "Move message down": "将消息下移",
1203+ "Thought for some time": "思考了一会",
1204+ "Confirm Edit": "确认",
1205+ "Remove reasoning": "删除推理内容",
1206+ "Cancel edit": "Cancel edit",
1207+ "Copy reasoning": "复制推理内容",
1208+ "Edit reasoning": "编辑推理内容",
11711209 "Enlarge": "放大",
11721210 "Caption": "标题",
11731211 "Swipe left": "Swipe left",
@@ -1266,6 +1304,10 @@
12661304 "Regenerate": "重新生成",
12671305 "Impersonate": "AI 帮答",
12681306 "Continue": "继续",
1307+ "extension_install_1": "若想从此页安装扩展程序,你需要提前安装",
1308+ "extension_install_2": "。",
1309+ "extension_install_3": "点这个图标(",
1310+ "extension_install_4": ")前往扩展程序的代码仓库以了解如何使用它。",
12691311 "These characters are the winners of character design contests and have outstandable quality.": "这些角色都是角色设计大赛的获奖者,品质非常出色。",
12701312 "Contest Winners": "比赛获胜者",
12711313 "These characters are the finalists of character design contests and have remarkable quality.": "这些角色都是角色设计大赛的入围作品,品质十分出色。",
@@ -1334,9 +1376,11 @@
13341376 "macro)": "宏指令)",
13351377 "Automatically caption images": "自动为图像添加标题",
13361378 "Edit captions before saving": "保存前编辑标题",
1379+ "Included settings:": "包含的设置:",
1380+ "{{@key}}": "{{@key}}:",
13371381 "Profile name:": "配置名称:",
13381382 "Creating a Connection Profile": "新建API连接配置",
1339- "{{@key}}": "{{@key}}:",
1383+ "Click on the setting name to omit it from the profile.": "点击设置名称以将其从连接配置中删除。",
13401384 "Enter a name:": "输入名字:",
13411385 "Connection Profile": "API连接配置",
13421386 "View connection profile details": "查看API连接配置详情",
@@ -1345,14 +1389,17 @@
13451389 "Edit a connection profile": "编辑API连接配置",
13461390 "Reload a connection profile": "重载API连接配置",
13471391 "Delete a connection profile": "删除API连接配置",
13481392 "Omitted Settings:": "Omitted Settings:排除的设置:",
13491393 "Character Expressions": "角色表情",
1394+ "Use the selected API from Chat Translation extension settings.": "使用聊天翻译扩展程序中已选择的API。",
13501395 "Translate text to English before classification": "分类之前将文本翻译成英文",
1351- "Show default images (emojis) if sprite missing": "如果表情包缺失,则显示默认图像(表情符号)",
1396+ "A single expression can have multiple sprites. Whenever the expression is chosen, a random sprite for this expression will be selected.": "A single expression can have multiple sprites. Whenever the expression is chosen, a random sprite for this expression will be selected.",
13521397 "ImageAllow Typemultiple -sprites talkingheadper (extras)expression": "图像类型Allow -multiple 说话头像(附加内容)sprites per expression",
1398+ "If the same expression is used again, re-roll the sprite. This only applies to expressions that have multiple available sprites assigned.": "If the same expression is used again, re-roll the sprite. This only applies to expressions that have multiple available sprites assigned.",
1399+ "Re-roll if same expression is used again": "Re-roll if same sprite is used again",
13531400 "Classifier API": "分类器 API",
13541401 "Select the API for classifying expressions.": "选择用于对表达式进行分类的API。",
13551402 "Main API": "主要当前连接的 API",
13561403 "WebLLM Extension": "WebLLM Extension",
13571404 "LLM Prompt": "大语言模型提示词",
13581405 "Will be used if the API doesn't support JSON schemas or function calling.": "如果 API 不支持 JSON 模式或函数调用,则会使用它。",
@@ -1372,6 +1419,10 @@
13721419 "Put images with expressions there. File names should follow the pattern:": "将带有表情的图像放在那里。文件名应遵循以下模式:",
13731420 "expression_label_pattern": "[表达式标签].[图像格式]",
13741421 "Sprite set:": "表情集:",
1422+ "upload_expression_request": "请输入表情名称(不用加后缀)。",
1423+ "upload_expression_naming_1": "素材名称必须符合所选表情 {{expression}} 的命名规范",
1424+ "upload_expression_naming_2": "当存在多个表情时,名称应由表情名称与合法后缀构成,允许使用横杠'-'或英文句号'.'作为分隔符。",
1425+ "upload_expression_replace": "点击“替换”以替换当前表情:",
13751426 "Show Gallery": "展示图库",
13761427 "ext_sum_title": "总结",
13771428 "ext_sum_with": "总结如下:",
@@ -1494,6 +1545,7 @@
14941545 "ext_regex_slash_desc": "通过 STscript 命令发送的消息。",
14951546 "Slash Commands": "快捷命令",
14961547 "ext_regex_wi_desc": "知识书/世界书 条目的内容。需要勾选“仅格式提示词”!",
1548+ "ext_regex_reasoning_desc": "推理块内容。当'仅格式提示词'被选中时,它会影响提示词里的推理内容。",
14971549 "ext_regex_min_depth_desc": "当应用于提示或显示时,仅影响深度至少为 N 级的消息。“0”为最后一条消息,“1”为倒数第二条消息等。仅计算 WI 条目 @Depth 和可用消息,即非隐藏或系统消息。",
14981550 "Min Depth": "最小深度",
14991551 "ext_regex_min_depth_placeholder": "无限",
@@ -1621,6 +1673,13 @@
16211673 "Interactive Mode": "交互模式",
16221674 "Function Tool": "Function Tool",
16231675 "Image Prompt Templates": "图像提示模板",
1676+ "Token Counter": "词符计数器",
1677+ "Type / paste in the box below to see the number of tokens in the text.": "在下方框中输入或粘贴你想要统计词符数量的文本。",
1678+ "Selected tokenizer:": "已选分词器:",
1679+ "Input:": "输入:",
1680+ "Tokens:": "词符:",
1681+ "Tokenized text:": "词符化文本:",
1682+ "Token IDs:": "词符ID:",
16241683 "ext_translate_btn_chat": "翻译聊天",
16251684 "ext_translate_btn_input": "翻译输入",
16261685 "ext_translate_delete_confirm_1": "你确定吗?",
@@ -1640,11 +1699,12 @@
16401699 "Auto Generation": "自动生成",
16411700 "Requires auto generation to be enabled.": "需要启用自动生成功能。",
16421701 "Narrate by paragraphs (when streaming)": "按段朗读(流式播放时)",
1702+ "Narrate by paragraphs (when not streaming)": "按段朗读(非流式播放时)",
16431703 "Only narrate quotes": "只朗读引号内文本",
16441704 "Ignore text, even quotes, inside asterisk": "不朗读所有*星号内文本*,即使其被引号包裹",
16451705 "Narrate only the translated text": "只朗读翻译后文本",
16461706 "Skip codeblocks": "跳过代码块",
16471707 "Skip tagged blocks": "跳过标签化的块跳过标签块里的内容(<tagged标签>跳过这里</标签>)",
16481708 "Pass Asterisks to TTS Engine": "将星号传递给文本转语音服务",
16491709 "Audio Playback Speed": "音频播放速度",
16501710 "Vector Storage": "向量存储",
@@ -1666,6 +1726,7 @@
16661726 "Max Entries": "最大条目数",
16671727 "File vectorization settings": "文件向量化设置",
16681728 "Enable for files": "为文件启用",
1729+ "Only chunk on custom boundary": "仅按自定义边界分块",
16691730 "Translate files into English before processing": "处理之前将文件翻译成英文",
16701731 "Message attachments": "消息附件",
16711732 "Size threshold (KB)": "大小阈值(KB)",
@@ -1855,7 +1916,6 @@
18551916 "Total Tokens in Prompt:": "提示词的总Token数量:",
18561917 "Max Context": "最大上下文:",
18571918 "(Context Size - Response Length)": "(上下文长度 - 回复长度)",
1858- ":": ":",
18591919 "System-wide Replacement Macros (in order of evaluation):": "系统范围的替换宏(按评估顺序):",
18601920 "help_macros_1": "仅适用于斜线命令批处理。替换为上一个命令的返回结果。",
18611921 "help_macros_2": "仅插入一个换行符。",
@@ -1873,18 +1933,19 @@
18731933 "help_macros_14": "未格式化的对话示例",
18741934 "(only for Story String)": "(仅适用于故事字符串)",
18751935 "help_macros_summary": "“Summarize”扩展生成的最新聊天摘要(如果有)。",
18761936 "help_macros_15": "您当前的 Persona 用户名您当前的用户角色名称",
18771937 "help_macros_16": "角色的名字",
18781938 "help_macros_17": "角色的版本号",
18791939 "help_macros_18": "以逗号分隔的群成员名称列表或单人聊天中的角色名称。别名:{{charIfNotGroup}}",
18801940 "help_groupNotMuted": "与 {{group}} 相同,但排除被禁言的成员",
18811941 "help_macros_19": "当前选定的 API 的文本生成模型名称。",
18821942 "Can be inaccurate!": "可能不准确不一定准确!",
18831943 "help_macros_20": "最新聊天消息的文本。",
18841944 "help_macros_lastUser": "最后的用户聊天消息文本。",
18851945 "help_macros_lastChar": "最后的角色聊天消息文本。",
18861946 "help_macros_21": "最新聊天消息的索引号。对于斜线命令批处理很有用。",
18871947 "help_macros_22": "上下文中包含的第一条消息的 ID。要求在当前会话中至少运行一次生成。",
1948+ "help_macros_firstDisplayedMessageId": "第一条载入可见聊天的消息的ID",
18881949 "help_macros_23": "最后一条聊天消息中当前滑动的 ID(以 1 为基数)。如果最后一条消息是用户或提示隐藏的,则为空字符串。",
18891950 "help_macros_24": "最后一条聊天消息中的滑动次数。如果最后一条消息是用户隐藏或提示隐藏的,则为空字符串。",
18901951 "help_macros_reverse": "反转宏的内容。",
@@ -2041,7 +2102,7 @@
20412102 "in the chat bar": "至聊天框",
20422103 "SillyTavern Documentation Site": "访问 SillyTavern 帮助文档",
20432104 "Still have questions?": "仍有疑问?",
20442105 "Join the SillyTavern Discord": "加入 SillyTavern Discord群组",
20452106 "Post a GitHub issue": "在 GitHub 发布问题",
20462107 "Contact the developers": "联系开发者",
20472108 "If you're connected to an API, try asking me something!": "若您已经配置好API,尝试发送些什么吧!",
public/locales/zh-tw.json+512 -341
@@ -4,23 +4,23 @@
44 "Duplicate": "複製",
55 "Persona": "使用者角色",
66 "Delete": "刪除",
77 "AI Response Configuration": "設定 AI 回應回應設定",
88 "AI Configuration panel will stay open": "上鎖 = AI 設定面板將保持開啟",
99 "clickslidertips": "點選滑桿數字可手動輸入點選滑桿旁的數字以手動輸入。",
1010 "MAD LAB MODE ON": "瘋狂實驗室模式",
1111 "Documentation on sampling parameters": "取樣參數的說明文件。",
1212 "kobldpresets": "Kobold 預設設定檔",
1313 "guikoboldaisettings": "GUI KoboldAI 設定",
1414 "Update current preset": "更新預設更新預設設定檔",
1515 "Save preset as": "另存新預設另存新預設設定檔",
1616 "Import preset": "匯入預設匯入預設設定檔",
1717 "Export preset": "匯出預設設定檔",
1818 "Restore current preset": "還原目前預設還原目前預設設定檔",
1919 "Delete the preset": "刪除預設刪除預設設定檔",
2020 "novelaipresets": "NovelAI 預設設定檔",
2121 "Default": "預設",
2222 "openaipresets": "OpenAI 預設設定檔",
2323 "Text Completion presets": "文本補全預設文字補全預設設定檔",
2424 "AI Module": "AI 模組",
2525 "Changes the style of the generated text.": "變更生成文字的樣式。",
2626 "No Module": "無模組",
@@ -35,7 +35,7 @@
3535 "Only enable this if your model supports context sizes greater than 8192 tokens": "僅在您的模型支援超過 8192 個符元的上下文長度時啟用此功能",
3636 "Max prompt cost:": "最大提示詞費用:",
3737 "Display the response bit by bit as it is generated.": "逐字顯示生成中的回應內容。",
3838 "When this is off, responses will be displayed all at once when they are complete.": "關閉時,回應將在生成完成後一次性顯示回應將在生成完成後一次全部顯示。",
3939 "Temperature": "溫度",
4040 "rep.pen": "重複懲罰",
4141 "Rep. Pen. Range.": "重複懲罰範圍",
@@ -51,7 +51,7 @@
5151 "Aggressive": "積極",
5252 "Very aggressive": "非常積極",
5353 "Unlocked Context Size": "解鎖上下文長度",
5454 "Unrestricted maximum value for the context slider": "不限制上下文滑桿最大值不限制上下文長度的最大值",
5555 "Context Size (tokens)": "上下文長度(符元數)",
5656 "Max Response Length (tokens)": "最大回應長度(符元數)",
5757 "Multiple swipes per generation": "每次生成多次滑動",
@@ -71,7 +71,7 @@
7171 "Utility Prompts": "實用提示詞",
7272 "Impersonation prompt": "AI 扮演提示詞",
7373 "Restore default prompt": "還原預設提示詞",
7474 "Prompt that is used for Impersonation function": "用於 AI 模仿功能的提示詞扮演使用者」功能的提示詞",
7575 "World Info Format Template": "世界資訊格式",
7676 "Restore default format": "還原預設格式",
7777 "Wraps activated World Info entries before inserting into the prompt.": "在插入提示詞前包裝已啟用的世界資訊條目。",
@@ -79,8 +79,8 @@
7979 "scenario_format_template_part_2": "來標示要插入內容的位置。",
8080 "Scenario Format Template": "場景格式",
8181 "Personality Format Template": "個性格式",
8282 "Group Nudge Prompt Template": "群組推動提示詞範本群組聊天格式微調",
8383 "Sent at the end of the group chat history to force reply from a specific character.": "在群組聊天歷史結束時發送以強制特定角色回覆在群組聊天歷史結束時傳送以強制特定角色回覆",
8484 "New Chat": "新聊天",
8585 "Restore new chat prompt": "還原新聊天的提示詞",
8686 "Set at the beginning of the chat history to indicate that a new chat is about to start.": "設定在聊天歷史的開頭以表明即將開始新的聊天",
@@ -89,20 +89,20 @@
8989 "Set at the beginning of the chat history to indicate that a new group chat is about to start.": "設定在聊天歷史的開頭以表明即將開始新的群組聊天",
9090 "New Example Chat": "新範例聊天",
9191 "Set at the beginning of Dialogue examples to indicate that a new example chat is about to start.": "設定在對話範例的開頭以表明即將開始新的範例聊天",
9292 "Continue nudge": "繼續輔助提示詞繼續輔助微調",
9393 "Set at the end of the chat history when the continue button is pressed.": "按下繼續按鈕時設定在聊天歷史的末尾按下「繼續」按鈕時,插入於聊天歷史的結尾",
9494 "Replace empty message": "取代空白訊息",
9595 "Send this text instead of nothing when the text box is empty.": "當文字方塊為空時當文字框為空時發送此字串而不是空白傳送此文字以取代空白。",
9696 "Seed": "種子",
9797 "Set to get deterministic results. Use -1 for random seed.": "設定以獲取確定性結果設定數值以取得可重現的結果。使用 -1 作為隨機種子",
98- "Temperature controls the randomness in token selection": "溫度控制符元選擇中的隨機性",
98+ "Temperature controls the randomness in token selection": "溫度(Temperature)控制符元選擇的隨機性。\n- 低溫(<1.0):產生更可預測且具邏輯性的文字,優先選擇機率較高的符元。\n- 高溫(>1.0):提升創造性與輸出的多樣性,更常選擇機率較低的符元。\n將值設為 1.0 可使用原始機率。",
9999 "Top_K_desc": "Top K 設定可以選擇的最高符元數量。\n例如,Top K 為 20,這意味著只保留排名前 20 的符元(無論它們的機率是多樣還是有限的)。\n設定為 0 以停用。",
100100 "Top_P_desc": "Top P(又名核心取樣) 會將所有頂級符元加總,直到達到目標百分比。\n例如,如果前兩個符元都是 25%,而 Top P 設為 0.5,那麼只有前兩個符元會被考慮。\n設定為 1.0 以停用。",
101101 "Typical P": "Typical P",
102102 "Typical_P_desc": "Typical P 取樣根據符元偏離集合平均熵的程度進行優先排序。\n它會保留累積機率接近預設閾值 (例如0例如 0.5) 的符元,強調那些具有平均信息量的符元,強調那些具有平均資訊量的符元。\n設定為 1.0 以停用。",
103103 "Min_P_desc": "Min P 設定基本最小機率。\n這個值會根據最高符元的機率進行調整。例如,如果最高符元機率為 80%,而 Min P 設為 0.1 ,那麼只有機率高於 8% 的符元會被考慮。\n設定為 0 以停用。",
104104 "Top_A_desc": "Top A 根據最高符元機率的平方設定符元選擇的門檻。\n例如,如果 Top A 值為 0.2,而最高符元機率為 50%,那麼低於 5%(0.2 * 0.5^2) 的符元機率就會被排除。\n設定為 0 以停用。",
105105 "Tail_Free_Sampling_desc": "無尾取樣 (Tail-Free Sampling, TFS) 會透過分析符元機率的變化率 (使用導數) 來尋找分佈中的低機率符元尾部。\n它會根據標準化的二階導數,保留直到某個閾值 (例如0例如 0.3) 的符元。\n數值越接近 0 ,表示會棄去越多符元。設定為 1.0 以停用。",
106106 "rep.pen range": "重複懲罰範圍",
107107 "Mirostat": "Mirostat",
108108 "Mode": "模式",
@@ -126,10 +126,10 @@
126126 "Logit Bias": "Logit 偏差",
127127 "Add": "新增",
128128 "Helps to ban or reenforce the usage of certain words": "有助於禁止或強化某些符元的使用",
129129 "CFG Scale": "CFG 比例縮放比例",
130130 "Negative Prompt": "負面提示詞",
131131 "Add text here that would make the AI generate things you don't want in your outputs.": "在這裡新增文字在此新增文字使以防止 AI 生成您不希望在輸出中出現的內容在輸出中生成您不希望出現的內容。",
132132 "Used if CFG Scale is unset globally, per chat or character": "如果CFG Scale未在全域、每個聊天或角色中設定CFG 縮放比例未被全域設定則使用它將作用於所有聊天或角色",
133133 "Mirostat Tau": "Tau",
134134 "Mirostat LR": "Mirostat 學習率",
135135 "Min Length": "最小長度",
@@ -144,14 +144,14 @@
144144 "Epsilon Cutoff": "Epsilon 截斷",
145145 "Epsilon cutoff sets a probability floor below which tokens are excluded from being sampled": "Epsilon 截斷設定排除符元的機率下限",
146146 "Eta Cutoff": "Eta 截斷",
147147 "Eta_Cutoff_desc": "Eta 截斷是特殊 Eta 取樣技術的主要參數。\n單位為 1e-4;合理值為 3。\n設為 0 以停用。\n詳情請參見n詳細資訊請參見 Hewitt 等人於 2022 年撰寫的論文《Truncation Sampling as Language Model Desmoothing》。",
148148 "rep.pen decay": "重複懲罰衰減",
149149 "Encoder Rep. Pen.": "編碼器重複懲罰",
150150 "No Repeat Ngram Size": "無重複 Ngram 大小",
151151 "Skew": "Skew",
152152 "Max Tokens Second": "最大符元/秒",
153153 "Smooth Sampling": "平滑取樣",
154154 "Smooth_Sampling_desc": "允許您使用二次/三次變換來調整分佈。較低的平滑因子值將更具創造性,通常在 0.2-0.3 之間是最佳點(假設曲線=1)。較高的平滑曲線值會使曲線更陡峭,這將更加激烈地懲罰低概率選擇這將更加激烈地懲罰低機率選擇。1.0 的曲線值相當於僅使用平滑因子。",
155155 "Smoothing Factor": "平滑因子",
156156 "Smoothing Curve": "平滑曲線",
157157 "DRY_Repetition_Penalty_desc": "DRY 會懲罰那些將輸入的結尾擴充為已在先前輸入中出現過序列的符元。將乘法器設為 0 以停用。",
@@ -183,7 +183,7 @@
183183 "Length Penalty": "長度懲罰",
184184 "Early Stopping": "提前停止",
185185 "Contrastive search": "對比搜尋",
186186 "Contrastive_search_txt": "一種取樣器,通過利用大多數透過利用大多數 LLM 的表示空間的等向性,鼓勵多樣性的同時保持一致性。詳情請參閱詳細資訊請參閱 Su 等人於 2022 年發表的論文《A Contrastive Framework for Neural Text Generation》。",
187187 "Penalty Alpha": "懲罰 Alpha",
188188 "Strength of the Contrastive Search regularization term. Set to 0 to disable CS": "對比搜尋正則化項的強度。設定為 0 以停用 CS",
189189 "Do Sample": "進行取樣",
@@ -194,7 +194,7 @@
194194 "Ignore the EOS Token even if it generates.": "即使生成也忽略 EOS 符元",
195195 "Skip Special Tokens": "跳過特殊符元",
196196 "Temperature Last": "最後的溫度",
197197 "Temperature_Last_desc": "使用最後應用溫度取樣器。這幾乎總是明智的做法。\n啟用時:首先取樣一組合理的符元,然後應用溫度來調整它們的相對機率(技術上講,是 logits)。\n停用時:首先應用溫度調整所有符元的相對機率,然後從中取樣合理的符元。\n停用「最後應用溫度取樣」會增加分佈尾部的概率會增加分佈尾部的機率,這傾向於放大獲得不連貫回應的機會。",
198198 "Speculative Ngram": "推測性 Ngram",
199199 "Use a different speculative decoding method without a draft model": "使用不含草稿模型的不同推測性解碼方法。",
200200 "Spaces Between Special Tokens": "特殊符元之間的空格",
@@ -222,21 +222,21 @@
222222 "Message Content": "訊息內容",
223223 "Prepend character names to message contents.": "在訊息內容前新增角色名稱",
224224 "Continue Postfix": "繼續後綴",
225225 "The next chunk of the continued message will be appended using this as a separator.": "繼續訊息的下一塊將使用此作為分隔符附加繼續訊息的下一塊將使用此作為分隔符號附加",
226226 "Space": "空格",
227227 "Newline": "換行",
228228 "Double Newline": "雙換行",
229229 "Wrap user messages in quotes before sending": "發送前將使用者訊息用引號括起來傳送前將使用者訊息用引號括起來",
230230 "Wrap in Quotes": "用引號包裹",
231231 "Wrap entire user message in quotes before sending.": "在發送之前將整個使用者訊息用引號包裹在傳送之前將整個使用者訊息用引號包裹。",
232232 "Leave off if you use quotes manually for speech.": "如果您手動使用引號進行發言,請關閉。",
233233 "Continue prefill": "繼續預先填充",
234234 "Continue sends the last message as assistant role instead of system message with instruction.": "繼續將最後的訊息作為助理角色發送繼續將最後的訊息作為助理角色傳送,而不是帶有指令的系統訊息。",
235235 "Squash system messages": "合併系統訊息",
236236 "Combines consecutive system messages into one (excluding example dialogues). May improve coherence for some models.": "將連續的系統訊息合併為一個(不包括對話範例)。可能會提高某些模型的一致性。",
237237 "Enable function calling": "啟用函數調用啟用函式呼叫",
238238 "Send inline images": "發送內嵌圖片傳送內嵌圖片",
239239 "image_inlining_hint_1": "如果模型支援(例如:GPT-4V、Claude 3 或 Llava 13B),則在提示詞中發送圖片則在提示詞中傳送圖片。\n使用任何訊息上的",
240240 "image_inlining_hint_2": "動作或",
241241 "image_inlining_hint_3": "選單來附加圖片文件到聊天中。",
242242 "Inline Image Quality": "內嵌圖片品質",
@@ -246,31 +246,31 @@
246246 "Use AI21 Tokenizer": "使用 AI21 分詞器",
247247 "Use the appropriate tokenizer for Jurassic models, which is more efficient than GPT's.": "對於 Jurassic 模型使用適當的分詞器,比 GPT 的更高效",
248248 "Use Google Tokenizer": "使用 Google 分詞器",
249249 "Use the appropriate tokenizer for Google models via their API. Slower prompt processing, but offers much more accurate token counting.": "通過透過 Google 模型的 API 使用適當的分詞器。提示詞處理速度較慢,但提供更準確的符元計數。",
250250 "Use system prompt": "使用系統提示詞",
251251 "(Gemini 1.5 Pro/Flash only)": "(僅限於 Gemini 1.5 Pro/Flash)",
252252 "Merges_all_system_messages_desc_1": "合併所有系統訊息,直到第一則非系統角色的訊息,並通過並透過 google 的",
253253 "Merges_all_system_messages_desc_2": "字段發送欄位傳送而不是與其餘提示詞內容一起發送而不是與其餘提示詞內容一起傳送。",
254254 "Assistant Prefill": "預先填充助理訊息",
255255 "Start Claude's answer with...": "開始 Claude 的回答⋯",
256256 "Assistant Impersonation Prefill": "助理扮演時的預先填充",
257257 "Use system prompt (Claude 2.1+ only)": "使用系統提示詞(僅限 Claude 2.1+)",
258258 "Send the system prompt for supported models. If disabled, the user message is added to the beginning of the prompt.": "為支援的模型發送系統提示詞為支援的模型傳送系統提示詞。停用時,使用者訊息將新增到提示詞的開頭。",
259259 "User first message": "使用者第一則訊息",
260260 "Restore User first message": "還原使用者第一則訊息",
261261 "Human message": "人類訊息、指令等。\n當空白時不加入任何內容,也就是需要一個帶有使用者角色的新提示詞。",
262262 "New preset": "新預設新預設設定檔",
263263 "Delete preset": "刪除預設刪除預設設定檔",
264264 "View / Edit bias preset": "查看檢視/編輯 Bias 預設預設設定檔",
265265 "Add bias entry": "新增 Bias 條目",
266266 "Most tokens have a leading space.": "大多數符元有前導空格",
267267 "API Connections": "API 連線",
268268 "Text Completion": "文本補全文字補全",
269269 "Chat Completion": "聊天補全",
270270 "NovelAI": "NovelAI",
271271 "AI Horde": "AI Horde",
272272 "KoboldAI": "KoboldAI",
273273 "Avoid sending sensitive information to the Horde.": "避免發送敏感資訊到避免傳送敏感資訊到 Horde。",
274274 "Review the Privacy statement": "檢視隱私聲明",
275275 "Register a Horde account for faster queue times": "註冊 Horde 帳號以縮短等待時間",
276276 "Learn how to contribute your idle GPU cycles to the Horde": "了解如何將閒置的 GPU 週期貢獻給 Horde",
@@ -279,7 +279,7 @@
279279 "Can help with bad responses by queueing only the approved workers. May slowdown the response time.": "僅將已批准的 worker 排隊,可以幫助處理不良回應。可能會延長回應時間。",
280280 "Trusted workers only": "僅限受信任的 worker",
281281 "API key": "API 金鑰",
282282 "Get it here:": "在這裡獲取在這裡取得:",
283283 "Register": "註冊",
284284 "View my Kudos": "瀏覽我的讚賞記錄",
285285 "Enter": "輸入",
@@ -346,18 +346,18 @@
346346 "Save Proxy": "儲存代理伺服器",
347347 "Delete Proxy": "刪除代理伺服器",
348348 "Proxy Name": "代理伺服器名稱",
349349 "This will show up as your saved preset.": "這將顯示為您儲存的預設這將顯示為您儲存的預設設定檔",
350350 "Proxy Server URL": "代理伺服器 URL",
351351 "Alternative server URL (leave empty to use the default value).": "替代伺服器 URL(留空以使用預設值)。",
352352 "Remove your real OAI API Key from the API panel BEFORE typing anything into this box": "在此框中輸入任何內容之前,從 API 面板中刪除您的實際 OAI API 金鑰",
353353 "We cannot provide support for problems encountered while using an unofficial OpenAI proxy": "我們無法為使用非官方 OpenAI 代理伺服器時遇到的問題提供支援",
354354 "Doesn't work? Try adding": "不起作用?嘗試新增",
355355 "at the end!": "在最後在 URL 結尾!",
356356 "Proxy Password": "代理伺服器密碼",
357357 "Will be used as a password for the proxy instead of API key.": "將用作代理的密碼,而不是 API 金鑰",
358358 "Peek a password": "顯示密碼",
359359 "OpenAI API key": "OpenAI API 金鑰",
360360 "View API Usage Metrics": "查看檢視 API 使用指標",
361361 "Follow": "遵循",
362362 "these directions": "這些指示",
363363 "to get your OpenAI API key.": "以取得您的 OpenAI API 金鑰。",
@@ -397,16 +397,16 @@
397397 "Available Models": "可用模型",
398398 "Prompt Post-Processing": "提示詞後處理",
399399 "Applies additional processing to the prompt before sending it to the API.": "這個選項會在將提示詞送往 API 之前,對它進行額外的處理。",
400400 "Verifies your API connection by sending a short test message. Be aware that you'll be credited for it!": "透過發送簡短的測試訊息來驗證您的透過傳送簡短的測試訊息來驗證您的 API 連線。請注意,您將因此獲得榮譽!",
401401 "Test Message": "測試訊息",
402402 "Auto-connect to Last Server": "自動連線到上次伺服器自動連接至上次使用的伺服器",
403403 "Missing key": "❌ 鑰匙遺失",
404404 "Key saved": "✔️ 金鑰已儲存",
405405 "View hidden API keys": "查看隱藏的檢視隱藏的 API 金鑰",
406406 "AI Response Formatting": "AI 回應進階格式化",
407407 "Advanced Formatting": "進階格式化",
408408 "Context Template": "上下文範本",
409409 "Auto-select this preset for Instruct Mode": "自動選擇此預設用於指令模式自動選擇此預設設定檔用於指令模式",
410410 "Story String": "故事字串",
411411 "Example Separator": "分隔符號範例",
412412 "Chat Start": "聊天開始符號",
@@ -458,7 +458,7 @@
458458 "Inserted before the first Assistant's message.": "插入在第一則助理訊息之前。",
459459 "First Assistant Prefix": "開頭助理前綴",
460460 "instruct_last_output_sequence": "插入在最後一則助理訊息之前,或在生成 AI 回覆時作為最後一行提示詞(除了中立/系統角色)。",
461461 "Last Assistant Prefix": "末尾助理前綴結尾助理前綴",
462462 "Will be inserted as a last prompt line when using system/neutral generation.": "在使用系統/中立生成時作為最後一行提示詞插入。",
463463 "System Instruction Prefix": "系統指令前綴",
464464 "If a stop sequence is generated, everything past it will be removed from the output (inclusive).": "如果生成了停止序列,包括該序列以及之後的所有內容將從輸出中刪除。",
@@ -482,7 +482,7 @@
482482 "Non-markdown strings": "非 Markdown 字串",
483483 "separate with commas w/o space between": "用逗號分隔,之間無空格",
484484 "Custom Stopping Strings": "自訂停止字串",
485485 "JSON serialized array of strings": "JSON 序列化字串數組序列化字串陣列",
486486 "Replace Macro in Stop Strings": "取代自訂停止字串中的巨集",
487487 "Auto-Continue": "自動繼續",
488488 "Allow for Chat Completion APIs": "允許聊天補全 API",
@@ -493,7 +493,7 @@
493493 "Active World(s) for all chats": "所有聊天啟用中的世界書",
494494 "-- World Info not found --": "-- 未找到世界資訊 --",
495495 "Global World Info/Lorebook activation settings": "全域世界資訊/知識書啟動設定",
496496 "Click to expand": "點擊展開點選展開",
497497 "Scan Depth": "掃描深度",
498498 "Context %": "上下文百分比",
499499 "Budget Cap": "預算上限",
@@ -506,16 +506,16 @@
506506 "Sorted Evenly": "均等排序",
507507 "Character Lore First": "角色知識書優先",
508508 "Global Lore First": "全域知識書優先",
509509 "Entries can activate other entries by mentioning their keywords": "條目可以通過提及其關鍵字來啟用其他條目條目可以透過提及其關鍵字來啟用其他條目",
510510 "Recursive Scan": "遞迴掃描",
511511 "Lookup for the entry keys in the context will respect the case": "在上下文中查找條目鍵將區分大小寫在上下文中查詢條目鍵將區分大小寫",
512512 "Case Sensitive": "區分大小寫",
513513 "If the entry key consists of only one word, it would not be matched as part of other words": "如果條目鍵僅包含一個詞,則不會作為其他詞的一部分進行配對",
514514 "Match Whole Words": "完全配對",
515515 "Only the entries with the most number of key matches will be selected for Inclusion Group filtering": "只有符合最多鍵值數量的條目將被選中進行包含群組過濾",
516516 "Use Group Scoring": "使用群組評分",
517517 "Alert if your world info is greater than the allocated budget.": "如果您的世界資訊超過分配的預算則提醒",
518518 "Alert On Overflow": "溢出時警告溢位時警告",
519519 "New": "新增",
520520 "or": "或",
521521 "--- Pick to Edit ---": "--- 選擇編輯 ---",
@@ -548,7 +548,7 @@
548548 "User Settings": "使用者設定",
549549 "Simple": "簡單",
550550 "Advanced": "進階",
551551 "UI Language": "介面語言:",
552552 "Account": "帳號",
553553 "Admin Panel": "管理面板",
554554 "Logout": "登出",
@@ -559,7 +559,7 @@
559559 "Delete a theme": "刪除主題",
560560 "Update a theme file": "更新主題檔",
561561 "Save as a new theme": "另存為新主題",
562562 "Avatar Style:": "頭像樣式",
563563 "Circle": "圓形",
564564 "Square": "方形",
565565 "Rectangle": "矩形",
@@ -580,9 +580,9 @@
580580 "User Message Blur Tint": "使用者訊息模糊色調",
581581 "AI Message Blur Tint": "AI 訊息模糊色調",
582582 "Chat Width": "對話框寬度",
583583 "Width of the main chat window in % of screen width": "主聊天視窗寬度占螢幕寬度的百分比主聊天視窗寬度佔螢幕寬度的百分比",
584584 "Font Scale": "字體比例字型比例",
585585 "Font size": "字體大小字型大小",
586586 "Blur Strength": "模糊強度",
587587 "Blur strength on UI panels.": "UI 面板上的模糊強度",
588588 "Text Shadow Width": "文字陰影寬度",
@@ -622,22 +622,22 @@
622622 "Enables a magnification effect on hover when you display the zoomed avatar after clicking an avatar's image in chat.": "當你在聊天中點選頭像的圖片後,這會啟用滑鼠懸停時的放大效果。",
623623 "Show tagged character folders in the character list": "在角色列表中顯示標籤角色資料夾。",
624624 "Tags as Folders": "標籤作為資料夾",
625625 "Tags_as_Folders_desc": "標籤必須在「標籤管理」選單中標記為資料夾才可適用。點擊這裡打開點選這裡開啟。",
626626 "Character Handling": "角色處理",
627627 "If set in the advanced character definitions, this field will be displayed in the characters list.": "如果在進階角色定義中設定,這個欄位將顯示在角色清單中。",
628628 "Char List Subheader": "角色列表子標題",
629629 "Character Version": "角色版本",
630630 "Created by": "創作者",
631631 "Use fuzzy matching, and search characters in the list by all data fields, not just by a name substring": "使用模糊配對,並通過所有資料欄位在列表中搜尋角色並透過所有資料欄位在列表中搜尋角色而不僅僅是通過名稱子字串而不僅僅是透過名稱子字串。",
632632 "Advanced Character Search": "進階角色搜尋",
633633 "If checked and the character card contains a prompt override (System Prompt), use that instead": "如果選中並且角色卡包含提示詞覆寫(系統提示詞),則使用該提示詞。",
634634 "Prefer Character Card Prompt": "角色卡主要提示詞優先",
635635 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "如果選中並且角色卡包含越獄覆寫(聊天歷史後指示),則使用該提示詞。",
636636 "Prefer Character Card Jailbreak": "角色卡越獄優先",
637- "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768": "避免裁剪和調整匯入的角色圖像大小。未勾選時將會裁剪/調整大小到 512x768。",
637+ "never_resize_avatars_tooltip": "避免裁剪與調整匯入的角色頭像大小。未啟用此選項時,圖片將被裁剪/調整為 512x768。此設定會關閉上傳頭像時的裁剪彈出視窗。",
638638 "Never resize avatars": "永不調整頭像大小",
639639 "Show actual file names on the disk, in the characters list display only": "僅在角色列表顯示實際檔案名稱。",
640640 "Show avatar filenames": "顯示頭像檔案名顯示頭像檔案名稱",
641641 "Prompt to import embedded card tags on character import. Otherwise embedded tags are ignored": "在角色匯入時提示詞匯入嵌入的卡片標籤。否則,嵌入的標籤將被忽略。",
642642 "Import Card Tags": "匯入卡片中的標籤",
643643 "Hide character definitions from the editor panel behind a spoiler button": "在編輯器面板中將角色定義隱藏在劇透按鈕後面。",
@@ -658,14 +658,14 @@
658658 "Relaxed API URLS": "寬鬆的 API URL 格式",
659659 "Ask to import the World Info/Lorebook for every new character with embedded lorebook. If unchecked, a brief message will be shown instead": "當新角色含有知識書時,詢問是否要匯入嵌入的世界資訊/知識書。如果未選中,則會顯示簡短的訊息。",
660660 "Lorebook Import Dialog": "匯入知識書對話框",
661661 "Restore unsaved user input on page refresh": "在頁面刷新時還原未儲存的使用者輸入在頁面重新整理時還原未儲存的使用者輸入。",
662662 "Restore User Input": "還原使用者輸入",
663663 "Allow repositioning certain UI elements by dragging them. PC only, no effect on mobile": "允許通過拖動重新定位某些允許透過拖動重新定位某些 UI 元素。僅適用於 PC 版。",
664664 "Movable UI Panels": "可拖動的 UI 模式",
665665 "MovingUI preset. Predefined/saved draggable positions": "MovingUI 預設預設設定檔。預先定義/儲存可拖動位置。",
666666 "MUI Preset": "MovingUI 預設預設設定檔",
667667 "Save movingUI changes to a new file": "另存 MovingUI 變更為新檔案",
668668 "Reset MovingUI panel sizes/locations.": "重置重設 MovingUI 面板大小/位置",
669669 "Apply a custom CSS style to all of the ST GUI": "將自訂 CSS 樣式應用於所有 SillyTavern 介面",
670670 "Custom CSS": "自訂 CSS 樣式",
671671 "Expand the editor": "展開編輯器",
@@ -679,7 +679,7 @@
679679 "Gradual push-out": "逐步推出",
680680 "Always include examples": "總是包含範例",
681681 "Never include examples": "永不包含範例",
682682 "Send on Enter": "按下 Enter 鍵發送鍵傳送:",
683683 "Disabled": "停用",
684684 "Automatic (PC)": "自動(PC)",
685685 "Press Send to continue": "按下傳送繼續",
@@ -699,22 +699,22 @@
699699 "Forbid External Media": "禁止使用外部媒體",
700700 "Allow {{char}}: in bot messages": "允許機器人訊息中使用 {{char}}:",
701701 "Allow {{user}}: in bot messages": "允許機器人訊息中使用 {{user}}:",
702702 "Skip encoding and characters in message text, allowing a subset of HTML markup as well as Markdown": "跳過編碼訊息文字中的 < 和 > 字符字元,允許一部分 HTML 標記以及 Markdown",
703703 "Show tags in responses": "在回應中顯示標籤",
704704 "Allow AI messages in groups to contain lines spoken by other group members": "允許群組中的 AI 訊息包含其他群組成員說的話",
705705 "Relax message trim in Groups": "放寬群組中的訊息修剪",
706706 "Log prompts to console": "將提示詞記錄到控制台",
707707 "Requests logprobs from the API for the Token Probabilities feature": "從 API 請求 logprobs 用於符元機率功能。",
708708 "Request token probabilities": "請求符元機率",
709709 "Automatically reject and re-generate AI message based on configurable criteria": "根據可配置標準自動拒絕並重新生成根據可設定標準自動拒絕並重新生成 AI 訊息。",
710710 "Auto-swipe": "自動滑動",
711711 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "啟用自動滑動功能。此部分的設定僅在啟用自動滑動時有效。",
712712 "Minimum generated message length": "生成訊息的最小長度",
713713 "If the generated message is shorter than thisthese many characters, trigger an auto-swipe": "如果生成的訊息比這個短,將觸發自動滑動。",
714714 "Blacklisted words": "黑名單詞語",
715715 "words you dont want generated separated by comma ','": "您不想生成的文字,使用逗號分隔",
716716 "Blacklisted word count to swipe": "滑動的黑名單詞語數量",
717717 "Minimum number of blacklisted words detected to trigger an auto-swipe": "檢測到的黑名單詞語數量觸發自動滑動的最小值偵測到的黑名單詞語數量觸發自動滑動的最小值。",
718718 "AutoComplete Settings": "自動完成設定",
719719 "Automatically hide details": "自動隱藏詳細資訊",
720720 "Determines how entries are found for autocomplete.": "決定如何找到自動完成的條目",
@@ -726,18 +726,18 @@
726726 "Autocomplete Style": "自動完成樣式",
727727 "Follow Theme": "沿用介面主題",
728728 "Dark": "深色",
729729 "Sets the font size of the autocomplete.": "設定自動完成的字體大小設定自動完成的字型大小",
730730 "Sets the width of the autocomplete.": "設定自動完成的寬度",
731731 "Autocomplete Width": "自動完成寬度",
732732 "chat input box": "聊天輸入框",
733733 "entire chat width": "整個聊天寬度",
734734 "full window width": "全視窗寬度",
735735 "STscript Settings": "STscript 設定",
736736 "Sets default flags for the STscript parser.": "設定 STscript 解析器的預設標誌解析器的預設象徵",
737737 "Parser Flags": "解析器標誌解析器象徵",
738738 "Switch to stricter escaping, allowing all delimiting characters to be escaped with a backslash, and backslashes to be escaped as well.": "切換到更嚴格的字元跳脫,允許所有分隔符號使用反斜線跳脫,反斜線自己也可以跳脫。",
739739 "STRICT_ESCAPING": "STRICT_ESCAPING",
740740 "Replace all {{getvar::}} and {{getglobalvar::}} macros with scoped variables to avoid double macro substitution.": "將所有 {{getvar::}} 和 {{getglobalvar::}} 巨集取代為作用域變量以避免雙重巨集取代巨集取代為區域變數以避免雙重巨集取代",
741741 "REPLACE_GETVAR": "REPLACE_GETVAR",
742742 "Change Background Image": "變更背景圖片",
743743 "Filter": "篩選",
@@ -758,7 +758,7 @@
758758 "Extras API key (optional)": "擴充功能 API 金鑰(選填)",
759759 "Persona Management": "使用者角色管理",
760760 "How do I use this?": "我該如何使用這個?",
761761 "Click for stats!": "點擊以查看統計資料點選以檢視統計資料!",
762762 "Usage Stats": "統計資料",
763763 "Backup your personas to a file": "備份您的使用者角色檔案",
764764 "Backup": "備份",
@@ -766,20 +766,20 @@
766766 "Restore": "還原",
767767 "Create a dummy persona": "建立一個虛構使用者角色",
768768 "Create": "建立",
769769 "Toggle grid view": "切換為網格視圖切換為網格檢視",
770770 "No persona description": "無使用者角色描述",
771771 "Name": "名稱",
772772 "Enter your name": "輸入您的名字",
773773 "Click to set a new User Name": "設定新的使用者名稱",
774774 "Click to lock your selected persona to the current chat. Click again to remove the lock.": "綁定目前所選的使用者角色至本次聊天。再次點擊則可移除綁定再次點選則可移除綁定。",
775775 "Click to set user name for all messages": "設定所有訊息的使用者名稱",
776776 "Persona Description": "使用者角色描述",
777777 "Example: [{{user}} is a 28-year-old Romanian cat girl.]": "範例:[{{user}} 是一個 28 歲的羅馬尼亞貓娘。]",
778778 "Tokens persona description": "角色描述符元數",
779779 "Position:": "插入位置:",
780780 "In Story String / Prompt Manager": "提示詞管理器/故事字串中",
781781 "Top of Author's Note": "作者備註的頂部作者備註的頂端",
782782 "Bottom of Author's Note": "作者備註的底部作者備註的底端",
783783 "In-chat @ Depth": "聊天中 @ 深度",
784784 "Depth:": "深度:",
785785 "Role:": "角色:",
@@ -820,7 +820,7 @@
820820 "Replace / Update": "取代/更新",
821821 "Import Tags": "匯入標籤",
822822 "Search / Create Tags": "搜尋/建立標籤",
823823 "View all tags": "查看所有標籤檢視所有標籤",
824824 "Creator's Notes": "創作者備註",
825825 "Show / Hide Description and First Message": "顯示/隱藏描述和第一則訊息",
826826 "Character Description": "角色描述",
@@ -830,7 +830,7 @@
830830 "First message": "初始訊息",
831831 "Click to set additional greeting messages": "點選以設定額外的問候訊息",
832832 "Alt. Greetings": "額外問候語",
833833 "This will be the first message from the character that starts every chat.": "這將是每次聊天開始時角色發送的第一則訊息這將是每次聊天開始時角色傳送的第一則訊息。",
834834 "Group Controls": "群組控制",
835835 "Chat Name (Optional)": "聊天名稱(選填)",
836836 "Click to select a new avatar for this group": "點選以選擇此群組的新頭像",
@@ -843,7 +843,7 @@
843843 "Join character cards (include muted)": "合併角色卡欄位(包括靜音)",
844844 "Inserted before each part of the joined fields.": "插入在合併欄位的每一部分之前。",
845845 "Join Prefix": "加入前綴",
846846 "When 'Join character cards' is selected, all respective fields of the characters are being joined together.This means that in the story string for example all character descriptions will be joined to one big text.If you want those fields to be separated, you can define a prefix or suffix here.This value supports normal macros and will also replace {{char}} with the relevant char's name and <FIELDNAME> with the name of the part (e.g.: description, personality, scenario, etc.)": "選擇「合併角色卡欄位」時,所有角色的相關欄位將被合併。\r例如,在故事字串中,所有角色的描述將合併為一段大文本所有角色的描述將合併為一段大文字。\r若您希望這些欄位保持分隔,您可以在此定義前綴或後綴。\r\r此值支持常規巨集r此值支援常規巨集 {{macros}},並會將 {{char}} 替換為相關角色的名稱,可將 <FIELDNAME> 替換為欄位名稱(例如:角色描述、個性、場景等)。",
847847 "Inserted after each part of the joined fields.": "插入在合併欄位的每一部分之後。",
848848 "Join Suffix": "加入後綴",
849849 "Set a group chat scenario": "設定群組聊天場景",
@@ -855,10 +855,10 @@
855855 "Hide Muted Member Sprites": "於群組拼貼頭像中隱藏靜音成員",
856856 "Current Members": "目前成員",
857857 "Add Members": "新增成員",
858858 "Create New Character": "創建角色建立角色",
859859 "Import Character from File": "由本地檔案匯入角色由本機檔案匯入角色",
860860 "Import content from external URL": "由外部 URL 匯入內容",
861861 "Create New Chat Group": "創建聊天群組建立聊天群組",
862862 "Characters sorting order": "角色排序依據",
863863 "A-Z": "A-Z",
864864 "Z-A": "Z-A",
@@ -871,8 +871,8 @@
871871 "Most tokens": "最多符元",
872872 "Least tokens": "最少符元",
873873 "Random": "隨機",
874874 "Toggle character grid view": "切換為角色網格視圖切換為角色網格檢視",
875875 "Bulk_edit_characters": "批次編輯角色\n\n點選以切換角色\n「Shift+點擊點選」可選擇/取消選擇範圍的角色\n右鍵以查看動作n右鍵以檢視動作\n右鍵以查看動作n右鍵以檢視動作",
876876 "Bulk select all characters": "全選所有角色",
877877 "Bulk delete characters": "批次刪除角色",
878878 "popup-button-save": "儲存",
@@ -887,9 +887,9 @@
887887 "Main Prompt": "主要提示詞",
888888 "Any contents here will replace the default Main Prompt used for this character. (v2 spec: system_prompt)": "此處的任何內容將取代此角色使用的預設主要提示詞。(v2 規範:system_prompt)",
889889 "Any contents here will replace the default Jailbreak Prompt used for this character. (v2 spec: post_history_instructions)": "此處的任何內容將取代此角色使用的預設越獄提示詞。(v2 規範:post_history_instructions)",
890890 "Creator's Metadata (Not sent with the AI prompt)": "創作者的中繼資料(不會與 AI 提示詞一起發送提示詞一起傳送)",
891891 "Creator's Metadata": "創作者的中繼資料",
892892 "(Not sent with the AI Prompt)": "(不與 AI 提示詞一起發送提示詞一起傳送)",
893893 "Everything here is optional": "此處所有內容均為選填",
894894 "(Botmaker's name / Contact Info)": "(機器人創作者的名字/聯絡資訊)",
895895 "(If you want to track character versions)": "(若您想追蹤角色版本)",
@@ -901,7 +901,7 @@
901901 "Scenario": "場景設想",
902902 "(Circumstances and context of the interaction)": "(互動情形與聊天背景)",
903903 "Character's Note": "角色備註",
904904 "(Text to be inserted in-chat @ designated depth and role)": "(在聊天中以指定角色於 @ 深度位置插入文本深度位置插入文字)",
905905 "@ Depth": "@ 深度",
906906 "Role": "角色",
907907 "Talkativeness": "健談度",
@@ -990,13 +990,13 @@
990990 "Exclude from recursion": "不可遞迴(此條目不會被其他條目啟用)",
991991 "Prevent further recursion (this entry will not activate others)": "防止進一步遞迴(此條目不會啟用其他條目)",
992992 "Delay until recursion (this entry can only be activated on recursive checking)": "延遲遞迴(此條目只能在遞迴檢查時啟用)",
993993 "What this keyword should mean to the AI, sent verbatim": "這個關鍵字對 AI 應意味著什麼,逐字發送逐字傳送",
994994 "Filter to Character(s)": "角色篩選",
995995 "Character Exclusion": "角色排除",
996996 "-- Characters not found --": "-- 未找到角色 --",
997997 "Inclusion Group": "包含的群組",
998998 "Inclusion Groups ensure only one entry from a group is activated at a time, if multiple are triggered.Documentation: World Info - Inclusion Group": "如果觸發多個條目,包含群組可確保一次僅啟動一組中的一個條目。\r支援多個以逗號分隔的群組。\r\r文件:世界資訊——包容性集團",
999999 "Prioritize this entry: When checked, this entry is prioritized out of all selections.If multiple are prioritized, the one with the highest 'Order' is chosen.": "優先考慮此條目:選取後,此條目將在所有選擇中優先。\r如果有多個優先級r如果有多個優先順序,則選擇「順序」最高的一個。",
10001000 "Only one entry with the same label will be activated": "僅會啟用具有相同標籤的一個條目",
10011001 "A relative likelihood of entry activation within the group": "群組內條目啟用的相對可能性",
10021002 "Group Weight": "群組權重",
@@ -1008,7 +1008,7 @@
10081008 "prompt_manager_edit": "編輯",
10091009 "prompt_manager_name": "名稱",
10101010 "A name for this prompt.": "這個提示詞的名稱。",
10111011 "To whom this message will be attributed.": "此訊息將隸屬於誰此訊息所屬的角色。",
10121012 "AI Assistant": "人工智慧助手",
10131013 "prompt_manager_position": "位置",
10141014 "Injection position. Next to other prompts (relative) or in-chat (absolute).": "注入位置。與其他提示詞相鄰(相對位置)或在聊天中(絕對位置)。",
@@ -1016,7 +1016,7 @@
10161016 "prompt_manager_depth": "深度",
10171017 "Injection depth. 0 = after the last message, 1 = before the last message, etc.": "注入深度。0 = 在最後一則訊息之後,1 = 在最後一則訊息之前,以此類推。",
10181018 "Prompt": "提示詞",
10191019 "The prompt to be sent.": "要發送的提示詞要傳送的提示詞。",
10201020 "This prompt cannot be overridden by character cards, even if overrides are preferred.": "即使啟用優先覆寫,此提示詞也不能被角色卡片覆寫。",
10211021 "prompt_manager_forbid_overrides": "禁止覆寫",
10221022 "reset": "重設",
@@ -1069,13 +1069,13 @@
10691069 "Trigger a message from this character": "觸發此角色的訊息",
10701070 "Move up": "上移",
10711071 "Move down": "下移",
10721072 "View character card": "查看角色卡檢視角色卡",
10731073 "Remove from group": "從群組中移除",
10741074 "Add to group": "新增到群組",
10751075 "Alternate Greetings": "額外問候語",
10761076 "Alternate_Greetings_desc": "這些將在開始新聊天時顯示為第一則訊息的滑動選項。\n群組成員可以選擇其中之一來開始對話。",
10771077 "Alternate Greetings Hint": "額外問候語的提示訊息",
10781078 "(This will be the first message from the character that starts every chat)": "(這將是每次聊天開始時角色發送的第一則訊息這將是每次聊天開始時角色傳送的第一則訊息)",
10791079 "Forbid Media Override explanation": "此角色/群組在聊天中使用外部媒體的能力。",
10801080 "Forbid Media Override subtitle": "禁止媒體覆寫副標題",
10811081 "Always forbidden": "總是禁止",
@@ -1089,7 +1089,7 @@
10891089 "After Main Prompt / Story String": "在主要提示詞/故事字串之後",
10901090 "as": "作為",
10911091 "Insertion Frequency": "插入頻率",
10921092 "(0 = Disable, 1 = Always)": "(0 = 停用, 1 = 永久)",
10931093 "User inputs until next insertion:": "使用者輸入直到下一次插入:",
10941094 "Character Author's Note (Private)": "角色作者備註(私人)",
10951095 "Won't be shared with the character card on export.": "匯出時不與角色卡共享。",
@@ -1114,7 +1114,7 @@
11141114 "Chat Negatives": "聊天負面提示詞",
11151115 "Character Negatives": "角色負面提示詞",
11161116 "Global Negatives": "全域負面提示詞",
11171117 "Custom Separator:": "自訂分隔符自訂分隔符號:",
11181118 "Insertion Depth:": "插入深度:",
11191119 "Token Probabilities": "符元機率",
11201120 "Select a token to see alternatives considered by the AI.": "選擇一個符元以檢視 AI 考慮的替代方案",
@@ -1125,7 +1125,7 @@
11251125 "Abort script execution": "中止腳本執行",
11261126 "Abort request": "中止請求",
11271127 "Continue the last message": "繼續生成最新訊息",
11281128 "Send a message": "發送訊息傳送訊息",
11291129 "Close chat": "關閉聊天",
11301130 "Toggle Panels": "切換面板",
11311131 "Back to parent chat": "返回上層聊天",
@@ -1156,7 +1156,7 @@
11561156 "File per article": "每篇文章一個檔案",
11571157 "Each article will be saved as a separate file.": "每篇文章將另存為一個檔案。",
11581158 "Data Bank": "資料庫",
11591159 "These files will be available for extensions that support attachments (e.g. Vector Storage).": "這些檔案將可用於支援附件的擴充功能(例如向量存儲例如向量儲存)。",
11601160 "Supported file types: Plain Text, PDF, Markdown, HTML, EPUB.": "支援的檔案類型:純文字,PDF,Markdown,HTML,EPUB。",
11611161 "Drag and drop files here to upload.": "拖放檔案至此即可上傳。",
11621162 "Date (Newest First)": "日期(最新優先)",
@@ -1172,7 +1172,7 @@
11721172 "These files are available for all characters in all chats.": "適用於所有聊天、所有角色。",
11731173 "Character Attachments": "角色附件",
11741174 "These files are available the current character in all chats they are in.": "適用於該角色參與的所有聊天。",
11751175 "Saved locally. Not exported.": "僅本地保存僅本機儲存,不匯出。",
11761176 "Chat Attachments": "聊天附件",
11771177 "These files are available to all characters in the current chat.": "適用於本次聊天中的所有角色。",
11781178 "Enter a base URL of the MediaWiki to scrape.": "輸入要抓取的 MediaWiki 的基礎 URL。",
@@ -1189,7 +1189,7 @@
11891189 "ext_sum_memory_placeholder": "將在此生成摘要⋯",
11901190 "Trigger a summary update right now.": "立即更新摘要內容。",
11911191 "ext_sum_force_text": "重新摘要",
11921192 "Disable automatic summary updates. While paused, the summary remains as-is. You can still force an update by pressing the Summarize now button (which is only available with the Main API).": "停用自動摘要更新。暫停時,摘要保持原樣。您仍可以透過點擊您仍可以透過點選「重新摘要」按鈕強制更新(僅適用於使用「主要 API」)。",
11931193 "ext_sum_pause": "暫停",
11941194 "Omit World Info and Author's Note from text to be summarized. Only has an effect when using the Main API. The Extras API always omits WI/AN.": "摘要時將省略世界資訊和作者備註。此選項僅適用於使用主要 API,擴充功能 API 始終自動省略世界資訊與作者備註。",
11951195 "ext_sum_no_wi_an": "排除世界資訊及作者備註",
@@ -1204,7 +1204,7 @@
12041204 "ext_sum_prompt_builder_3": "經典、阻塞",
12051205 "Summary Prompt": "摘要提示詞",
12061206 "ext_sum_restore_default_prompt_tip": "還原為預設提示詞",
12071207 "ext_sum_prompt_placeholder": "此提示詞將發送給此提示詞將傳送給 AI 以請求生成摘要。{{words}} 將解析為「字數」參數。",
12081208 "ext_sum_target_length_1": "目標摘要長度",
12091209 "ext_sum_target_length_2": "(",
12101210 "ext_sum_target_length_3": "字)",
@@ -1222,17 +1222,17 @@
12221222 "ext_sum_update_every_words_1": "更新每",
12231223 "ext_sum_update_every_words_2": " 字",
12241224 "ext_sum_both_sliders": "若兩個滑桿數值皆不為零,則將各自按照其時間間隔更新摘要。",
12251225 "ext_sum_injection_template": "插入模板插入範本",
12261226 "ext_sum_memory_template_placeholder": "{{summary}} 會解析為目前的摘要內容。",
12271227 "ext_sum_injection_position": "插入位置",
12281228 "How many messages before the current end of the chat.": "距離本次聊天結尾前的訊息數量。",
12291229 "ext_regex_title": "正規表示式",
12301230 "ext_regex_new_global_script": "+ 全域",
12311231 "ext_regex_new_scoped_script": "+ 局部區域",
12321232 "ext_regex_import_script": "匯入腳本",
12331233 "ext_regex_global_scripts": "全域腳本",
12341234 "ext_regex_global_scripts_desc": "適用於所有角色,資料將儲存到本地資料將儲存到本機。",
12351235 "ext_regex_scoped_scripts": "局部腳本區域腳本",
12361236 "ext_regex_scoped_scripts_desc": "僅適用於目前角色,資料將儲存到該角色卡中。",
12371237 "Regex Editor": "正規表示式編輯器",
12381238 "Test Mode": "測試模式",
@@ -1247,27 +1247,27 @@
12471247 "ext_regex_replace_string_placeholder": "使用 {{match}} 來包含來自尋找正規表示式的匹配文字或 $1、$2 等捕獲組。",
12481248 "Trim Out": "修剪掉",
12491249 "ext_regex_trim_placeholder": "在取代之前,全域修剪正規表示式匹配中的任何不需要的部分。每個元素用輸入鍵分隔。",
12501250 "ext_regex_affects": "影響對象影響物件",
12511251 "ext_regex_user_input": "使用者輸入",
12521252 "ext_regex_ai_output": "AI 輸出",
12531253 "Slash Commands": "斜線命令",
12541254 "ext_regex_min_depth_desc": "當應用於提示或顯示時,僅影響至少 N 層深的消息層深的訊息 0 = 最後一則訊息,1 = 倒數第二個訊息等。",
12551255 "Min Depth": "最小深度",
12561256 "ext_regex_min_depth_placeholder": "無限制",
12571257 "ext_regex_max_depth_desc": "當應用於提示或顯示時,僅影響不超過 N 層深度的訊息。 0 = 最後一則訊息,1 = 倒數第二個訊息等。",
12581258 "ext_regex_other_options": "其他選項",
12591259 "Only Format Display": "僅修改聊天顯示",
12601260 "ext_regex_only_format_prompt_desc": "不修改聊天記錄,僅修改發送訊息僅修改傳送訊息請求文本生成時請求文字生成時)時的系統提示詞。",
12611261 "Only Format Prompt (?)": "僅修改系統提示詞",
12621262 "Run On Edit": "編輯時執行",
12631263 "ext_regex_substitute_regex_desc": "在執行「尋找正規表達式」前,將 {{macros}}(巨集) 替換為對應內容",
12641264 "Substitute Regex": "取代正規表示式",
12651265 "ext_regex_import_target": "匯入至:",
12661266 "ext_regex_disable_script": "停用腳本",
12671267 "ext_regex_enable_script": "啟用腳本",
12681268 "ext_regex_edit_script": "編輯腳本",
12691269 "ext_regex_move_to_global": "移至全域腳本",
12701270 "ext_regex_move_to_scoped": "移至作用域腳本移至區域腳本",
12711271 "ext_regex_export_script": "匯出腳本",
12721272 "ext_regex_delete_script": "刪除腳本",
12731273 "Trigger Stable Diffusion": "觸發 Stable Diffusion",
@@ -1281,24 +1281,24 @@
12811281 "Image Generation": "圖片生成設定",
12821282 "sd_refine_mode": "允許在傳送至生成 API 前,手動編輯提示詞字串",
12831283 "sd_refine_mode_txt": "生成前編輯提示詞",
12841284 "sd_interactive_mode": "當發送當傳送「給我一張貓的圖片」這類訊息時,自動生成圖片。",
12851285 "sd_interactive_mode_txt": "互動模式",
12861286 "sd_multimodal_captioning": "根據使用者和角色的頭像,使用多模態模型描述生成肖像提示詞。",
12871287 "sd_multimodal_captioning_txt": "對肖像使用多模態模型描述",
12881288 "sd_expand": "使用文本生成模型自動擴寫提示詞使用文字生成模型自動擴寫提示詞。",
12891289 "sd_expand_txt": "自動潤色提示詞自動潤飾提示詞",
12901290 "sd_snap": "對於具有特定長寬比的生成請求(如肖像、背景),將其調整至最接近的已知解析度,同時儘量保持絕對像素數(建議用於 SDXL)。",
12911291 "sd_snap_txt": "自動調整解析度",
12921292 "Source": "來源",
12931293 "sd_auto_url": "範例: {{auto_url}}",
12941294 "Authentication (optional)": "授權驗證(選填)",
12951295 "Example: username:password": "範例:帳號:密碼",
12961296 "Important:": "重要:",
12971297 "sd_auto_auth_warning_1": "使用",
12981298 "sd_auto_auth_warning_2": "旗標執行 SD Web UI!伺服器必須能夠被 SillyTavern 主機存取。",
12991299 "sd_drawthings_url": "範例: {{drawthings_url}}",
13001300 "sd_drawthings_auth_txt": "執行 DrawThings 應用程式並在介面中啟用 HTTP API 開關!伺服器必須能夠被 SillyTavern 主機存取。",
13011301 "sd_vlad_url": "範例: {{vlad_url}}",
13021302 "The server must be accessible from the SillyTavern host machine.": "伺服器必須能夠被 SillyTavern 主機存取。",
13031303 "Hint: Save an API key in AI Horde API settings to use it here.": "提示訊息:在 AI Horde API 設定中儲存一個 API 金鑰,以便在此使用。",
13041304 "Allow NSFW images from Horde": "允許來自 Horde 的 NSFW 圖片",
@@ -1312,7 +1312,7 @@
13121312 "Image Quality": "圖片品質",
13131313 "Standard": "標準",
13141314 "HD": "高畫質",
13151315 "sd_comfy_url": "範例: {{comfy_url}}",
13161316 "Open workflow editor": "開啟 workflow 編輯器",
13171317 "Create new workflow": "建立新的 workflow",
13181318 "Delete workflow": "刪除 workflow",
@@ -1330,14 +1330,14 @@
13301330 "SMEA": "SMEA",
13311331 "DYN variants of SMEA samplers often lead to more varied output, but may fail at very high resolutions.": "SMEA 取樣器的 DYN 變體通常會產生更多樣化的輸出,但在非常高的解析度下可能會失敗。",
13321332 "DYN": "DYN",
13331333 "Scheduler": "調度器排程器",
13341334 "Restore Faces": "修復臉部",
13351335 "Hires. Fix": "高解析度修正",
13361336 "Upscaler": "放大演算法放大演演算法",
13371337 "Upscale by": "放大倍率",
13381338 "Denoising strength": "重繪幅度",
13391339 "Hires steps (2nd pass)": "高解析步驟(2nd pass)",
13401340 "Preset for prompt prefix and negative prompt": "提示詞前綴和負面提示詞的預設設定提示詞前綴和負面提示詞的預設設定檔",
13411341 "Style": "樣式",
13421342 "Save style": "儲存樣式",
13431343 "Delete style": "刪除樣式",
@@ -1346,9 +1346,9 @@
13461346 "Negative common prompt prefix": "通用負面提示詞前綴",
13471347 "Character-specific prompt prefix": "角色提示詞前綴",
13481348 "Won't be used in groups.": "群聊中無效",
13491349 "sd_character_prompt_placeholder": "描述該角色的特徵。這些特徵將添加在通用提示詞前綴之後這些特徵將新增在通用提示詞前綴之後。例如:女性、綠色眼睛、棕色頭髮、粉紅色襯衫。",
13501350 "Character-specific negative prompt prefix": "角色負面提示詞前綴",
13511351 "sd_character_negative_prompt_placeholder": "不應出現在該角色上的任何特徵。這些特徵將添加在負面通用提示詞前綴之後這些特徵將新增在負面通用提示詞前綴之後。例如:珠寶、鞋子、眼鏡。",
13521352 "Shareable": "分享至角色卡",
13531353 "Image Prompt Templates": "圖片生成提示詞",
13541354 "Vectors Model Warning": "向量模型警告",
@@ -1358,7 +1358,7 @@
13581358 "Status:": "狀態:",
13591359 "Created:": "建立於:",
13601360 "Display Name:": "顯示名稱:",
13611361 "User Handle:": "使用者控制代碼使用者控制程式碼:",
13621362 "Password:": "密碼:",
13631363 "Confirm Password:": "確認密碼:",
13641364 "This will create a new subfolder...": "這將建立一個新的子資料夾⋯",
@@ -1372,11 +1372,11 @@
13721372 "Also wipe user data.": "同時清除使用者資料。",
13731373 "Warning:": "警告:",
13741374 "This action is irreversible.": "此動作不可逆轉。",
13751375 "Type the user's handle below to confirm:": "在下方輸入使用者的控制代碼以確認在下方輸入使用者的控制程式碼以確認:",
13761376 "Import Characters": "匯入角色",
13771377 "Enter the URL of the content to import": "輸入要匯入的內容的 URL",
13781378 "Supported sources:": "支持的來源支援的來源:",
13791379 "char_import_1": "Chub角色Chub 角色(直接連結或 ID)",
13801380 "char_import_example": "例子:",
13811381 "char_import_2": "Chub Lorebook(直接連結或 ID)",
13821382 "char_import_3": "JanitorAI 角色(直接連結或 ID)",
@@ -1384,10 +1384,10 @@
13841384 "char_import_5": "AICharacterCards.com 角色(直接連結或 ID)",
13851385 "char_import_6": "直接 PNG 連結(請參閱",
13861386 "char_import_7": "對於允許的主機)",
13871387 "char_import_8": "RisuRealm角色RisuRealm 角色(直接連結)",
13881388 "Supports importing multiple characters.": "支援匯入多個字元。",
13891389 "Write each URL or ID into a new line.": "將每個 URL 或 ID 寫入新行。",
13901390 "Export for character": "匯出字符匯出字元",
13911391 "Export prompts for this character, including their order.": "匯出該角色的提示,包括其順序。",
13921392 "Export all": "全部匯出",
13931393 "Export all your prompts to a file": "將所有提示匯出到文件",
@@ -1395,7 +1395,7 @@
13951395 "Delete prompt": "刪除提示",
13961396 "Import a prompt list": "匯入提示列表",
13971397 "Export this prompt list": "匯出此提示列表",
13981398 "Reset current character": "重置目前字符重設目前字元",
13991399 "New prompt": "新提示",
14001400 "Prompts": "提示",
14011401 "Total Tokens:": "代幣總數:",
@@ -1444,93 +1444,92 @@
14441444 "Still have questions?": "仍有更多問題?",
14451445 "Join the SillyTavern Discord": "加入 SillyTavern Discord",
14461446 "Post a GitHub issue": "發布 GitHub 問題",
14471447 "Contact the developers": "聯繫開發者聯絡開發者",
14481448 "(-1 for random)": "(-1 表示隨機)",
14491449 "(Optional)": "(可選)",
14501450 "(use _space": "(使用",
14511451 "api_no_connection": "未連線⋯",
14521452 "No model description": "[無描述]",
14531453 "openai_logit_bias_no_items": "無項目",
14541454 "Any contents here will replace the default Post-History Instructions used for this character. (v2 specpost_history_instructions)": "此處填入的內容將取代該角色的默認聊天歷史後指示此處填入的內容將取代該角色的預設聊天歷史後指示(Post-History Instructions)。\n(v2 格式:specpost_history_instructions)",
14551455 "comma delimited,no spaces between": "逗號分割,無需空格",
14561456 "e.g. black-forest-labs/FLUX.1-dev": "例如:black-forest-labs/FLUX.1-dev",
14571457 "Example: gpt-4o": "例如:gpt-4o",
14581458 "Example: http://localhost:1234/v1": "例如:http://localhost:1234/v1",
14591459 "popup-button-crop": "裁剪",
14601460 "(disabled when max recursion steps are used)": "(當最大遞歸步驟數使用時將停用當最大遞迴步驟數使用時將停用)",
1461- "0 = unlimited, 1 = scans once and doesn't recurse, 2 = scans once and recurses once, etc\n(disabled when min activations are used)": "0 = 無限制,1 = 掃描一次且不遞歸,2 = 掃描一次並遞歸一次,以此類推\n(使用最小啟動設定時將停用)",
1461+ "A greedy, brute-force algorithm used in LLM sampling to find the most likely sequence of words or tokens. It expands multiple candidate sequences at once, maintaining a fixed number (beam width) of top sequences at each step.": "一種用於 LLM 抽樣的貪婪演演算法,用於尋找最可能的單詞或標記序列。該方法會同時展開多個候選序列,並在每一步中保持固定數量的頂級序列(beam width)。",
1462- "A greedy, brute-force algorithm used in LLM sampling to find the most likely sequence of words or tokens. It expands multiple candidate sequences at once, maintaining a fixed number (beam width) of top sequences at each step.": "一種用於 LLM 抽樣的貪婪演算法,用於尋找最可能的單詞或標記序列。該方法會同時展開多個候選序列,並在每一步中保持固定數量的頂級序列(beam width)。",
14631462 "A multiplicative factor to expand the overall area that the nodes take up.": "節點佔用該擴充功能區域的倍數。",
14641463 "Abort current image generation task": "終止目前的圖片生成任務",
14651464 "Add Character and User names to a list of stopping strings.": "將角色和使用者角色名稱添加至停止字符列表將角色和使用者角色名稱新增至停止字元列表。",
14661465 "Alignment for rank nodes.": "對排名節點的對齊方式。",
14671466 "Always show the node full info panel at the bottom left of the timeline view. When off, show it near the node.": "始終將節點的完整資訊面板顯示在時間軸視圖的左下角始終將節點的完整資訊面板顯示在時間軸檢視的左下角。關閉時,將顯示在節點附近。",
14681467 "Always show the node tooltip at the bottom left of the timeline view. When off, show it near the node.": "始終將節點的工具提示欄顯示在時間軸視圖的左下角始終將節點的工具提示欄顯示在時間軸檢視的左下角。關閉時,將顯示在節點附近。",
14691468 "Apply current sorting as Order": "應用此排序為順序",
14701469 "Cap the number of entry activation recursions": "限制入口啟動的遞歸次數限制入口啟動的遞迴次數",
14711470 "Caption": "標題",
14721471 "Close popup": "關閉彈出視窗",
14731472 "Color configuration for Timelines when 'Use UI Theme' in Style Settings is off.": "關閉「使用介面主題」的時間線顏色。",
14741473 "context_allow_post_history_instructions": "在文本完成模式中包含聊天歷史後指示在文字完成模式中包含聊天歷史後指示(Post-History Instructions),但可能導致不良輸出。",
14751474 "Create a new connection profile": "建立新的連線設定檔",
14761475 "Defines on importing cards which action should be chosen for importing its listed tags. 'Ask' will always display the dialog.": "定義匯入角色卡時應採取的動作。選擇「詢問」將始終顯示對話框。",
14771476 "delay_until_recursion_level": "定義遞迴掃描的延遲層級。\r最初僅匹配第一層(數字最小的層級)。\r未找到匹配時,下一層將成為可匹配的層級。\r此過程會重複,直到所有層級都被檢查完畢。\r與「延遲至遞歸延遲至遞迴」設定相關聯。",
14781477 "Delete a connection profile": "刪除連線設定檔",
14791478 "Delete template": "刪除模板刪除範本",
14801479 "Delete the template": "刪除此模板刪除此範本",
14811480 "Disabling is not recommended.": "不建議禁用不建議停用。",
14821481 "Display swipe numbers for all messages, not just the last.": "顯示所有訊息的滑動編號,而不僅是最後一條訊息。",
14831482 "Duplicate persona": "複製使用者角色",
14841483 "Edit a connection profile": "編輯連線設定檔",
14851484 "Enable auto-select of input text in some text fields when clicking/selecting them. Applies to popup input textboxes, and possible other custom input fields.": "啟用自動選擇輸入框中的文本啟用自動選擇輸入框中的文字,適用於彈出輸入框及其他自定義輸入框。",
14861485 "Entries with a cooldown can't be activated N messages after being triggered.": "設有冷卻時間的條目於觸發後的 N 條訊息內無法再次啟用。",
14871486 "Entries with a delay can't be activated until there are N messages present in the chat.": "有延遲的條目需等待聊天中出現 N 條訊息後才能啟用。",
14881487 "Expand swipe nodes when the timeline view first opens, and whenever the graph is refreshed. When off, you can expand them by long-pressing a node, or by pressing the Toggle Swipes button.": "時間線視圖首次打開或刷新時展開滑動節點時間線檢視首次開啟或重新整理時展開滑動節點關閉時可通過長按節點或點選關閉時可透過長按節點或點選「切換滑動」按鈕展開。",
14891488 "Export Advanced Formatting settings": "匯出進階格式設定",
14901489 "Export template": "匯出模板匯出範本",
14911490 "Find similar characters": "尋找相似角色",
14921491 "Height of a node, in pixels at zoom level 1.0.": "縮放等級為 1.0 時的節點像素高度。",
14931492 "How the automatic graph builder assigns a rank (layout depth) to graph nodes.": "自動圖表生成器分配圖節點等級(佈局深度配置深度)的方式。",
14941493 "If checked and the character card contains a Post-History Instructions override, use that instead": "勾選後,將使用角色卡中的聊天歷史後指示(Post-History Instructions)覆蓋。",
14951494 "Import Advanced Formatting settings": "匯入進階格式設定\n也可提供舊版檔案作為提示詞和上下文範本使用",
14961495 "Import template": "匯入模板匯入範本",
14971496 "In group chat, highlight the character(s) that are currently queued to generate responses and the order in which they will respond.": "在群組聊天中,突出顯示該生成回應的角色及順序。",
14981497 "Include names with each message into the context for scanning": "將每條訊息的名稱納入掃描上下文",
14991498 "Inserted before the first User's message": "插入到第一條使用者訊息前。",
15001499 "instruct_enabled": "啟用指令模式(Instruct Mode)",
15011500 "instruct_last_input_sequence": "插入到最後一條使用者訊息之前。",
15021501 "instruct_template_activation_regex_desc": "連線 API 或選擇模型時,若模型名稱符合所提供的正規表達式,則自動啟動該指令模板則自動啟動該指令範本(Instruct Template)。",
15031502 "Load Asset List": "載入資源列表",
15041503 "load_asset_list_desc": "根據資源列表文件載入擴充功能及資源。\n\n該字段中的默認資源n該欄位中的預設資源 URL 指向官方擴充功能及資源列表。\n可在此插入您的自定義資源列表。\n\n若需安裝單個第三方擴充功能,請使用右上角的「安裝擴充功能」按鈕。",
15051504 "markdown_hotkeys_desc": "啟用快捷鍵以在某些文本輸入框中插入啟用快捷鍵以在某些文字輸入框中插入 Markdown 格式字符格式字元。詳見「/help hotkeys」。",
15061505 "Not all samplers supported.": "並非所有採樣器均受支援並非所有取樣器均受支援。",
15071506 "Open the timeline view. Same as the slash command '/tl'.": "打開時間線視圖開啟時間線檢視,與斜線指令「/tl」相同。",
15081507 "Penalize sequences based on their length.": "根據序列長度進行懲罰。",
15091508 "Reload a connection profile": "重新載入連線設定檔",
15101509 "Rename current preset": "重新命名此預設重新命名此預設設定檔",
15111510 "Rename current prompt": "重新命名此提示詞",
15121511 "Rename current template": "重新命名此模板重新命名此範本",
15131512 "Reset all Timelines settings to their default values.": "將所有時間軸設定重置為預設值將所有時間軸設定重設為預設值。",
15141513 "Restore current prompt": "還原目前的提示詞",
15151514 "Restore current template": "還原目前的模板還原目前的範本",
15161515 "Save prompt as": "另存提示詞為",
15171516 "Save template as": "另存模板為另存範本為",
15181517 "sd_adetailer_face": "在生成過程中使用 ADetailer 臉部模型。需在後端安裝 ADetailer 擴充功能。",
15191518 "sd_free_extend": "自動使用目前選定的 LLM 擴充功能的「自由模式」提示詞(不包括肖像或背景)。",
15201519 "sd_function_tool": "使用功能工具自動檢測意圖以生成圖片使用功能工具自動偵測意圖以生成圖片。",
15211520 "Seed_desc": "用於生成確定性和可重現輸出的隨機種子。設定為 -1 時將使用隨機種子。",
15221521 "Select your current Context Template": "選擇您目前的上下文模板選擇您目前的上下文範本",
15231522 "Select your current Instruct Template": "選擇您目前的指令模板選擇您目前的指令範本",
15241523 "Select your current System Prompt": "選擇您目前的系統提示詞",
15251524 "Separation between adjacent edges in the same rank.": "同一層級中相鄰邊之間的間距。",
15261525 "Separation between adjacent nodes in the same rank.": "同一層級中相鄰節點之間的間距。",
15271526 "Separation between each rank in the layout.": "佈局中各層級之間的間距配置中各層級之間的間距。",
15281527 "Settings for the visual appearance of the Timelines graph.": "時間線圖形的視覺外觀設置時間線圖形的視覺外觀設定。",
15291528 "Show a button in the input area to ask the AI to impersonate your character for a single message": "於輸入框中添加按鈕於輸入框中新增按鈕,讓 AI 模仿您的角色發送一則訊息模仿您的角色傳送一則訊息。",
15301529 "Show a legend for colors corresponding to different characters and chat checkpoints.": "顯示一個圖例,標註不同角色和對話檢查點對應的顏色。",
15311530 "Show the AI character's avatar as the graph root node. When off, the root node is blank.": "將 AI 角色的頭像作為圖形的根節點;關閉時,根節點為空。",
15321531 "Sticky entries will stay active for N messages after being triggered.": "觸發後,置頂條目將在接下來的 N 條訊息中保持活躍。",
15331532 "stscript_parser_flag_replace_getvar_label": "防止 {{getvar::}} 和 {{getglobalvar::}} 巨集的字面巨集樣值被自動解析。\n例如,{{newline}} 將保持為字面字串 {{newline}}。\n\n(此功能通過內部將此功能透過內部將 {{getvar::}} 和 {{getglobalvar::}} 巨集替換為局部變數來實現巨集替換為區域變數來實現。)",
15341533 "Style and routing of graph edges.": "圖形邊的樣式和路徑。",
15351534 "Swap width and height": "交換寬度與高度",
15361535 "Swipe left": "向左滑動",
@@ -1541,14 +1540,14 @@
15411540 "The visual appearance of a node in the graph.": "圖形中節點的視覺外觀。",
15421541 "Update a connection profile": "更新連線設定檔",
15431542 "Update current prompt": "更新此提示詞",
15441543 "Update current template": "更新此模板更新此範本",
15451544 "Use GPU acceleration for positioning the full info panel that appears when you click a node. If the tooltip arrow tends to disappear, turning this off may help.": "啟用 GPU 加速來定位點擊節點時出現的完整資訊面板加速來定位點選節點時出現的完整資訊面板。若發現工具提示箭頭經常消失,可考慮關閉此功能。",
15461545 "Use the colors of the ST GUI theme, instead of the colors configured in Color Settings specifically for this extension.": "使用使用者設定中的介面主題顏色,取代下方「顏色設定」中額外設定的顏色。",
15471546 "View connection profile details": "查看連線設定檔詳情檢視連線設定檔詳細資訊",
15481547 "When enabled, nodes that have swipes splitting off of them will appear subtly larger, in addition to having the double border.": "啟用後,具分支滑動的節點將顯示雙重邊框,還會略微放大。",
15491548 "WI Entry Status:🔵 Constant🟢 Normal🔗 Vectorized": "世界資訊條目狀態:\\r🔵 恆定\\r🟢 正常\\r🔗 向量化",
15501549 "Width of a node, in pixels at zoom level 1.0.": "縮放等級為 1.0 時,節點的像素寬度。",
15511550 "world_button_title": "角色背景設定\n「Shift+點擊點選」可開啟「連結至世界資訊」彈窗",
15521551 "# of Beams": "# of Beams",
15531552 "01.AI API Key": "01.AI API 金鑰",
15541553 "01.AI Model": "01.AI 模型",
@@ -1559,7 +1558,7 @@
15591558 "Allow Post-History Instructions": "允許聊天歷史後指示",
15601559 "Allow reverse proxy": "允許反向代理",
15611560 "Alternate Greeting #": "備選問候語 #",
15621561 "alternate_greetings_hint_1": "點擊點選",
15631562 "alternate_greetings_hint_2": "按鈕開始!",
15641563 "Always": "總是",
15651564 "ANY support requests will be REFUSED if you are using a proxy.": "使用代理時,所有支援請求均不予受理。",
@@ -1571,14 +1570,13 @@
15711570 "Assistant Message Sequences": "助理訊息序列",
15721571 "Assistant Prefix": "助理訊息前綴",
15731572 "Assistant Suffix": "助理訊息後綴",
1574- "at the end of the URL!": "在 URL 末尾!",
15751573 "Audio Playback Speed": "音檔播放速度",
15761574 "Auto-select Input Text": "自動選擇輸入文本自動選擇輸入文字",
15771575 "Automatically caption images": "自動產生圖片註解",
15781576 "Auxiliary": "輔助提示詞",
15791577 "Background Image": "背景圖片",
15801578 "Block Entropy API Key": "Block Entropy API 金鑰",
15811579 "Can be set manually or with an _space": "可以手動設置或使用可以手動設定或使用 _space",
15821580 "Caption Prompt": "註解功能提示詞",
15831581 "category": "類別",
15841582 "Character Expressions": "角色情緒立繪",
@@ -1591,12 +1589,12 @@
15911589 "Checkpoint Color": "檢查點節點邊框顏色",
15921590 "Chunk boundary": "Chunk 邊界",
15931591 "Chunk overlap (%)": "Chunk 重疊(%)",
15941592 "Chunk size (chars)": "Chunk 大小(字符數字元數)",
15951593 "class": "所有類別",
15961594 "Classifier API": "分類器 API",
15971595 "Click to set": "點擊以設定點選以設定",
15981596 "CLIP Skip": "CLIP 跳過",
15991597 "Completion Object": "完成對象完成物件",
16001598 "Conf": "設定檔",
16011599 "Connection Profile": "連線設定檔",
16021600 "Cooldown": "冷卻時間",
@@ -1605,13 +1603,13 @@
16051603 "currently_selected": "[目前已選取]",
16061604 "Custom (OpenAI-compatible)": "自定義(相容 OpenAI)",
16071605 "Custom Expressions": "自定義角色表情",
16081606 "Data Bank files": "數據庫文件資料庫文件",
16091607 "Default / Fallback Expression": "默認預設/回退表情",
16101608 "Delay": "延遲",
16111609 "Delay until recursion (can only be activated on recursive checking)": "遞迴掃描延遲(僅在啟用遞迴掃描時可用)",
16121610 "Do not proceed if you do not agree to this!": "若不同意此條款,請勿繼續!",
16131611 "Edge Color": "邊緣顏色",
16141612 "Edit captions before saving": "在保存前編輯註解在儲存前編輯註解",
16151613 "Enable for files": "啟用文件檔案向量化",
16161614 "Enable for World Info": "啟用世界資訊向量化",
16171615 "enable_functions_desc_1": "允許使用",
@@ -1623,8 +1621,8 @@
16231621 "Enter a Model ID": "輸入模型 ID",
16241622 "Example: https://****.endpoints.huggingface.cloud": "例如:https://****.endpoints.huggingface.cloud",
16251623 "Exclude": "排除",
16261624 "Exclude Top Choices (XTC)": "排除頂部選項排除頂端選項(XTC)",
16271625 "Existingtag_import_existing": "現有項目",
16281626 "expression_label_pattern": "[情緒名稱].[圖檔格式](例如:neutral.png)。",
16291627 "ext_translate_auto_mode": "自動翻譯模式",
16301628 "ext_translate_btn_chat": "翻譯聊天內容",
@@ -1644,16 +1642,15 @@
16441642 "File vectorization settings": "檔案向量化設定",
16451643 "Filter to Characters or Tags": "角色/標籤篩選",
16461644 "First User Prefix": "第一使用者前綴",
16471645 "folder of your user data directory and name it as the name of the character.": "」中新建資料夾中新增資料夾,並將該資料夾命名為角色名稱(名稱需與使用者資料夾中的角色名稱一致)。",
16481646 "Group Scoring": "群組評分",
16491647 "Groups and Past Personas": "群組與過去的使用者角色設定",
16501648 "Hint:": "提示:",
16511649 "Hint: Set the URL in the API connection settings.": "提示:在 API 連線設置中設定連線設定中設定 URL。",
16521650 "Horde": "Horde",
16531651 "HuggingFace Token": "HuggingFace 符元",
16541652 "Image Captioning": "圖片註解",
16551653 "Generate Caption": "產生圖片註解",
1656- "Image Type - talkinghead (extras)": "圖片類型 - talkinghead(額外選項)",
16571654 "Injection Position": "插入位置",
16581655 "Injection position. Relative (to other prompts in prompt manager) or In-chat @ Depth.": "插入位置(與提示詞管理器中的其他提示相比)或聊天中的深度位置。",
16591656 "Injection Template": "插入範本",
@@ -1662,17 +1659,17 @@
16621659 "Instruct Template": "指令範本",
16631660 "Interactive Mode": "互動模式",
16641661 "Karras": "Karras",
16651662 "Keep model in memory": "將模型保存在記憶體中將模型儲存在記憶體中",
16661663 "Keyboard": "鍵盤:",
16671664 "AI Horde Website": "AI Horde 網站",
16681665 "Last User Prefix": "最後用戶前綴最後使用者前綴",
16691666 "Linear": "線性",
16701667 "LLM": "LLM",
16711668 "LLM Prompt": "LLM 提示詞",
16721669 "Load a custom asset list or select": "載入或選擇自定義資源列表",
16731670 "Load an asset list": "載入資源列表",
16741671 "Local": "本地本機",
16751672 "Local (Transformers)": "本地本機(Transformers)",
16761673 "macro)": "巨集)",
16771674 "Main API": "主要 API",
16781675 "Markdown Hotkeys": "Markdown 快捷鍵",
@@ -1681,20 +1678,20 @@
16811678 "Max Entries": "最大條目數",
16821679 "Max Recursion Steps": "最大遞迴步數",
16831680 "Message attachments": "訊息附件",
16841681 "Message Template": "訊息模板訊息範本",
16851682 "Model ID": "模型 ID",
16861683 "mui_reset": "重置重設",
16871684 "Multimodal (OpenAI / Anthropic / llama / Google)": "多模態(OpenAI/Anthropic/llama/Google)",
16881685 "must be set in Tabby's config.yml to switch models.": "須在 Tabby's config.yml 中設置以切換模型中設定以切換模型。",
16891686 "Names as Stop Strings": "將名稱用作停止字串",
16901687 "Never": "從不",
16911688 "NomicAI API Key": "NomicAI API 金鑰",
16921689 "Non-recursable (will not be activated by another)": "不可遞迴(不會被其他條目啟動)",
16931690 "None (disabled)": "無(已禁用已停用)",
16941691 "OK": "確定",
16951692 "Old messages are vectorized gradually as you chat. To process all previous messages, click the button below.": "舊訊息會在聊天時逐步向量化。\n若要處理所有先前訊息,請點擊下方按鈕請點選下方按鈕。",
16961693 "Only used when Main API or WebLLM Extension is selected.": "僅在選擇主要 API 或 WebLLM 擴充功能時使用。",
16971694 "Open a chat to see the character expressions.": "開啟聊天以查看角色表情開啟聊天以檢視角色表情。",
16981695 "Post-History Instructions": "聊天歷史後指示",
16991696 "Prefer Character Card Instructions": "角色卡聊天歷史後指示優先",
17001697 "Prioritize": "優先處理",
@@ -1708,7 +1705,7 @@
17081705 "Quick Impersonate button": "快速模擬按鈕",
17091706 "Recursion Level": "遞迴層級",
17101707 "Remove all image overrides": "移除所有圖片覆蓋",
17111708 "Restore default": "恢復預設",
17121709 "Retain#": "保留#",
17131710 "Retrieve chunks": "檢索 Chunks",
17141711 "Sampler Order": "取樣順序",
@@ -1716,7 +1713,7 @@
17161713 "sd_free_extend_small": "(互動/指令)",
17171714 "sd_free_extend_txt": "使用「自由模式」。由 LLM 自動擴寫圖片生成提示",
17181715 "sd_function_tool_txt": "使用功能工具",
17191716 "sd_prompt_-1": "聊天訊息模板聊天訊息範本",
17201717 "sd_prompt_-2": "功能工具提示詞",
17211718 "sd_prompt_0": "角色(第二人稱,你)",
17221719 "sd_prompt_1": "使用者(第一人稱,我)",
@@ -1734,19 +1731,19 @@
17341731 "Select with Enter": "按 Enter 選擇",
17351732 "Select with Tab": "按 Tab 選擇",
17361733 "Select with Tab or Enter": "按 Tab 或 Enter 選擇",
17371734 "Separators as Stop Strings": "以分隔符作為停止字串以分隔符號作為停止字串",
17381735 "Set the default and fallback expression being used when no matching expression is found.": "設定在無法配對表情時所使用的預設表情和備用圖片。",
17391736 "Set your API keys and endpoints in the API Connections tab first.": "請先在「API 連線」頁面中設定您的 API 金鑰和端點。",
17401737 "Show default images (emojis) if sprite missing": "無對應圖片時,顯示為預設表情符號(emoji)",
17411738 "Show group chat queue": "顯示群組聊天隊列顯示群組聊天佇列",
17421739 "Size threshold (KB)": "大小閾值(KB)",
17431740 "Slash Command": "斜線命令",
17441741 "space_ slash command.": " 斜線命令。",
17451742 "Sprite Folder Override": "表情立繪資料夾覆蓋",
17461743 "Sprite set:": "立繪組:",
17471744 "Show Gallery": "查看圖庫檢視相簿",
17481745 "Sticky": "黏性",
17491746 "Style Preset": "預設樣式樣式預設設定檔",
17501747 "Summarize chat messages for vector generation": "摘要聊天訊息以進行向量化處理",
17511748 "Summarize chat messages when sending": "傳送時摘要聊天內容",
17521749 "Swipe # for All Messages": "為所有訊息分配滑動編號 #",
@@ -1758,16 +1755,16 @@
17581755 "tag_import_all": "全部匯入",
17591756 "tag_import_none": "不匯入",
17601757 "Text Generation WebUI (oobabooga)": "文字生成 WebUI (oobabooga)",
17611758 "The server MUST be started with the --embedding flag to use this feature!": "若要使用此功能,伺服器必須啟動時加上 --embedding 標誌象徵。",
17621759 "Threshold": "閾值",
17631760 "to install 3rd party extensions.": "用於安裝第三方擴充功能。",
17641761 "Top": "頂部頂端",
17651762 "Translate text to English before classification": "在分類前將文本翻譯為英文。分類前,將訊息翻譯為英文",
17661763 "Uncheck to hide the extensions messages in chat prompts.": "不勾選即可隱藏聊天提示詞中的擴充功能訊息。",
17671764 "Unchecked: only entries with ❌ status can be activated.": "未勾選時:僅允許啟用狀態為 ❌ 的條目。",
17681765 "Unified Sampling": "統一取樣(Unified Sampling)",
17691766 "Upload sprite pack (ZIP)": "批次上傳立繪包(.ZIP)",
17701767 "Use a forward slash to specify a subfolder. Example: _space": "使用「/」來設置子目錄來設定子目錄,例如:_space",
17711768 "Use ADetailer (Face)": "使用 ADetailer 進行臉部處理。",
17721769 "Use an admin API key.": "使用管理員的 API 金鑰。",
17731770 "Use global": "啟用全域設定",
@@ -1775,21 +1772,21 @@
17751772 "User Node Color": "使用者節點顏色",
17761773 "User Prefix": "使用者訊息前綴",
17771774 "User Suffix": "使用者訊息後綴",
17781775 "Using a proxy that youre not running yourself is a risk to your data privacy.": "使用非自行管理的代理服務存在數據隱私洩漏風險使用非自行管理的代理服務存在資料隱私洩漏風險。",
17791776 "Vector Storage": "向量存儲向量儲存",
17801777 "Vector Summarization": "向量摘要",
17811778 "Vectorization Model": "向量生成模型",
17821779 "Vectorization Source": "向量化來源",
17831780 "Vectorize All": "向量化全部數據向量化全部資料",
17841781 "View Stats": "查看統計資料檢視統計資料",
17851782 "Warning: This might cause your sent messages to take a bit to process and slow down response time.": "警告:這可能會導致訊息處理速度變慢,並延長回應時間。",
17861783 "WarningThis might cause your sent messages to take a bit to process and slow down response time.": "警告:這將顯著減緩向量生成速度,因為所有消息都需先進行摘要因為所有訊息都需先進行摘要。",
17871784 "WebLLM Extension": "WebLLM 擴充功能",
17881785 "Whole Words": "匹配完整單字",
17891786 "Will be used if the API doesnt support JSON schemas or function calling.": "若 API 不支持不支援 JSON 模式或函數調用模式或函式呼叫,將使用此設定。",
17901787 "World Info settings": "世界資訊設定",
17911788 "You are in offline mode. Click on the image below to set the expression.": "您目前為離線狀態,請點擊下方圖片進行表情設定請點選下方圖片進行表情設定。",
17921789 "You can find your API key in the Stability AI dashboard.": "API 金鑰可在 Stability AI 儀表板中查看儀錶板中檢視。",
17931790 "Stop Inspecting": "停止檢查",
17941791 "Inspect Prompts": "檢查提示詞",
17951792 "Toggle prompt inspection": "切換提示詞檢查",
@@ -1799,19 +1796,19 @@
17991796 "KoboldAI Horde": "KoboldAI Horde",
18001797 "KoboldAI Horde Website": "KoboldAI Horde 網站",
18011798 "Derive context size from backend": "從後端推導上下文大小",
18021799 "Using a proxy that you're not running yourself is a risk to your data privacy.": "使用非自行管理的代理服務可能導致您的數據隱私外洩使用非自行管理的代理服務可能導致您的資料隱私外洩。",
18031800 "Claude API Key": "Claude API 金鑰",
18041801 "NanoGPT API Key": "NanoGPT API 金鑰",
18051802 "NanoGPT Model": "NanoGPT 模型",
18061803 "context_derived": "若可能,根據模型元數據推導根據模型後設資料推導。",
18071804 "instruct_derived": "若可能,根據模型元數據推導根據模型後設資料推導。",
18081805 "Inserted before the first User's message.": "插入於第一則使用者訊息之前。",
18091806 "0 = unlimited, 1 = scans once and doesn't recurse, 2 = scans once and recurses once, etc\\n(disabled when min activations are used)": "0 = 無限制,1 = 掃描一次不遞歸掃描一次不遞迴,2 = 掃描一次後遞歸一次掃描一次後遞迴一次 ⋯以此類推\n(啟用最小啟動次數時無效)",
18101807 "Quick 'Impersonate' button": "快速「AI 扮演使用者」按鈕",
18111808 "Manual": "手動",
18121809 "Any contents here will replace the default Post-History Instructions used for this character. (v2 spec: post_history_instructions)": "此處填入的內容將取代該角色的默認聊天歷史後指示此處填入的內容將取代該角色的預設聊天歷史後指示(Post-History Instructions)。\n(v2 格式:specpost_history_instructions)",
18131810 "The content of this prompt is pulled from elsewhere and cannot be edited here.": "此提示內容由其他地方提取,無法在此進行編輯。",
18141811 "Open checkpoint chat\nShift+Click to replace the existing checkpoint with a new one": "開啟檢查點聊天\n使用「Shift+點擊點選」將以新檢查點替換現有的。",
18151812 "Reroll with the entire prefix": "使用完整前綴重新生成",
18161813 "Disable": "停用",
18171814 "Enable": "啟用",
@@ -1823,17 +1820,17 @@
18231820 "{{@key}}": "{{@key}}:",
18241821 "Enter a name:": "輸入名稱:",
18251822 "Omitted Settings:": "忽略的設定:",
18261823 "Will be used if the API doesn't support JSON schemas or function calling.": "將於 API 不支援 JSON 結構或函數調用時使用結構或函式呼叫時使用。",
18271824 "ext_sum_webllm": "WebLLM 擴充功能",
18281825 "ext_sum_restore_tip": "恢復先前的摘要;重複使用以清除此聊天的摘要狀態。",
18291826 "ext_sum_force_tip": "將立即更新摘要。",
18301827 "ext_sum_include_wi_scan_desc": "於掃描世界資訊時包含最新摘要。",
18311828 "ext_sum_include_wi_scan": "包含世界資訊掃描",
18321829 "None (not injected)": "無(不插入)",
18331830 "ext_sum_injection_position_none": "此摘要將不會插入提示詞中,但可通過但可透過 {{summary}} 巨集訪問巨集存取。",
18341831 "Labels and Message": "標籤與訊息",
18351832 "Label": "標籤",
18361833 "(label of the button, if no icon is chosen) ": "(若未選擇圖標若未選擇圖示,則為按鈕的標籤)",
18371834 "Title": "名稱",
18381835 "(tooltip, leave empty to show message or /command)": "(工具提示,留空以顯示訊息或 /command)",
18391836 "Message / Command:": "訊息/指令:",
@@ -1848,7 +1845,7 @@
18481845 "Execute on user message": "根據使用者訊息執行",
18491846 "Execute on AI message": "根據 AI 訊息執行",
18501847 "Execute on chat change": "聊天內容變更時執行",
18511848 "Execute on new chat": "新建聊天時執行新增聊天時執行",
18521849 "Execute on group member draft": "群組成員變更時執行",
18531850 "Automation ID:": "自動化 ID:",
18541851 "Testing": "測試",
@@ -1859,43 +1856,43 @@
18591856 "Global Quick Reply Sets": "全域快速回覆",
18601857 "Chat Quick Reply Sets": "聊天快速回覆",
18611858 "Edit Quick Replies": "編輯快速回覆",
18621859 "Disable Send (Insert Into Input Field)": "停用發送停用傳送插入到輸入字段插入到輸入欄位)",
18631860 "Place Quick Reply Before Input": "在輸入前插入快速回覆",
18641861 "Inject user input automatically": "自動插入使用者輸入",
18651862 "(if disabled, use ": "(若停用,請使用",
18661863 "macro for manual injection)": "巨集進行手動插入)",
18671864 "Color": "顏色",
18681865 "Only apply color as accent": "僅使用顏色作為強調",
18691866 "ext_regex_new_global_script_desc": "新建新增「全域」正規表達式",
18701867 "ext_regex_new_scoped_script_desc": "新建新增作用域區域」正規表達式",
18711868 "ext_regex_disallow_scoped": "不使用作用域正規表達式不使用區域正規表達式",
18721869 "ext_regex_allow_scoped": "使用作用域正規表達式使用區域正規表達式",
18731870 "ext_regex_user_input_desc": "使用者發送的訊息使用者傳送的訊息。",
18741871 "ext_regex_ai_input_desc": "從生成式 API 接收到的訊息。",
18751872 "ext_regex_slash_desc": "使用 STscript 指令發送的訊息指令傳送的訊息。",
18761873 "ext_regex_wi_desc": "世界資訊/知識書條目內容。需要勾選「僅格式化提示詞」!",
18771874 "ext_regex_run_on_edit_desc": "當指定角色的訊息被編輯時執行正規腳本。",
18781875 "Macro in Find Regex": "巨集替換模式",
18791876 "Don't substitute": "不替換(純文字匹配)",
18801877 "Substitute (raw)": "原始替換(不處理 *、. 等特殊字符等特殊字元)",
18811878 "Substitute (escaped)": "轉義替換(將特殊字符將特殊字元 *、. 等當作普通文字處理)",
18821879 "Ephemerality": "暫時性",
18831880 "ext_regex_only_format_visual_desc": "僅改變聊天界面顯示的訊息僅改變聊天介面顯示的訊息,不修改聊天記錄檔案內容。",
18841881 "Hint: Save an API key in Horde KoboldAI API settings to use it here.": "提示:請於 Horde KoboldAI API 設定中保存設定中儲存 API 金鑰以進行使用。",
18851882 "Prompt Upsampling": "提示提升(Upsampling)",
18861883 "Uncheck to hide the extension's messages in chat prompts.": "取消選取可在聊天提示詞中隱藏擴充功能的訊息。",
18871884 "ext_translate_delete_confirm_1": "確定要刪除嗎?",
18881885 "ext_translate_delete_confirm_2": "這將「永久刪除」本次聊天中所有訊息的翻譯文本本次聊天中所有訊息的翻譯文字,且無法復原。",
18891886 "Select TTS Provider": "選擇 TTS 提供者",
18901887 "tts_enabled": "啟用",
18911888 "Narrate user messages": "朗讀使用者訊息",
18921889 "Auto Generation": "自動生成",
18931890 "Requires auto generation to be enabled.": "需要啟用自動生成功能。",
18941891 "Narrate by paragraphs (when streaming)": "按段落朗讀(使用「串流」傳輸時)",
18951892 "Only narrate quotes": "僅朗讀「引號」中的文字",
18961893 "Ignore text, even quotes, inside asterisk": "忽略 *(星號)內的文字(包括「引號」)",
18971894 "Narrate only the translated text": "僅朗讀翻譯後的文本僅朗讀翻譯後的文字",
18981895 "Skip codeblocks": "跳過代碼塊跳過程式碼塊",
18991896 "Skip tagged blocks": "跳過 <標記> 塊",
19001897 "Pass Asterisks to TTS Engine": "將 *(星號)視為普通文字傳送至 TTS 引擎(否則忽略)",
19011898 "Warning: This will slow down vector generation drastically, as all messages have to be summarized first.": "警告:操作後將顯著降低向量生成速度,因為所有訊息都必須先進行摘要。",
@@ -1903,42 +1900,42 @@
19031900 "this chat is temporary and will be deleted as soon as you leave it.": "此聊天為臨時聊天,離開後將被刪除。",
19041901 "Import Tags For _begin": "為",
19051902 "Import Tags For _end": "匯入標籤",
19061903 "Click remove on any tag to remove it from this import.<br />Select one of the import options to finish importing the tags.": "點擊任意標籤上的點選任意標籤上的「移除」可將其於本次匯入中刪除。\n選擇一個匯入選項以完成標籤匯入。",
19071904 "Existing Tags": "現有標籤",
19081905 "New Tags": "新標籤",
19091906 "Folder Tags": "資料夾標籤",
19101907 "The following tags will be auto-imported based on the currently selected folders": "以下標籤將根據目前選擇的文件夾自動匯入以下標籤將根據目前選擇的資料夾自動匯入",
19111908 "Import None": "不匯入",
19121909 "Import All": "全部匯入",
19131910 "Import Existing": "匯入現有標籤",
19141911 "Import": "匯入",
19151912 "chat_rename_1": "輸入此聊天檔案的新名稱:",
19161913 "chat_rename_2": "!! 使用已存在的檔案名將導致錯誤使用已存在的檔案名稱將導致錯誤 !!",
19171914 "chat_rename_3": "這將斷開各檢查點間的連結。",
19181915 "chat_rename_4": "無需在末尾加上無需在結尾加上 `.jsonl`。",
19191916 "Include Body Parameters": "包含請求主體參數",
19201917 "custom_include_body_desc": "包含在 Chat Completion 請求體中的參數(YAML 格式)\n\n範例:\n- top_k: 20\n- repetition_penalty: 1.1",
19211918 "Exclude Body Parameters": "排除請求主體參數",
19221919 "custom_exclude_body_desc": "排除於 Chat Completion 請求體中的參數(YAML 格式)\n\n範例:\n- frequency_penalty\n- presence_penalty",
19231920 "Include Request Headers": "包含請求頭包含請求標頭(Request Headers)",
19241921 "custom_include_headers_desc": "添加於新增於 Chat Completion 請求的自定義標頭(YAML 格式)\n\n範例:\n- CustomHeader: custom-value\n- AnotherHeader: custom-value",
19251922 "THIS IS PERMANENT!": "這是「永久性」的!",
19261923 "Also delete the chat files": "同時刪除此聊天檔案",
19271924 "Are you sure you want to duplicate this character?": "您確定要複製該角色嗎?",
19281925 "If you just want to start a new chat with the same character...": "若您只是想與該角色開始新聊天,請使用左下角選單中的「開始新聊天」。",
19291926 "forbid_media_global_state_forbidden": "(禁止)",
19301927 "forbid_media_global_state_allowed": "(允許)",
19311928 "help_format_1": "文本格式化命令文字格式化命令:",
19321929 "help_format_2": "*文本文字*",
19331930 "help_format_3": "顯示為",
19341931 "help_format_4": "斜體",
19351932 "help_format_5": "**文本文字**",
19361933 "help_format_6": "顯示為",
19371934 "help_format_7": "粗體",
19381935 "help_format_8": "***text***",
19391936 "help_format_9": "顯示為",
19401937 "help_format_10": "粗斜體",
19411938 "help_format_11": "__文本____文字__",
19421939 "help_format_12": "顯示為",
19431940 "help_format_13": "底線",
19441941 "help_format_14": "~~text~~",
@@ -1969,8 +1966,8 @@
19691966 "help_3": "格式化",
19701967 "help_4": "快捷鍵",
19711968 "help_5": "{{macros}}(巨集)",
19721969 "help_6": "還有問題嗎?請查看請造訪",
19731970 "help_7": "SillyTavern 官方文檔網站官方文件網站",
19741971 "help_8": " 了解更多資訊!",
19751972 "help_hotkeys_0": "聊天快捷鍵",
19761973 "help_hotkeys_1": "↑(方向鍵)",
@@ -1980,21 +1977,21 @@
19801977 "help_hotkeys_5": "←(方向鍵)",
19811978 "help_hotkeys_6": "向左滑動",
19821979 "help_hotkeys_7": "→(方向鍵)",
19831980 "help_hotkeys_8": "向右滑動(注意:若聊天框中已有輸入,滑動快捷鍵將被禁用滑動快捷鍵將被停用)",
19841981 "help_hotkeys_9": "Enter",
19851982 "help_hotkeys_10": "(選中聊天框時)",
19861983 "help_hotkeys_10_1": "向 AI 發送您的訊息傳送您的訊息",
19871984 "help_hotkeys_11": "Ctrl+Enter",
19881985 "help_hotkeys_12": "重新生成最後一則 AI 回應",
19891986 "help_hotkeys_13": "Alt+Enter",
19901987 "help_hotkeys_14": "繼續生成最後一則 AI 回應",
19911988 "help_hotkeys_15": "Esc 鍵",
19921989 "help_hotkeys_16": "停止 AI 回應生成,關閉使用者界面關閉使用者介面,取消訊息編輯",
19931990 "help_hotkeys_17": "Ctrl+Shift+↑",
19941991 "help_hotkeys_18": "滾動到上下文行",
19951992 "help_hotkeys_19": "Ctrl+Shift+↓",
19961993 "help_hotkeys_20": "Markdown 快捷鍵",
19971994 "help_hotkeys_21": "適用於聊天框和帶有此圖標的文本區域適用於聊天框和帶有此圖示的文字區域:",
19981995 "help_hotkeys_22": "**粗體**",
19991996 "help_hotkeys_23": "*斜體*",
20001997 "help_hotkeys_24": "__底線__",
@@ -2008,7 +2005,7 @@
20082005 "help_macros_2": "插入一個換行符。",
20092006 "help_macros_3": "修剪巨集指令周圍的換行符。",
20102007 "help_macros_4": "無操作,僅返回空字串。",
20112008 "help_macros_5": "在 API 設定中定義的全域提示詞。僅在高級定義提示詞覆蓋中有效僅在高階定義提示詞覆蓋中有效。",
20122009 "help_macros_6": "使用者輸入",
20132010 "help_macros_7": "角色的主要提示詞覆蓋",
20142011 "help_macros_8": "角色的聊天歷史後指示覆蓋",
@@ -2025,11 +2022,11 @@
20252022 "help_macros_17": "角色版本",
20262023 "help_macros_18": "以逗號分隔的群組成員名稱列表(包含靜音成員)或單人聊天中的角色名稱。別名:{{charIfNotGroup}}",
20272024 "help_groupNotMuted": "與 {{group}} 相同,但不包含靜音成員",
20282025 "help_macros_19": "目前所選之 API 的文本生成模型名稱的文字生成模型名稱。",
20292026 "Can be inaccurate!": "可能不準確!",
20302027 "help_macros_20": "最新聊天訊息的文本內容最新聊天訊息的文字內容。",
20312028 "help_macros_lastUser": "最新使用者聊天訊息的文本內容最新使用者聊天訊息的文字內容。",
20322029 "help_macros_lastChar": "最新角色聊天訊息的文本內容最新角色聊天訊息的文字內容。",
20332030 "help_macros_21": "最新聊天訊息的索引 # 編號。適用於斜線命令批次處理。",
20342031 "help_macros_22": "包含在上下文中的第一條訊息的 ID。需在目前對話中至少進行一次生成。",
20352032 "help_macros_23": "最新聊天訊息中所滑動的 ID(以 1 起始)。若最新訊息為使用者訊息或提示為隱藏,則為空字串。",
@@ -2044,20 +2041,20 @@
20442041 "help_macros_31": "指定格式的目前日期/時間,例如,德國日期/時間:",
20452042 "help_macros_32": "指定 UTC 時區偏移量的目前時間,例如 UTC-4 或 UTC+2",
20462043 "help_macros_33": "計算 time1 和 time2 之間的時間差。接受時間和日期巨集。(例如:{{timeDiff::{{isodate}} {{time}}::2024/5/11 12:30:00}})",
20472044 "help_macros_34": "上次使用者訊息發送後的時間上次使用者訊息傳送後的時間",
20482045 "help_macros_35": "設定 AI 的行為偏好,直到下一次使用者輸入。引號中的文本很重要引號中的文字很重要。",
20492046 "help_macros_36": "擲骰子。(例如:",
20502047 "space_ will roll a 6-sided dice and return a number between 1 and 6)": "將擲一個六面骰並回傳 1 到 6 間的數字)",
20512048 "help_macros_37": "從列表中返回隨機一項。(例如:",
20522049 "space_ will return 1 of the 4 numbers at random. Works with text lists too.": "將隨機返回 4 個數字中的 1 個。也適用於文本列表也適用於文字列表。)",
20532050 "help_macros_38": "用於隨機的替代語法,允許在列表中使用逗號。",
20542051 "help_macros_39": "從列表中選擇隨機一項。工作原理與 {{random}} 相同,但選擇結果將在本次聊天中保持一致,不會在後續消息或提示處理時重新滾動不會在後續訊息或提示處理時重新滾動。",
20552052 "help_macros_40": "若使用 Text Generation WebUI 後端,動態將引號中的文本添加到禁用單詞序列中動態將引號中的文字新增到停用單詞序列中。對其他後端無效。可在任何地方使用(角色描述、世界資訊、作者備註等)。引號內容很重要。",
20562053 "Instruct Mode and Context Template Macros:": "指令模式與上下文模板巨集指令模式與上下文範本巨集:",
20572054 "(enabled in the Advanced Formatting settings)": "(在高級格式化設定中啟用在高階格式化設定中啟用)",
20582055 "help_macros_41": "允許的最大提示詞長度(以符元為單位)=(上下文大小 - 回應長度)",
20592056 "help_macros_42": "上下文模板對話範例分隔符上下文範本對話範例分隔符號",
20602057 "help_macros_43": "上下文模板聊天開始行上下文範本聊天開始行",
20612058 "help_macros_44": "主要提示詞(啟用後,將覆蓋角色提示詞或預設系統提示)",
20622059 "help_macros_45": "主要提示詞",
20632060 "help_macros_46": "指令系統提示詞前綴序列",
@@ -2076,21 +2073,21 @@
20762073 "help_macros_first_user": "指令使用者開頭輸入序列",
20772074 "help_macros_last_user": "指令使用者結尾輸入序列",
20782075 "Chat variables Macros:": "聊天變數巨集:",
20792076 "Local variables = unique to the current chat": "局部變數區域變數 = 僅作用於本次聊天",
20802077 "Global variables = works in any chat for any character": "全域變數 = 作用於所有聊天中的所有角色",
20812078 "Scoped variables = works in STscript": "局部變數區域變數 = 適用於 STscript",
20822079 "help_macros_59": "替換為局部變數替換為區域變數 \"name\" 的值",
20832080 "help_macros_60": "替換為空字串,並將局部變數並將區域變數 \"name\" 設定為 \"value\"",
20842081 "help_macros_61": "替換為空字串,並將 \"increment\" 數值添加到局部變數數值新增到區域變數 \"name\"",
20852082 "help_macros_62": "替換為局部變數替換為區域變數 \"name\" 的值增加 1 後的結果",
20862083 "help_macros_63": "替換為局部變數替換為區域變數 \"name\" 的值減少 1 後的結果",
20872084 "help_macros_64": "替換為全域變數 \"name\" 的值",
20882085 "help_macros_65": "替換為空字串,並將全域變數 \"name\" 設定為 \"value\"",
20892086 "help_macros_66": "替換為空字串,並將 \"increment\" 數值添加到全域變數數值新增到全域變數 \"name\"",
20902087 "help_macros_67": "替換為全域變數 \"name\" 的值增加 1 後的結果",
20912088 "help_macros_68": "替換為全域變數 \"name\" 的值減少 1 後的結果",
20922089 "help_macros_69": "替換為局部變數替換為區域變數 \"name\" 的值",
20932090 "help_macros_70": "替換為局部變數替換為區域變數 \"name\" 中指定索引(適用於陣列/列表或對象列表或物件/字典)的值",
20942091 "{{name}}": "{{name}}",
20952092 "If necessary, you can later restore this chat file from the /backups folder": "若需要,您可以稍後從 /backups 資料夾恢復此聊天檔案",
20962093 "Also delete the current chat file": "同時刪除目前的聊天檔案",
@@ -2111,13 +2108,13 @@
21112108 "Exclude Patterns": "排除模式",
21122109 "Glob patterns of files to exclude in the download.": "要排除於下載中的文件的全域模式。\r每行輸入一個模式。",
21132110 "Tag Management": "管理標籤",
21142111 "Save your tags to a file": "將標籤保存到文件將標籤儲存到文件",
21152112 "Restore tags from a file": "從文件中恢復標籤",
21162113 "Create a new tag": "創建新標籤建立新標籤",
21172114 "Drag handle to reorder. Click name to rename. Click color to change display.": "拖動以重新排序。點擊名稱重新命名點選名稱重新命名點擊顏色更改顯示點選顏色更改顯示。",
21182115 "Click on the folder icon to use this tag as a folder.": "點擊資料夾圖示以將此標籤作為資料夾點選資料夾圖示以將此標籤作為資料夾。",
21192116 "Use alphabetical sorting": "按字母順序排序 ",
21202117 "tags_sorting_desc": "啟用後,標籤將在創建或重命名時將自動按字母排序標籤將在建立或重新命名時將自動按字母排序。\n禁用時n停用時新標籤將附加到末尾新標籤將附加到結尾。\n若標籤被手動拖動重新排序,則自動排序將被禁用則自動排序將被停用。",
21212118 "and connect to an": "並連線到",
21222119 "You can add more": "您可加入更多",
21232120 "or_welcome": "或",
@@ -2157,13 +2154,13 @@
21572154 "Which elements to color.": "設定需要上色的元素。",
21582155 "Open Chat History": "開啟聊天記錄",
21592156 "Reset": "重設",
21602157 "Save": "保存儲存",
21612158 " folder of your user directory (typically 'data/default-user'). Place your expressions there.": "資料夾內,放置您的角色立繪(通常為「data/default-user」)。",
21622159 "Always show the node full info panel at the…e timeline view. When off, show it near the node.": "始終在時間軸視圖底部顯示節點的完整資訊面板始終在時間軸檢視底端顯示節點的完整資訊面板。若關閉,則在節點附近顯示。",
21632160 "Always show the node tooltip at the bottom …e timeline view. When off, show it near the node.": "始終在時間軸視圖左下角顯示節點的提示框始終在時間軸檢視左下角顯示節點的提示框。若關閉,則在節點附近顯示。",
21642161 "Dialogue settings for user personas.": "Dialogue settings for user personas.",
21652162 "Expand swipe nodes when the timeline view f… a node, or by pressing the Toggle Swipes button.": "在時間軸視圖首次打開時展開滑動節點在時間軸檢視首次開啟時展開滑動節點,或透過按下「切換滑動」按鈕來展開節點。",
21662163 "Send as a character": "以角色身份發送以角色身份傳送",
21672164 "Use GPU acceleration for positioning the fu…ow tends to disappear, turning this off may help.": "使用 GPU 加速來定位完整資訊面板。若面板頻繁消失,建議關閉此選項以解決問題。",
21682165 "Use the colors of the ST GUI theme, instead…n Color Settings specifically for this extension.": "使用使用者設定中的介面主題顏色,取代下方「顏色設定」中額外設定的顏色。",
21692166 "When enabled, nodes that have swipes splitt… larger, in addition to having the double border.": "啟用後,具有分支滑動的節點除了顯示雙重邊框外,還會顯示為更大的尺寸。",
@@ -2172,7 +2169,7 @@
21722169 "Commands": "指令",
21732170 "Contrast": "對比度",
21742171 "Darken Unfocused Character Sprites": "暗化未聚焦的角色立繪",
21752172 "Delete tint": "保存色調儲存色調",
21762173 "Ease": "平滑過渡",
21772174 "Ease-In": "淡入",
21782175 "Ease-In-Out": "淡入 + 淡出",
@@ -2216,7 +2213,7 @@
22162213 "Select the animation for focus mode.": "選擇聚焦模式的動畫效果。",
22172214 "Select the color of the letterbox.": "選擇遮罩顏色。",
22182215 "Select the letterbox mode for the Prome VN UI.": "選擇 Prome 視覺小說介面的遮罩模式",
22192216 "Select the tint preset to use for the Prome VN UI.": "選擇用於 Prome 視覺小說介面的色調預設視覺小說介面的色調預設設定檔。",
22202217 "Sepia": "復古",
22212218 "Set the blur of the character shadow.": "設定角色陰影模糊程度。",
22222219 "Set the brightness of the character.": "設定角色亮度。",
@@ -2240,7 +2237,7 @@
22402237 "Sprite List": "角色立繪列表",
22412238 "Sprite Shadow Configuration": "設定角色立繪陰影",
22422239 "Tint Configuration": "設定色調",
22432240 "Tint Presets": "預設色調色調預設設定檔",
22442241 "Type the name of the sprite set to use for your pe…rites in the 'characters' folder in SillyTavern).": "輸入您要使用的個人角色立繪集名稱(需將立繪存放於 SillyTavern 中的「characters」資料夾內)。",
22452242 "User Sprite Configuration": "[測試版] 使用者立繪設定",
22462243 "Vertical Letterbox": "垂直遮罩",
@@ -2254,33 +2251,33 @@
22542251 "Prome Commands": "Prome 指令",
22552252 "Show/Hide the letterbox (black bars) in the VN UI": "顯示/隱藏視覺小說模式中的黑邊(信箱模式)",
22562253 "Toggles focus mode on character sprites": "切換角色立繪的焦點模式",
22572254 "Sets the focus mode animation": "設置焦點模式動畫設定焦點模式動畫",
22582255 "Toggles the defocus tint on non-speaking character sprites": "切換非對話角色立繪的背景色",
22592256 "Toggles the shake animation when a character speaks on character sprites": "切換角色立繪對話時的震動動畫",
22602257 "Toggles sprite shadows on character sprites": "切換角色立繪的陰影效果",
22612258 "Toggles world/character tint on the VN UI": "切換視覺小說模式中的世界/角色色調",
22622259 "Toggles world tint on the VN UI": "切換視覺小說模式中的世界色調",
22632260 "Toggles character tint on the VN UI": "切換視覺小說模式中的角色色調",
22642261 "Toggles sharing world tint with character sprites (This will override Character Tint)": "切換角色立繪是否與世界色調共享色調(此操作將覆蓋角色色調設置此操作將覆蓋角色色調設定)",
22652262 "Sets the expression of the user sprite": "設定使用者立繪的表情",
22662263 "Sets the user sprite set to use for the user sprite": "設定使用者立繪所使用的立繪集",
22672264 "Toggles the user sprite on the VN UI": "切換視覺小說模式中使用者立繪的顯示狀態",
22682265 "Close": "關閉",
22692266 "View this current chat's chat history.": "查看本次聊天的聊天記錄檢視本次聊天的聊天記錄。",
22702267 "WARNING: Functions in this category are for advanced users only. Don't click anything if you're not sure about the consequences.": "警告:此類功能僅適用於進階使用者。若您不確定使用後果,請勿點擊任何按鈕請勿點選任何按鈕。",
22712268 "Enter a new display name:": "輸入新的顯示名稱:",
22722269 "Enter Checkpoint Name:": "輸入檢查點名稱:",
22732270 "(Leave empty to auto-generate)": "(留空將自動命名)",
22742271 "The currently existing checkpoint will be unlinked and replaced with the new checkpoint, but can still be found in the Chat Management.": "此檢查點將取消連結並替換為新的檢查點,但仍可在「管理聊天檔案」中找到。",
22752272 "Enter the Git URL of the extension to install": "輸入欲安裝的擴充功能 Git URL",
22762273 "Disclaimer:": "免責聲明免責宣告:",
22772274 "Please be aware that using external extensions can have unintended side effects and may pose security risks. Always make sure you trust the source before importing an extension. We are not responsible for any damage caused by third-party extensions.": "請注意,使用外部擴充功能可能會導致意想不到的副作用並存在安全風險。在匯入前,請務必確保您信任其來源。我們對於第三方擴充功能所引起的任何損害概不負責。",
22782275 "Prompt Itemization": "提示詞項目化",
22792276 "API/Model": "API/模型",
22802277 "Preset": "預設預設設定檔",
22812278 "Only the white numbers really matter. All numbers are estimates. Grey color items may not have been included in the context due to certain prompt format settings.": "所有數字均為估算值,僅白色數字真正重要。灰色項目可能因提示詞格式設定未納入上下文。",
22822279 "System Info:": "系統資訊:",
22832280 "Bias:": "Bias:",
22842281 "World Info:": "世界資訊:",
22852282 "Chat History:": "聊天記錄:",
22862283 "Extensions:": "擴充功能:",
@@ -2289,48 +2286,48 @@
22892286 "(Context Size - Response Length)": "(上下文長度 - 回應長度)",
22902287 ":": ":",
22912288 "API/Model:": "API/模型:",
22922289 "Preset:": "預設預設設定檔:",
22932290 "Tokenizer:": "分詞器:",
22942291 "Choose what to export": "選擇匯出內容",
22952292 "Text Completion Preset": "文本補全預設文字補全預設設定檔",
22962293 "Choose what to import": "選擇匯入內容",
22972294 "Enter your password below to confirm:": "請在下方輸入密碼以完成確認:",
22982295 "Unique to this chat.": "此設定僅適用於本次聊天。",
22992296 "The following scenario text will be used instead of the value set in the character card.": "以下場景內容將覆蓋角色卡中的設定值。",
23002297 "Checkpoints inherit the scenario override from their parent, and can be changed individually after that.": "檢查點將繼承父項的場景覆蓋值,但仍可獨立修改。",
23012298 "Are you sure you want to delete the theme?": "您確定要刪除介面主題嗎?",
23022299 "This will delete all your settings and data. There will be no undo button. Make sure you have a backup before proceeding.": "此操作將刪除所有設定與數據此操作將刪除所有設定與資料,且無法還原。進行重設前請務必完成備份。",
23032300 "Account reset code has been posted to the server console.": "帳號重設驗證碼已發送至伺服器控制台帳號重設驗證碼已傳送至伺服器控制台。",
23042301 "Prompt Tokens:": "提示詞符元數:",
23052302 "All group members will use the following scenario text instead of what is specified in their character cards.": "所有群組聊天成員將使用以下場景內容,取代原有角色卡中指定的內容。",
23062303 "Toggle sidebar": "切換側邊欄",
23072304 "Show connection profiles": "顯示連線設定檔",
23082305 "View chat files": "查看聊天檔案檢視聊天檔案",
23092306 "New chat": "新聊天",
23102307 "Rename chat": "重新命名聊天",
23112308 "Delete chat": "刪除聊天",
23122309 "Are you sure?": "你確定嗎?",
23132310 "Enter new chat name": "輸入新的聊天名稱",
23142311 "No chat selected": "未選擇聊天",
23152312 "Draggable template not found. Side bar will not be added.": "未找到可拖動模板未找到可拖動範本側邊欄將不被添加側邊欄將不被新增。",
23162313 "Failed to find draggable or close button. Side bar will not be added.": "未找到可拖動項或關閉按鈕。側邊欄將不被添加側邊欄將不被新增。",
23172314 "Sidebar or toggle button not found": "未找到側邊欄或切換按鈕",
23182315 "Switch connection profile": "切換連線設定檔",
23192316 "Failed to get current API": "獲取取得 API 失敗",
23202317 "Failed to get current model": "獲取模型失敗取得模型失敗",
23212318 "Aborting populateSideBar due to process id mismatch": "由於 populateSideBar ID 不匹配,中止填充側邊欄",
23222319 "Bronya Rand": "Bronya Rand(布洛妮婭·蘭德)",
23232320 "Toggles Prome, VN Mode and other Prome features.": "切換 Prome、視覺小說模式和其他 Prome 功能。",
23242321 "Only Show Last Message in Chat (Requires Prome to be enabled).": "僅顯示聊天中的最後一條消息僅顯示聊天中的最後一條訊息(需啟用 Prome)。",
23252322 "Emulates the character card of a character to be a sprite. (Requires Prome to be enabled).": "將角色的角色卡圖片模擬為角色立繪(需啟用 Prome)。",
23262323 "Shakes the character sprite when the character is speaking (Only works if Streaming is enabled in Preset Settings).": "當角色說話時,震動角色的立繪(僅在預設設定中啟用僅在預設設定檔中啟用「串流」時有效)。",
23272324 "Focuses the current speaking character in chat. (Requires Prome to be enabled).": "聚焦聊天中當前正在說話的角色聚焦聊天中目前正在說話的角色(要啟用 Prome)。",
23282325 "Darkens non-speaking (unfocused) characters. (Requires Prome to be enabled).": "使未說話(未聚焦)的角色變暗(需啟用 Prome)。",
23292326 "Auto-hides characters from the screen that haven't been in the conversation for a while up to X characters. (Requires Prome to be enabled).": "自動隱藏未參與會話一段時間的角色,最多 X 個角色(需啟用 Prome)。",
23302327 "Enables the ability to use a user sprite for your persona.": "啟用後,將為使用者的角色使用角色立繪功能。",
23312328 "Applies the world tint to character sprites (Requires Prome to be enabled. This will override your character tint settings).": "將世界色調應用於角色立繪(需啟用 Prome,這將覆蓋角色的色調設定)。",
23322329 "Tints the world background.": "為世界背景添加色調為世界背景新增色調。",
23332330 "Tints the character sprites.": "為角色立繪添加色調為角色立繪新增色調(需啟用 Prome)。",
23342331 "Auto-Hide Sprites": "自動隱藏立繪",
23352332 "Max Visible Sprites": "最大顯示數",
23362333 "Set the maximum number of visible sprites that appears in the VN screen.": "設定視覺小說模式中,畫面可顯示的最大立繪數量。",
@@ -2355,11 +2352,11 @@
23552352 "Auto": "自動",
23562353 "Allow": "允許",
23572354 "Forbid": "禁止",
23582355 "Aphrodite only. Determines the order of samplers. Skew is always applied post-softmax, so it's not included here.": "僅限 Aphrodite 使用。決定採樣器的順序決定取樣器的順序。偏移總是在 softmax 後應用,因此不包括在此。",
23592356 "Aphrodite only. Determines the order of samplers.": "僅限 Aphrodite 使用。決定採樣器的順序決定取樣器的順序。",
23602357 "Request model reasoning": "請求模型思維鏈",
23612358 "Allows the model to return its thinking process.": "讓模型回傳其思考過程。",
23622359 "Generic (OpenAI-compatible) [LM Studio, LiteLLM, etc.]": "通用(兼容相容 OpenAI)[LM Studio, LiteLLM 等]",
23632360 "Model ID (optional)": "模型 ID(可選)",
23642361 "DeepSeek API Key": "DeepSeek API 金鑰",
23652362 "DeepSeek Model": "DeepSeek 模型",
@@ -2372,31 +2369,31 @@
23722369 "Contain": "自適應",
23732370 "Stretch": "拉伸",
23742371 "Center": "置中",
23752372 "Persona Lore Alt+Click to open the lorebook": "「Alt+點擊點選」可開啟角色知識書",
23762373 "Chat Lore Alt+Click to open the lorebook": "「Alt+點擊點選」可開啟聊天知識書",
23772374 "Function Tool": "功能工具",
23782375 "Functions in this category are for advanced users only. Don't click anything if you're not sure about the consequences.": "此類功能僅供高級用戶使用此類功能僅供高階使用者使用。若不確定後果,請勿點擊任何內容請勿點選任何內容。",
23792376 "Are you sure you want to delete this user?": "確定要刪除該使用者嗎?",
23802377 "help_macros_isMobile": "目前是否在行動端使用:\"true\" 表示是,\"false\" 表示否",
23812378 "Persona Lorebook for": "角色知識書適用於",
23822379 "persona_world_template_txt": "選中的世界資訊將綁定到此角色。生成 AI 回覆時,會結合全域、角色及聊天知識書中的內容。",
23832380 "Key saved; press \"Test Message\" to verify.": "金鑰已儲存;請點擊請點選「測試訊息」進行驗證。",
23842381 "Preset name:": "預設名稱預設設定檔名稱:",
23852382 "Hint: Use a character/group name to bind preset to a specific chat.": "提示:使用角色/群組名稱將綁定預設至特定對話群組名稱將綁定預設設定檔至特定對話。",
23862383 "Your preset contains proxy and/or custom endpoint settings.": "此預設包含代理和此預設設定檔包含代理和/或自訂端點設定。",
23872384 "Do you want to remove these fields before exporting?": "是否要在匯出前移除這些欄位?",
23882385 "Delete the preset? This action is irreversible and your current settings will be overwritten.": "確定刪除此預設確定刪除此預設設定檔?刪除後無法復原,且此設定將被覆蓋。",
23892386 "Update all": "全部更新",
23902387 "Automatically chooses an alternative provider if chosen providers can't serve your request.": "當所選提供者無法滿足您的請求時,自動選擇替代提供者。",
23912388 "Use extension settings": "使用擴充功能設定",
23922389 "To use instruct formatting, switch to OpenRouter under Text Completion API.": "若要使用指令格式,請在文本補全請在文字補全 API 下切換至 OpenRouter。",
23932390 "Automatically 'continue' a response if the model stopped before reaching a certain amount of tokens.": "如果模型在達到一定數量的符元前停止,則自動繼續生成回應。",
23942391 "Toggle entry's active state.": "切換條目的啟用狀態。",
23952392 "Non-sticky": "無黏性",
23962393 "No cooldown": "無冷卻時間",
23972394 "No delay": "無延遲",
23982395 "Included settings:": "包含設定:",
23992396 "Click on the setting name to omit it from the profile.": "點擊設定名稱以從設定檔中省略點選設定名稱以從設定檔中省略。",
24002397 "Tints the chat background and/or character sprites.": "調整聊天背景或角色圖片的色調。",
24012398 "Only chunk on custom boundary": "僅在自定邊界進行分塊(chunk)",
24022399 "help_macros_firstDisplayedMessageId": "載入到可見聊天中的第一則訊息的 ID。",
@@ -2404,7 +2401,7 @@
24042401 "Select providers. No selection = all providers.": "選擇供應商。未選擇=所有供應商。",
24052402 "Select a model": "選擇模型",
24062403 "Search models...": "搜尋模型⋯",
24072404 "[Currently loaded]": "[當前加載目前載入]",
24082405 "Search providers...": "搜尋供應商⋯",
24092406 "No-sticky": "無固定",
24102407 "Create a new World Info": "建立新世界資訊",
@@ -2429,15 +2426,15 @@
24292426 "Loading third-party extensions... Please wait...": "正在載入第三方擴充功能,請稍候⋯",
24302427 "The page will be reloaded shortly...": "頁面即將重新載入⋯",
24312428 "Extensions state changed": "擴充功能狀態已更改",
24322429 "Error loading extensions. See browser console for details.": "載入擴充功能時出現錯誤。詳情請查看瀏覽器控制台詳細資訊請檢視瀏覽器控制台。",
24332430 "You don't have permission to update global extensions.": "您無權更新全域擴充功能。",
24342431 "Extension update failed": "擴充功能更新失敗",
24352432 "Extension ${0} updated to ${1}": "擴充功能 ${0} 已更新至 ${1}",
24362433 "Reload the page to apply updates": "重新加載頁面以使用更新重新載入頁面以使用更新",
24372434 "You don't have permission to delete global extensions.": "您無權刪除全域擴充功能。",
24382435 "Are you sure you want to delete ${0}?": "確定要刪除 ${0} 嗎?",
24392436 "You don't have permission to move extensions.": "您無權移動擴充功能。",
24402437 "Are you sure you want to move ${0} to your local extensions? This will make it available only for you.": "確定要將 ${0} 移至本地擴充功能嗎移至本機擴充功能嗎?此後僅您可使用。",
24412438 "Are you sure you want to move ${0} to the global extensions? This will make it available for all users.": "確定要將 ${0} 移至全域擴充功能嗎?此後所有使用者皆可使用。",
24422439 "Extension ${0} moved.": "擴充功能 ${0} 已移動。",
24432440 "Extension ${0} deleted": "擴充功能 ${0} 已刪除。",
@@ -2452,5 +2449,179 @@
24522449 "Modules provided by your Extras API:": "由您的 Extras API 提供的模組:",
24532450 "Not connected to the API!": "未連線到 API!",
24542451 "ext_type_system": "這是內建的擴充功能,無法刪除,且會跟隨系統更新。",
24552452 "Valid": "已驗證",
2453+ "Request Model Reasoning": "請求模型推理",
2454+ "Global list": "全域列表",
2455+ "Preset-specific list": "特定預設設定檔列表",
2456+ "Constrains effort on reasoning for reasoning models.": "限制推理模型的推理耗費。\n目前支援的值為低、中和高。\n降低推理耗費可加快回應速度,並減少推理所使用的符元數量。",
2457+ "Reasoning Effort": "推理耗費",
2458+ "openai_reasoning_effort_low": "低",
2459+ "openai_reasoning_effort_medium": "中",
2460+ "openai_reasoning_effort_high": "高",
2461+ "Reasoning": "推理 Reasoning",
2462+ "reasoning_auto_parse": "自動解析主要內容中推理區塊,需定義且不為空的前綴與後綴欄位。",
2463+ "Auto-Parse": "自動解析",
2464+ "reasoning_auto_expand": "自動展開推理區塊。",
2465+ "Auto-Expand": "自動展開",
2466+ "reasoning_show_hidden": "顯示隱藏推理功能模型的推理時間",
2467+ "Show Hidden": "顯示隱藏內容",
2468+ "reasoning_add_to_prompts": "將現有推理區塊新增至提示詞中。若需新增推理區塊,請使用訊息編輯選單。",
2469+ "Add to Prompts": "新增至提示詞",
2470+ "reasoning_max_additions": "從最後一則訊息起算,每則提示詞中可新增的最大推理區塊數量。",
2471+ "Max": "最大值",
2472+ "Reasoning Formatting": "推理格式",
2473+ "reasoning_prefix": "插入於推理內容之前。",
2474+ "Prefix": "前綴",
2475+ "reasoning_suffix": "插入於推理內容之後。",
2476+ "Suffix": "後綴",
2477+ "reasoning_separator": "插入於推理內容與訊息內容之間。",
2478+ "Separator": "分隔符號",
2479+ "Character details are hidden.": "角色詳細資訊已隱藏。",
2480+ "Add a reasoning block": "新增推理區塊",
2481+ "Thought for some time": "思考了一段時間",
2482+ "Confirm Edit": "確認",
2483+ "Remove reasoning": "移除推理",
2484+ "Cancel edit": "取消編輯",
2485+ "Copy reasoning": "複製推理",
2486+ "Edit reasoning": "編輯推理",
2487+ "extension_install_1": "若要從此頁面下載擴充功能,您需要安裝",
2488+ "extension_install_2": "已安裝。",
2489+ "extension_install_3": "點選",
2490+ "extension_install_4": "圖示以存取擴充功能的儲存庫,檢視使用技巧。",
2491+ "Use the selected API from Chat Translation extension settings.": "使用擴充功能設定中,「聊天翻譯」所選的翻譯提供者(API)。",
2492+ "A single expression can have multiple sprites. Whenever the expression is chosen, a random sprite for this expression will be selected.": "單個同名表情可以有多張角色立繪。每次使用該表情時,會隨機擇一顯示。",
2493+ "Allow multiple sprites per expression": "允許單一表情使用多張立繪",
2494+ "If the same expression is used again, re-roll the sprite. This only applies to expressions that have multiple available sprites assigned.": "若再次使用相同的表情,將重新隨機選擇。此功能僅適用於分配了多張立繪的表情。",
2495+ "Re-roll if same expression is used again": "重複使用同名表情時,隨機選用其他立繪",
2496+ "upload_expression_request": "請輸入角色立繪名稱(不含副檔名)。",
2497+ "upload_expression_naming_1": "角色立繪名稱必須符合所選表情的命名規則:{{expression}}",
2498+ "upload_expression_naming_2": "對於多個表情,名稱必須包含表情名稱和有效的後綴,允許的分隔符號為「-」或「.」。",
2499+ "upload_expression_replace": "點選「取代」以取代現有表情:",
2500+ "ext_regex_reasoning_desc": "推理區塊內容。當「僅格式化提示詞」已勾選時,這也會影響新增至提示詞的推理內容。",
2501+ "Token Counter": "符元計數器",
2502+ "Type / paste in the box below to see the number of tokens in the text.": "在下框中輸入或貼上文字以檢視符元(Token)數量。",
2503+ "Selected tokenizer:": "選擇的分詞器:",
2504+ "Input:": "輸入:",
2505+ "Tokens:": "符元數:",
2506+ "Tokenized text:": "已符元化的文字:",
2507+ "Token IDs:": "符元 ID:",
2508+ "Narrate by paragraphs (when not streaming)": "按段落朗讀(不使用「串流」時)",
2509+ " folder (typically in ": "資料夾(通常位於 ",
2510+ "Copy to Clipboard": "複製到剪貼簿",
2511+ "Reset to Defaults": "重設為預設值",
2512+ "Toggles Guinevere features.": "切換 Guinevere 功能。",
2513+ "Update customCSS": "更新 customCSS",
2514+ "Apply Theme": "套用主題",
2515+ "Enable Guinevere": "啟用 Guinevere",
2516+ "Note: Themes can be made/applied by going to the ": "注意:主題可通過前往以下位置進行創建/應用",
2517+ "Theme Name": "主題名稱",
2518+ "An unknown error occurred while counting tokens. Further information may be available in console.": "計算符元時發生未知錯誤。更多資訊可能可在主控台(console)中查看。",
2519+ "Qvink Memory": "Qvink Memory(進階聊天記憶)",
2520+ "Toggle whether memory is enabled for this chat specifically (overrides all settings).": "切換是否為此聊天啟用記憶功能(將覆蓋所有設定)。",
2521+ "Toggle Chat Memory": "切換聊天記憶",
2522+ "Preview current memory state (the exact text that will be injected into your context).": "預覽目前記憶狀態(包含將嵌入上下文的具體內容)。",
2523+ "Copy ALL memories to clipboard (all memories in the entire chat, not just those injected).": "將所有記憶複製到剪貼簿(包含整個聊天的所有記憶,而非僅限於注入的部分)。",
2524+ "Just refreshes which memories are included and re-renders the memories under each message, doesn't change summaries. This is done automatically all the time, the button is here just in case.": "不影響摘要,僅更新已包含的聊天記憶,並重新顯示在每則訊息下方。此過程通常會自動執行,按鈕只是備用選項。",
2525+ "Active Settings Profile ": "目前設定檔",
2526+ "Create, edit, and save configuration profiles for this extension.": "建立、編輯及儲存此擴充功能的設定檔。",
2527+ "The currently selected profile": "目前選取的設定檔",
2528+ "Save current profile": "儲存此設定檔",
2529+ "Rename current profile": "重新命名此設定檔",
2530+ "Create new profile": "建立新設定檔",
2531+ "Restore current profile": "還原此設定檔",
2532+ "Delete current profile": "刪除此設定檔",
2533+ "Set as default profile for current character": "設為目前角色的預設設定檔",
2534+ "Summarization": "摘要",
2535+ "Customize the prompt used to summarize a given message": "自訂用於摘要指定訊息的提示詞",
2536+ "Edit the summary prompt": "編輯摘要提示",
2537+ "Preview the filled-in summary prompt, using the last message as an example.": "以最後一則訊息為例,預覽填充完成的摘要提示",
2538+ "Mass re-summarization. Brings up dialog to choose subsets of messages to summarize or re-summarize.": "批量重新摘要:開啟對話框以選擇訊息子集進行摘要或重新摘要。",
2539+ "Stop all summarization immediately.": "立即停止所有摘要。",
2540+ "New messages will be automatically summarized if they will be included in short-term memory.": "如果新訊息將被納入短期記憶,將自動進行摘要。",
2541+ "Auto Summarize": "自動摘要",
2542+ "Auto-summarization will be triggered before a new message is sent instead of after.": "自動摘要將在發送新訊息之前觸發。",
2543+ "Auto Summarize Before Generation": "在生成內容前自動摘要",
2544+ "Show the progress bar when auto-summarizing more than 1 message.": "在自動摘要多於 1 則訊息時顯示進度條。",
2545+ "Auto Summarize Progress Bar": "自動摘要進度條",
2546+ "Number of messages to delay summarization (0 = summarize up to the most recent message, 1 = lag behind by one message, etc.)": "延遲摘要的訊息數量(0 = 摘要至最新訊息,1 = 延遲摘要 1 則訊息,以此類推)。",
2547+ "Auto Summarize Message Lag": "自動摘要訊息延遲",
2548+ "Wait until this many messages before auto-summarizing them all in sequence (1 = summarize every message immediately, 2 = summarize when you have two ready, etc). Still summarizes one at a time.": "在訊息數量達到此設定值後,依序自動摘要(1 = 即時摘要每則訊息,2 = 等待 2 則訊息後再摘要,以此類推)。摘要將逐條執行。",
2549+ "Auto Summarize Batch Size": "自動摘要批次大小",
2550+ "The maximum number of messages back that auto-summarization will apply (-1 to disable).": "自動摘要可回溯的訊息最大數量(-1 表示禁用此功能)。",
2551+ "Auto Summarize Message Limit": "自動摘要訊息上限",
2552+ "Time in seconds to wait between summarizations. May be needed if you are using a external API with a rate limit.": "每次摘要的間隔時間(秒)。此設定適用於使用具有請求速率限制的外部 API。",
2553+ "Summarization Time Delay": "摘要時間延遲",
2554+ "The maximum token length a summary is allowed to be before cutting it off. Use the {{words}} macro in the summarization prompt to get this value.": "摘要在被截斷前允許的最大符元(token)長度。可在摘要提示中使用 {{words}} 巨集以取得此數值。",
2555+ "Summary Max Token Length": "摘要允許的最大符元長度",
2556+ "Editing a message will automatically trigger a re-summarization if it has already been summarized.": "編輯訊息時,若該訊息已被摘要,將自動觸發重新摘要。",
2557+ "Re-summarize on Edit": "編輯後重新摘要",
2558+ "Swiping a message will automatically trigger a re-summarization if it has already been summarized.": "滑動訊息後若已進行摘要,將自動觸發重新摘要。",
2559+ "Re-summarize on Swipe": "滑動後重新摘要",
2560+ "Block chat input while summarizing.": "在摘要進行時暫時禁用聊天訊息輸入。",
2561+ "Block Chat": "訊息輸入鎖定",
2562+ "Whether to use messages and/or summaries as context for summarization. You must use {{history}} in the summary prompt.": "決定是否在摘要中使用訊息及/或過往摘要作為背景資訊。需於摘要提示詞中,使用 {{history}}。",
2563+ "Message History": "訊息歷史",
2564+ "Messages": "僅訊息",
2565+ "Summaries": "僅摘要",
2566+ "Both": "訊息與摘要",
2567+ "Preview what the message history will look like": "預覽訊息歷史的顯示效果",
2568+ "How many previous messages to include in the summarization prompt as context.": "摘要提示中要包含多少先前訊息作為上下文。",
2569+ "Number of Previous Messages": "先前訊息數量",
2570+ "When including previous messages, also include user messages.": "包含先前訊息時,也包含使用者訊息。",
2571+ "Include Previous User Messages": "包含先前使用者訊息",
2572+ "The message to summarize will be inside the system instruct template itself. In unchecked (default), the message will instead be added separately after the prompt. Some models benefit from this, but it is not recommended.": "系統指令模板內將直接包含需要摘要的訊息。若未啟用此選項(預設設定),訊息會在提示後分開添加。儘管某些模型可能更適合此設定,但一般不建議使用。",
2573+ "Nest Message in Summary Prompt": "在摘要提示中內嵌訊息",
2574+ "WARNING: doesn't work great. Attempts to preserve context-shifting by including all the content that is sent in regular prompts (world info, description, personas, example messages, message history, etc). If your regular prompts are static, this can allow Context Shifting to work between summarizations, but it decreases the accuracy of summarization due to all the extra stuff in the prompt. It also can't be previewed as this injection is handled by ST, not the extension.": "警告:效果不佳。此功能嘗試透過在摘要時包含所有常規提示內容(如世界資訊、描述、角色設定、示範訊息、聊天歷史等)來保留上下文轉換。若您的常規提示為靜態內容,則可在摘要之間維持上下文轉換,但由於提示中包含大量額外資訊,將降低摘要的準確性。此外,此內容注入由 ST 處理,而非此擴充功能,因此無法進行預覽。",
2575+ "Include All Context Content": "包含所有上下文內容",
2576+ "Short-term Memory Injection": "短期記憶注入",
2577+ "Determines which messages are included in the short-term memory injection and where. If you change this and include messages that weren't summarized previously, you can either manually trigger a re-summarization or just wait until automatic summarization triggers.": "設定短期記憶注入中所包含的訊息及其插入位置。若更改此設定並包含先前未摘要的訊息,您可手動觸發重新摘要,或等待自動摘要啟動。",
2578+ "Edit the short-term memory prompt": "編輯短期記憶提示",
2579+ "Include User Messages": "包含使用者訊息",
2580+ "Include System Messages": "包含系統訊息",
2581+ "Include Thought Message": "包含思考訊息",
2582+ "Message Length Threshold": "訊息長度閾值",
2583+ "The minimum token length a message has to be in order to get summarized.": "可被摘要的訊息最小符元長度。",
2584+ "The max percent of the context that short-term memory can take up.": "短期記憶可佔用上下文的最大百分比。",
2585+ "Short-Term Context %": "短期記憶上下文%",
2586+ "Include short-term memory in the World Info Scan": "在世界資訊掃描中包含短期記憶",
2587+ "Do not inject": "不注入",
2588+ "Before main prompt": "主提示之前",
2589+ "After main prompt": "主提示之後",
2590+ "In chat at depth": "在對話中位於深度",
2591+ "Long-Term Memory Injection": "長期記憶注入",
2592+ "Determines where long-term messages are injected.": "決定長期訊息注入的位置。",
2593+ "Edit the long-term memory prompt": "編輯長期記憶提示",
2594+ "The max percent of the context that long-term memory can take up.": "長期記憶可佔用上下文的最大百分比。",
2595+ "Long-Term Context %": "長期記憶上下文%",
2596+ "Include long-term memory in the World Info Scan": "在世界資訊掃描中包含長期記憶",
2597+ "Misc.": "其他",
2598+ "Fill your console with debug messages": "將偵錯訊息填入主控台",
2599+ "Debug Mode": "偵錯模式",
2600+ "Display summarizations below each message": "在每則訊息下顯示摘要",
2601+ "Display Memories": "顯示記憶",
2602+ "Enable Memory in New Chats": "在新對話中啟用記憶",
2603+ "Limit Message History": "限制訊息歷史",
2604+ "Revert Settings": "還原設定",
2605+ "Auto-summarize user messages and include summaries in memory.": "自動摘要使用者訊息,並將該摘要納入記憶。",
2606+ "Auto-summarize system messages and include summaries in memory.": "自動摘要系統訊息,並將該摘要納入記憶。",
2607+ "Auto-summarize thought messages and include summaries in memory (from the Stepped Thinking extension).": "自動摘要思考訊息並將摘要納入記憶(來自 Stepped Thinking 擴充功能)。",
2608+ "Revert all settings to default (not the default profile, just the default that comes with the extension). Your other profiles won't be affected.": "將所有設定恢復為預設值(並非恢復至「預設設定檔」,而是擴充功能隨附的原始預設值)。其他設定檔將不受影響。",
2609+ "Limit the number of messages to send in regular prompts to this number (-1 for no limit). Message memories will still be sent.": "限制常規提示中傳送的訊息數量至此數值(-1 表示無限制)。訊息記憶仍將一併傳送。",
2610+ "Whether memory is enabled by default for new chats.": "是否在新對話中預設啟用記憶。",
2611+ "Summarize Chat": "摘要對話",
2612+ "Choose settings for the chat summarization. All message inclusion/exclusion settings from the main config profile are used, in addition to the following options.": "選擇聊天摘要的設定。摘要時將使用主要設定檔中的所有訊息包含/排除規則,並可額外設定以下選項。",
2613+ "Currently preparing to summarize:": "目前正在準備摘要:",
2614+ "Summarize messages with no existing summary": "摘要尚無摘要的訊息",
2615+ "Re-summarize messages with existing short-term memories": "重新摘要具有現有短期記憶的訊息",
2616+ "Re-summarize messages with existing long-term memories": "重新摘要具有現有長期記憶的訊息",
2617+ "Re-summarize messages with existing memories, but which are currently excluded from short-term and long-term memory": "重新摘要具有現有記憶,但目前被排除在短期和長期記憶之外的訊息",
2618+ "Re-summarize messages with existing memories that have been manually edited.": "重新摘要已手動編輯的訊息記憶",
2619+ "Type the folder name of the theme you want to apply.": "輸入您想套用的主題資料夾名稱。",
2620+ "Place your theme data in a folder.": "請將主題資料存於該資料夾內。",
2621+ "Unsure where to start? Type ": "不確定如何開始?輸入:",
2622+ " to apply the default Google Messages theme or click ": " 即可使用預設主題 Google Messages,或點擊",
2623+ "here": "這裡",
2624+ " to learn how to create your own theme.": " 以學習如何創建個人化主題。",
2625+ "Guinevere (UI Theme Extension)": "Guinevere(進階自定義 UI 主題)",
2626+ "and Guinaifen.": "和 Guinaifen(桂乃芬)呈獻。"
24562627}
public/script.js+521 -154
@@ -171,6 +171,7 @@ import {
171171 isElementInViewport,
172172 copyText,
173173 escapeHtml,
174+ saveBase64AsFile,
174175} from './scripts/utils.js';
175176import { debounce_timeout } from './scripts/constants.js';
176177
@@ -235,6 +236,8 @@ import {
235236 initPersonas,
236237 setPersonaDescription,
237238 initUserAvatar,
239+ updatePersonaConnectionsAvatarList,
240+ isPersonaPanelOpen,
238241} from './scripts/personas.js';
239242import { getBackgrounds, initBackgrounds, loadBackgroundSettings, background_settings } from './scripts/backgrounds.js';
240243import { hideLoader, showLoader } from './scripts/loader.js';
@@ -269,7 +272,7 @@ import { initSettingsSearch } from './scripts/setting-search.js';
269272import { initBulkEdit } from './scripts/bulk-edit.js';
270273import { deriveTemplatesFromChatTemplate } from './scripts/chat-templates.js';
271274import { getContext } from './scripts/st-context.js';
272275import { extractReasoningFromData, initReasoning, parseReasoningInSwipes, PromptReasoning, ReasoningHandler, removeReasoningFromString, updateReasoningUI } from './scripts/reasoning.js';
273276import { accountStorage } from './scripts/util/AccountStorage.js';
274277
275278// API OBJECT FOR EXTERNAL WIRING
@@ -366,6 +369,10 @@ DOMPurify.addHook('uponSanitizeElement', (node, _, config) => {
366369 return;
367370 }
368371
372+ if (!(node instanceof Element)) {
373+ return;
374+ }
375+
369376 let mediaBlocked = false;
370377
371378 switch (node.tagName) {
@@ -447,6 +454,8 @@ export const event_types = {
447454 MESSAGE_DELETED: 'message_deleted',
448455 MESSAGE_UPDATED: 'message_updated',
449456 MESSAGE_FILE_EMBEDDED: 'message_file_embedded',
457+ MESSAGE_REASONING_EDITED: 'message_reasoning_edited',
458+ MESSAGE_REASONING_DELETED: 'message_reasoning_deleted',
450459 MORE_MESSAGES_LOADED: 'more_messages_loaded',
451460 IMPERSONATE_READY: 'impersonate_ready',
452461 CHAT_CHANGED: 'chat_id_changed',
@@ -493,6 +502,8 @@ export const event_types = {
493502 // TODO: Naming convention is inconsistent with other events
494503 CHARACTER_DELETED: 'characterDeleted',
495504 CHARACTER_DUPLICATED: 'character_duplicated',
505+ CHARACTER_RENAMED: 'character_renamed',
506+ CHARACTER_RENAMED_IN_PAST_CHAT: 'character_renamed_in_past_chat',
496507 /** @deprecated The event is aliased to STREAM_TOKEN_RECEIVED. */
497508 SMOOTH_STREAM_TOKEN_RECEIVED: 'stream_token_received',
498509 STREAM_TOKEN_RECEIVED: 'stream_token_received',
@@ -507,7 +518,7 @@ export const event_types = {
507518 TOOL_CALLS_RENDERED: 'tool_calls_rendered',
508519};
509520
510521export const eventSource = new EventEmitter([event_types.APP_READY]);
511522
512523eventSource.on(event_types.CHAT_CHANGED, processChatSlashCommands);
513524
@@ -545,6 +556,10 @@ let generatedPromptCache = '';
545556let generation_started = new Date();
546557/** @type {import('./scripts/char-data.js').v1CharData[]} */
547558export let characters = [];
559+/**
560+ * Stringified index of a currently chosen entity in the characters array.
561+ * @type {string|undefined} Yes, we hate it as much as you do.
562+ */
548563export let this_chid;
549564let saveCharactersPage = 0;
550565export const default_avatar = 'img/ai4.png';
@@ -598,7 +613,6 @@ export const printCharactersDebounced = debounce(() => { printCharacters(false);
598613export const system_message_types = {
599614 HELP: 'help',
600615 WELCOME: 'welcome',
601- GROUP: 'group',
602616 EMPTY: 'empty',
603617 GENERIC: 'generic',
604618 NARRATOR: 'narrator',
@@ -691,14 +705,6 @@ async function getSystemMessages() {
691705 uses_system_ui: true,
692706 mes: await renderTemplateAsync('welcome', { displayVersion }),
693707 },
694- group: {
695- name: systemUserName,
696- force_avatar: system_avatar,
697- is_user: false,
698- is_system: true,
699- is_group: true,
700- mes: 'Group chat created. Say \'Hi\' to lovely people!',
701- },
702708 empty: {
703709 name: systemUserName,
704710 force_avatar: system_avatar,
@@ -978,7 +984,7 @@ async function firstLoadInit() {
978984 await initTokenizers();
979985 initBackgrounds();
980986 initAuthorsNote();
981987 await initPersonas();
982988 initRossMods();
983989 initStats();
984990 initCfg();
@@ -1027,12 +1033,22 @@ export function setAnimationDuration(ms = null) {
10271033 document.documentElement.style.setProperty('--animation-duration', `${animation_duration}ms`);
10281034}
10291035
1036+/**
1037+ * Sets the currently active character
1038+ * @param {object|number|string} [entityOrKey] - An entity with id property (character, group, tag), or directly an id or tag key. If not provided, the active character is reset to `null`.
1039+ */
10301040export function setActiveCharacter(entityOrKey) {
10311041 active_character = entityOrKey ? getTagKeyForEntity(entityOrKey) : null;
1042+ if (active_character) active_group = null;
10321043}
10331044
1045+/**
1046+ * Sets the currently active group.
1047+ * @param {object|number|string} [entityOrKey] - An entity with id property (character, group, tag), or directly an id or tag key. If not provided, the active group is reset to `null`.
1048+ */
10341049export function setActiveGroup(entityOrKey) {
10351050 active_group = entityOrKey ? getTagKeyForEntity(entityOrKey) : null;
1051+ if (active_group) active_character = null;
10361052}
10371053
10381054/**
@@ -1347,6 +1363,14 @@ export function resultCheckStatus() {
13471363 stopStatusLoading();
13481364}
13491365
1366+
1367+/**
1368+ * Switches the currently selected character to the one with the given ID. (character index, not the character key!)
1369+ *
1370+ * If the character ID doesn't exist, if the chat is being saved, or if a group is being generated, this function does nothing.
1371+ * If the character is different from the currently selected one, it will clear the chat and reset any selected character or group.
1372+ * @param {number} id The ID of the character to switch to.
1373+ */
13501374export async function selectCharacterById(id) {
13511375 if (characters[id] === undefined) {
13521376 return;
@@ -1361,7 +1385,7 @@ export async function selectCharacterById(id) {
13611385 return;
13621386 }
13631387
13641388 if (selected_group || String(this_chid) !== String(id)) {
13651389 //if clicked on a different character from what was currently selected
13661390 if (!is_send_press) {
13671391 await clearChat();
@@ -1369,7 +1393,7 @@ export async function selectCharacterById(id) {
13691393 resetSelectedGroup();
13701394 this_edit_mes_id = undefined;
13711395 selected_button = 'character_edit';
1372- this_chid = id;
1396+ setCharacterId(id);
13731397 chat.length = 0;
13741398 chat_metadata = {};
13751399 await getChat();
@@ -1377,6 +1401,7 @@ export async function selectCharacterById(id) {
13771401 } else {
13781402 //if clicked on character that was already selected
13791403 selected_button = 'character_edit';
1404+ await unshallowCharacter(this_chid);
13801405 select_selected_character(this_chid);
13811406 }
13821407}
@@ -1420,7 +1445,7 @@ function getCharacterBlock(item, id) {
14201445 }
14211446 // Populate the template
14221447 const template = $('#character_template .character_select').clone();
14231448 template.attr({ 'data-chid': id, 'id': `CharID${id}` });
14241449 template.find('img').attr('src', this_avatar).attr('alt', item.name);
14251450 template.find('.avatar').attr('title', `[Character] ${item.name}\nFile: ${item.avatar}`);
14261451 template.find('.ch_name').text(item.name).attr('title', `[Character] ${item.name}`);
@@ -1546,6 +1571,7 @@ export async function printCharacters(fullRefresh = false) {
15461571 });
15471572
15481573 favsToHotswap();
1574+ updatePersonaConnectionsAvatarList();
15491575}
15501576
15511577/** Checks the state of the current search, and adds/removes the search sorting option accordingly */
@@ -1758,9 +1784,7 @@ export async function getCharacters() {
17581784 const response = await fetch('/api/characters/all', {
17591785 method: 'POST',
17601786 headers: getRequestHeaders(),
17611787 body: JSON.stringify({}),
1762- '': '',
1763- }),
17641788 });
17651789 if (response.ok === true) {
17661790 characters.splice(0, characters.length);
@@ -2455,7 +2479,7 @@ export function addOneMessage(mes, { type = 'normal', insertAfter = null, scroll
24552479 timestamp: timestamp,
24562480 extra: mes.extra,
24572481 tokenCount: mes.extra?.token_count ?? 0,
24582482 ...formatGenerationTimer(mes.gen_started, mes.gen_finished, mes.extra?.token_count, mes.extra?.reasoning_duration, mes.extra?.time_to_first_token),
24592483 };
24602484
24612485 const renderedMessage = getMessageFromTemplate(params);
@@ -2576,13 +2600,14 @@ export function formatCharacterAvatar(characterAvatar) {
25762600 * @param {Date} gen_finished Date when generation was finished
25772601 * @param {number} tokenCount Number of tokens generated (0 if not available)
25782602 * @param {number?} [reasoningDuration=null] Reasoning duration (null if no reasoning was done)
2603+ * @param {number?} [timeToFirstToken=null] Time to first token
25792604 * @returns {Object} Object containing the formatted timer value and title
25802605 * @example
25812606 * const { timerValue, timerTitle } = formatGenerationTimer(gen_started, gen_finished, tokenCount);
25822607 * console.log(timerValue); // 1.2s
25832608 * console.log(timerTitle); // Generation queued: 12:34:56 7 Jan 2021\nReply received: 12:34:57 7 Jan 2021\nTime to generate: 1.2 seconds\nToken rate: 5 t/s
25842609 */
25852610function formatGenerationTimer(gen_started, gen_finished, tokenCount, reasoningDuration = null, timeToFirstToken = null) {
25862611 if (!gen_started || !gen_finished) {
25872612 return {};
25882613 }
@@ -2596,8 +2621,9 @@ function formatGenerationTimer(gen_started, gen_finished, tokenCount, reasoningD
25962621 `Generation queued: ${start.format(dateFormat)}`,
25972622 `Reply received: ${finish.format(dateFormat)}`,
25982623 `Time to generate: ${seconds} seconds`,
2624+ timeToFirstToken ? `Time to first token: ${timeToFirstToken / 1000} seconds` : '',
25992625 reasoningDuration > 0 ? `Time to think: ${reasoningDuration / 1000} seconds` : '',
26002626 tokenCount > 0 ? `Token rate: ${Number(tokenCount / seconds).toFixed(13)} t/s` : '',
26012627 ].filter(x => x).join('\n').trim();
26022628
26032629 if (isNaN(seconds) || seconds < 0) {
@@ -2692,7 +2718,16 @@ export function substituteParams(content, _name1, _name2, _original, _group, _re
26922718 environment.personality = fields.personality || '';
26932719 environment.scenario = fields.scenario || '';
26942720 environment.persona = fields.persona || '';
26952721 environment.mesExamples = fields.mesExamples() ||=> '';{
2722+ const isInstruct = power_user.instruct.enabled && main_api !== 'openai';
2723+ const mesExamplesArray = parseMesExamples(fields.mesExamples, isInstruct);
2724+ if (isInstruct) {
2725+ const instructExamples = formatInstructModeExamples(mesExamplesArray, name1, name2);
2726+ return instructExamples.join('');
2727+ }
2728+ return mesExamplesArray.join('');
2729+ };
2730+ environment.mesExamplesRaw = fields.mesExamples || '';
26962731 environment.charVersion = fields.version || '';
26972732 environment.char_version = fields.version || '';
26982733 }
@@ -3081,6 +3116,27 @@ export function getCharacterCardFields() {
30813116 return result;
30823117}
30833118
3119+/**
3120+ * Parses an examples string.
3121+ * @param {string} examplesStr
3122+ * @returns {string[]} Examples array with block heading
3123+ */
3124+export function parseMesExamples(examplesStr, isInstruct) {
3125+ if (!examplesStr || examplesStr.length === 0 || examplesStr === '<START>') {
3126+ return [];
3127+ }
3128+
3129+ if (!examplesStr.startsWith('<START>')) {
3130+ examplesStr = '<START>\n' + examplesStr.trim();
3131+ }
3132+
3133+ const exampleSeparator = power_user.context.example_separator ? `${substituteParams(power_user.context.example_separator)}\n` : '';
3134+ const blockHeading = main_api === 'openai' ? '<START>\n' : (exampleSeparator || (isInstruct ? '<START>\n' : ''));
3135+ const splitExamples = examplesStr.split(/<START>/gi).slice(1).map(block => `${blockHeading}${block.trim()}\n`);
3136+
3137+ return splitExamples;
3138+}
3139+
30843140export function isStreamingEnabled() {
30853141 const noStreamSources = [chat_completion_sources.SCALE];
30863142 return (
@@ -3113,8 +3169,9 @@ class StreamingProcessor {
31133169 * @param {boolean} forceName2 If true, force the use of name2
31143170 * @param {Date} timeStarted Date when generation was started
31153171 * @param {string} continueMessage Previous message if the type is 'continue'
3172+ * @param {PromptReasoning} promptReasoning Prompt reasoning instance
31163173 */
31173174 constructor(type, forceName2, timeStarted, continueMessage, promptReasoning) {
31183175 this.result = '';
31193176 this.messageId = -1;
31203177 /** @type {HTMLElement} */
@@ -3135,6 +3192,9 @@ class StreamingProcessor {
31353192 this.abortController = new AbortController();
31363193 this.firstMessageText = '...';
31373194 this.timeStarted = timeStarted;
3195+ /** @type {number?} */
3196+ this.timeToFirstToken = null;
3197+ this.createdAt = new Date();
31383198 this.continueMessage = type === 'continue' ? continueMessage : '';
31393199 this.swipes = [];
31403200 /** @type {import('./scripts/logprobs.js').TokenLogprobs[]} */
@@ -3142,15 +3202,27 @@ class StreamingProcessor {
31423202 this.toolCalls = [];
31433203 // Initialize reasoning in its own handler
31443204 this.reasoningHandler = new ReasoningHandler(timeStarted);
3205+ /** @type {PromptReasoning} */
3206+ this.promptReasoning = promptReasoning;
3207+ /** @type {string} */
3208+ this.image = '';
31453209 }
31463210
3147- #checkDomElements(messageId) {
3211+ /**
3212+ * Initializes DOM elements for the current message.
3213+ * @param {number} messageId Current message ID
3214+ * @param {boolean?} continueOnReasoning If continuing on reasoning
3215+ */
3216+ async #checkDomElements(messageId, continueOnReasoning = null) {
31483217 if (this.messageDom === null || this.messageTextDom === null) {
31493218 this.messageDom = document.querySelector(`#chat .mes[mesid="${messageId}"]`);
31503219 this.messageTextDom = this.messageDom?.querySelector('.mes_text');
31513220 this.messageTimerDom = this.messageDom?.querySelector('.mes_timer');
31523221 this.messageTokenCounterDom = this.messageDom?.querySelector('.tokenCounterDisplay');
31533222 }
3223+ if (continueOnReasoning) {
3224+ await this.reasoningHandler.process(messageId, false, this.promptReasoning);
3225+ }
31543226 this.reasoningHandler.updateDom(messageId);
31553227 }
31563228
@@ -3170,15 +3242,20 @@ class StreamingProcessor {
31703242 }
31713243
31723244 async onStartStreaming(text) {
3245+ const continueOnReasoning = !!(this.type === 'continue' && this.promptReasoning.prefixReasoning);
3246+ if (continueOnReasoning) {
3247+ this.reasoningHandler.initContinue(this.promptReasoning);
3248+ }
3249+
31733250 let messageId = -1;
31743251
31753252 if (this.type == 'impersonate') {
31763253 this.sendTextarea.value = '';
31773254 this.sendTextarea.dispatchEvent(new Event('input', { bubbles: true }));
31783255 } else {
31793256 await saveReply({ type: this.type, text,getMessage: truetext, '',fromStreaming: [],true ''});
31803257 messageId = chat.length - 1;
31813258 await this.#checkDomElements(messageId, continueOnReasoning);
31823259 this.markUIGenStarted();
31833260 }
31843261 hideSwipeButtons();
@@ -3211,7 +3288,7 @@ class StreamingProcessor {
32113288 this.sendTextarea.dispatchEvent(new Event('input', { bubbles: true }));
32123289 } else {
32133290 const mesChanged = chat[messageId]['mes'] !== processedText;
32143291 await this.#checkDomElements(messageId);
32153292 this.#updateMessageBlockVisibility();
32163293 const currentTime = new Date();
32173294 chat[messageId]['mes'] = processedText;
@@ -3220,9 +3297,11 @@ class StreamingProcessor {
32203297 if (!chat[messageId]['extra']) {
32213298 chat[messageId]['extra'] = {};
32223299 }
3300+ chat[messageId]['extra']['time_to_first_token'] = this.timeToFirstToken;
32233301
32243302 // Update reasoning
32253303 await this.reasoningHandler.process(messageId, mesChanged, this.promptReasoning);
3304+ processedText = chat[messageId]['mes'];
32263305
32273306 // Token count update.
32283307 const tokenCountText = this.reasoningHandler.reasoning + processedText;
@@ -3236,7 +3315,12 @@ class StreamingProcessor {
32363315
32373316 if ((this.type == 'swipe' || this.type === 'continue') && Array.isArray(chat[messageId]['swipes'])) {
32383317 chat[messageId]['swipes'][chat[messageId]['swipe_id']] = processedText;
3239- chat[messageId]['swipe_info'][chat[messageId]['swipe_id']] = { 'send_date': chat[messageId]['send_date'], 'gen_started': chat[messageId]['gen_started'], 'gen_finished': chat[messageId]['gen_finished'], 'extra': JSON.parse(JSON.stringify(chat[messageId]['extra'])) };
3318+ chat[messageId]['swipe_info'][chat[messageId]['swipe_id']] = {
3319+ 'send_date': chat[messageId]['send_date'],
3320+ 'gen_started': chat[messageId]['gen_started'],
3321+ 'gen_finished': chat[messageId]['gen_finished'],
3322+ 'extra': JSON.parse(JSON.stringify(chat[messageId]['extra'])),
3323+ };
32403324 }
32413325
32423326 const formattedText = messageFormatting(
@@ -3252,7 +3336,7 @@ class StreamingProcessor {
32523336 this.messageTextDom.innerHTML = formattedText;
32533337 }
32543338
32553339 const timePassed = formatGenerationTimer(this.timeStarted, currentTime, currentTokenCount, this.reasoningHandler.getDuration(), this.timeToFirstToken);
32563340 if (this.messageTimerDom instanceof HTMLElement) {
32573341 this.messageTimerDom.textContent = timePassed.timerValue;
32583342 this.messageTimerDom.title = timePassed.timerTitle;
@@ -3275,26 +3359,35 @@ class StreamingProcessor {
32753359
32763360 if (Array.isArray(this.swipes) && this.swipes.length > 0) {
32773361 const message = chat[messageId];
3362+ const swipeInfoExtra = structuredClone(message.extra ?? {});
3363+ delete swipeInfoExtra.token_count;
3364+ delete swipeInfoExtra.reasoning;
3365+ delete swipeInfoExtra.reasoning_duration;
32783366 const swipeInfo = {
32793367 send_date: message.send_date,
32803368 gen_started: message.gen_started,
32813369 gen_finished: message.gen_finished,
32823370 extra: structuredClone(message.extra)swipeInfoExtra,
32833371 };
3284- const swipeInfoArray = [];
3372+ const swipeInfoArray = Array(this.swipes.length).fill().map(() => structuredClone(swipeInfo));
3285- swipeInfoArray.length = this.swipes.length;
3373+ parseReasoningInSwipes(this.swipes, swipeInfoArray, message.extra?.reasoning_duration);
3286- swipeInfoArray.fill(swipeInfo);
32873374 chat[messageId].swipes.push(...this.swipes);
32883375 chat[messageId].swipe_info.push(...swipeInfoArray);
32893376 }
32903377
3378+ if (this.image) {
3379+ await processImageAttachment(chat[messageId], { imageUrl: this.image, parsedImage: null });
3380+ appendMediaToMessage(chat[messageId], $(this.messageDom));
3381+ }
3382+
32913383 if (this.type !== 'impersonate') {
32923384 await eventSource.emit(event_types.MESSAGE_RECEIVED, this.messageId, this.type);
32933385 await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, this.messageId, this.type);
32943386 } else {
32953387 await eventSource.emit(event_types.IMPERSONATE_READY, text);
32963388 }
32973389
3390+ syncMesToSwipe(messageId);
32983391 saveLogprobsForActiveMessage(this.messageLogprobs.filter(Boolean), this.continueMessage);
32993392 await saveChatConditional();
33003393 unblockGeneration();
@@ -3318,8 +3411,8 @@ class StreamingProcessor {
33183411
33193412 const noEmitTypes = ['swipe', 'impersonate', 'continue'];
33203413 if (!noEmitTypes.includes(this.type)) {
33213414 eventSource.emit(event_types.MESSAGE_RECEIVED, this.messageId, this.type);
33223415 eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, this.messageId, this.type);
33233416 }
33243417 }
33253418
@@ -3327,7 +3420,12 @@ class StreamingProcessor {
33273420 if (this.type !== 'swipe' && this.type !== 'impersonate') {
33283421 if (Array.isArray(chat[messageId]['swipes']) && chat[messageId]['swipes'].length === 1 && chat[messageId]['swipe_id'] === 0) {
33293422 chat[messageId]['swipes'][0] = chat[messageId]['mes'];
3330- chat[messageId]['swipe_info'][0] = { 'send_date': chat[messageId]['send_date'], 'gen_started': chat[messageId]['gen_started'], 'gen_finished': chat[messageId]['gen_finished'], 'extra': JSON.parse(JSON.stringify(chat[messageId]['extra'])) };
3423+ chat[messageId]['swipe_info'][0] = {
3424+ 'send_date': chat[messageId]['send_date'],
3425+ 'gen_started': chat[messageId]['gen_started'],
3426+ 'gen_finished': chat[messageId]['gen_finished'],
3427+ 'extra': JSON.parse(JSON.stringify(chat[messageId]['extra'])),
3428+ };
33313429 }
33323430 }
33333431 }
@@ -3361,7 +3459,11 @@ class StreamingProcessor {
33613459 const sw = new Stopwatch(1000 / power_user.streaming_fps);
33623460 const timestamps = [];
33633461 for await (const { text, swipes, logprobs, toolCalls, state } of this.generator()) {
33643462 timestamps.push(const now = Date.now());
3463+ timestamps.push(now);
3464+ if (!this.timeToFirstToken) {
3465+ this.timeToFirstToken = now - this.createdAt.getTime();
3466+ }
33653467 if (this.isStopped || this.abortController.signal.aborted) {
33663468 return this.result;
33673469 }
@@ -3373,7 +3475,8 @@ class StreamingProcessor {
33733475 this.messageLogprobs.push(...(Array.isArray(logprobs) ? logprobs : [logprobs]));
33743476 }
33753477 // Get the updated reasoning string into the handler
33763478 this.reasoningHandler.updateReasoning(this.messageId, state?.reasoning ?? '');
3479+ this.image = state?.image ?? '';
33773480 await eventSource.emit(event_types.STREAM_TOKEN_RECEIVED, text);
33783481 await sw.tick(async () => await this.onProgressStreaming(this.messageId, this.continueMessage + text));
33793482 }
@@ -3628,6 +3731,9 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
36283731 setGenerationProgress(0);
36293732 generation_started = new Date();
36303733
3734+ // Prevent generation from shallow characters
3735+ await unshallowCharacter(this_chid);
3736+
36313737 // Occurs every time, even if the generation is aborted due to slash commands execution
36323738 await eventSource.emit(event_types.GENERATION_STARTED, type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage }, dryRun);
36333739
@@ -3843,7 +3949,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
38433949 coreChat = await Promise.all(coreChat.map(async (chatItem, index) => {
38443950 let message = chatItem.mes;
38453951 let regexType = chatItem.is_user ? regex_placement.USER_INPUT : regex_placement.AI_OUTPUT;
38463952 let options = { isPrompt: true, depth: (coreChat.length - index - (isContinue ? 2 : 1)) };
38473953
38483954 let regexedMessage = getRegexedString(message, regexType, options);
38493955 regexedMessage = await appendFileContent(chatItem, regexedMessage);
@@ -3859,13 +3965,13 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
38593965 };
38603966 }));
38613967
38623968 const reasoningpromptReasoning = new PromptReasoning();
38633969 for (let i = coreChat.length - 1; i >= 0; i--) {
38643970 const depth = coreChat.length - i - (isContinue ? 2 : 1);
38653971 const isPrefix = isContinue && i === coreChat.length - 1;
38663972 coreChat[i] = {
38673973 ...coreChat[i],
38683974 mes: reasoningpromptReasoning.addToMessage(
38693975 coreChat[i].mes,
38703976 getRegexedString(
38713977 String(coreChat[i].extra?.reasoning ?? ''),
@@ -3873,9 +3979,10 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
38733979 { isPrompt: true, depth: depth },
38743980 ),
38753981 isPrefix,
3982+ coreChat[i].extra?.reasoning_duration,
38763983 ),
38773984 };
38783985 if (reasoningpromptReasoning.isLimitReached()) {
38793986 break;
38803987 }
38813988 }
@@ -3939,29 +4046,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
39394046 force_name2 = false;
39404047 }
39414048
3942- // TODO (kingbri): Migrate to a utility function
4049+ let mesExamplesArray = parseMesExamples(mesExamples, isInstruct);
3943- /**
3944- * Parses an examples string.
3945- * @param {string} examplesStr
3946- * @returns {string[]} Examples array with block heading
3947- */
3948- function parseMesExamples(examplesStr) {
3949- if (!examplesStr || examplesStr.length === 0 || examplesStr === '<START>') {
3950- return [];
3951- }
3952-
3953- if (!examplesStr.startsWith('<START>')) {
3954- examplesStr = '<START>\n' + examplesStr.trim();
3955- }
3956-
3957- const exampleSeparator = power_user.context.example_separator ? `${substituteParams(power_user.context.example_separator)}\n` : '';
3958- const blockHeading = main_api === 'openai' ? '<START>\n' : (exampleSeparator || (isInstruct ? '<START>\n' : ''));
3959- const splitExamples = examplesStr.split(/<START>/gi).slice(1).map(block => `${blockHeading}${block.trim()}\n`);
3960-
3961- return splitExamples;
3962- }
3963-
3964- let mesExamplesArray = parseMesExamples(mesExamples);
39654050
39664051 //////////////////////////////////
39674052 // Extension added strings
@@ -3986,7 +4071,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
39864071 }
39874072
39884073 const formattedExample = baseChatReplace(exampleMessage, name1, name2);
39894074 const cleanedExample = parseMesExamples(formattedExample, isInstruct);
39904075
39914076 // Insert depending on before or after position
39924077 if (example.position === wi_anchor_position.before) {
@@ -4700,7 +4785,8 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
47004785 console.debug(`pushed prompt bits to itemizedPrompts array. Length is now: ${itemizedPrompts.length}`);
47014786
47024787 if (isStreamingEnabled() && type !== 'quiet') {
4703- streamingProcessor = new StreamingProcessor(type, force_name2, generation_started, continue_mag);
4788+ continue_mag = promptReasoning.removePrefix(continue_mag);
4789+ streamingProcessor = new StreamingProcessor(type, force_name2, generation_started, continue_mag, promptReasoning);
47044790 if (isContinue) {
47054791 // Save reply does add cycle text to the prompt, so it's not needed here
47064792 streamingProcessor.firstMessageText = '';
@@ -4789,6 +4875,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
47894875 let getMessage = extractMessageFromData(data);
47904876 let title = extractTitleFromData(data);
47914877 let reasoning = extractReasoningFromData(data);
4878+ let imageUrl = extractImageFromData(data);
47924879 kobold_horde_model = title;
47934880
47944881 const swipes = extractMultiSwipes(data, type);
@@ -4801,6 +4888,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
48014888 }
48024889
48034890 if (isContinue) {
4891+ continue_mag = promptReasoning.removePrefix(continue_mag);
48044892 getMessage = continue_mag + getMessage;
48054893 }
48064894
@@ -4820,10 +4908,10 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
48204908 else {
48214909 // Without streaming we'll be having a full message on continuation. Treat it as a last chunk.
48224910 if (originalType !== 'continue') {
48234911 ({ type, getMessage } = await saveReply({ type, getMessage, false, title, swipes, reasoning, imageUrl }));
48244912 }
48254913 else {
48264914 ({ type, getMessage } = await saveReply({ type: 'appendFinal', getMessage, false, title, swipes, reasoning, imageUrl }));
48274915 }
48284916
48294917 // This relies on `saveReply` having been called to add the message to the chat, so it must be last.
@@ -5290,7 +5378,7 @@ function addChatsSeparator(mesSendString) {
52905378}
52915379
52925380async function duplicateCharacter() {
52935381 if (this_chid === undefined || !characters[this_chid]) {
52945382 toastr.warning(t`You must first select a character to duplicate!`);
52955383 return '';
52965384 }
@@ -5624,7 +5712,7 @@ export async function sendStreamingRequest(type, data) {
56245712 * @returns {string} Generation URL
56255713 * @throws {Error} If the API is unknown
56265714 */
56275715export function getGenerateUrl(api) {
56285716 switch (api) {
56295717 case 'kobold':
56305718 return '/api/backends/kobold/generate';
@@ -5648,6 +5736,32 @@ function extractTitleFromData(data) {
56485736}
56495737
56505738/**
5739+ * Extracts the image from the response data.
5740+ * @param {object} data Response data
5741+ * @param {object} [options] Extraction options
5742+ * @param {string} [options.mainApi] Main API to use
5743+ * @param {string} [options.chatCompletionSource] Chat completion source
5744+ * @returns {string} Extracted image
5745+ */
5746+function extractImageFromData(data, { mainApi = null, chatCompletionSource = null } = {}) {
5747+ switch (mainApi ?? main_api) {
5748+ case 'openai': {
5749+ switch (chatCompletionSource ?? oai_settings.chat_completion_source) {
5750+ case chat_completion_sources.MAKERSUITE: {
5751+ const inlineData = data?.responseContent?.parts?.find(x => x.inlineData)?.inlineData;
5752+ if (inlineData) {
5753+ return `data:${inlineData.mimeType};base64,${inlineData.data}`;
5754+ }
5755+ } break;
5756+
5757+ }
5758+ } break;
5759+ }
5760+
5761+ return undefined;
5762+}
5763+
5764+/**
56515765 * parseAndSaveLogprobs receives the full data response for a non-streaming
56525766 * generation, parses logprobs for all tokens in the message, and saves them
56535767 * to the currently active message.
@@ -5692,14 +5806,15 @@ function parseAndSaveLogprobs(data, continueFrom) {
56925806/**
56935807 * Extracts the message from the response data.
56945808 * @param {object} data Response data
5809+ * @param {string} activeApi If it's set, ignores active API
56955810 * @returns {string} Extracted message
56965811 */
56975812export function extractMessageFromData(data, activeApi = null) {
56985813 if (typeof data === 'string') {
56995814 return data;
57005815 }
57015816
57025817 switch (activeApi ?? main_api) {
57035818 case 'kobold':
57045819 return data.results[0].text;
57055820 case 'koboldhorde':
@@ -5709,7 +5824,7 @@ function extractMessageFromData(data) {
57095824 case 'novel':
57105825 return data.output;
57115826 case 'openai':
57125827 return data?.content?.find(p => p.type === 'text')?.text ?? data?.choices?.[0]?.message?.content ?? data?.choices?.[0]?.text ?? data?.text ?? data?.message?.content?.[0]?.text ?? data?.message?.tool_plan ?? '';
57135828 default:
57145829 return '';
57155830 }
@@ -5888,14 +6003,66 @@ export function cleanUpMessage(getMessage, isImpersonate, isContinue, displayInc
58886003 getMessage = trimToEndSentence(getMessage);
58896004 }
58906005
58916006 if (power_user.trim_spaces && !PromptReasoning.getLatestPrefix()) {
58926007 getMessage = getMessage.trim();
58936008 }
58946009
58956010 return getMessage;
58966011}
58976012
5898-export async function saveReply(type, getMessage, fromStreaming, title, swipes, reasoning) {
6013+/**
6014+ * Adds an image to the message.
6015+ * @param {object} message Message object
6016+ * @param {object} sources Image sources
6017+ * @param {ParsedImage} [sources.parsedImage] Parsed image
6018+ * @param {string} [sources.imageUrl] Image URL
6019+ *
6020+ * @returns {Promise<void>}
6021+ */
6022+async function processImageAttachment(message, { parsedImage, imageUrl }) {
6023+ if (parsedImage?.image) {
6024+ saveImageToMessage(parsedImage, message);
6025+ return;
6026+ }
6027+
6028+ if (!imageUrl) {
6029+ return;
6030+ }
6031+
6032+ let url = imageUrl;
6033+ if (isDataURL(url)) {
6034+ const fileName = `inline_image_${Date.now().toString()}`;
6035+ const [mime, base64] = /^data:(.*?);base64,(.*)$/.exec(imageUrl).slice(1);
6036+ url = await saveBase64AsFile(base64, message.name, fileName, mime.split('/')[1]);
6037+ }
6038+ saveImageToMessage({ image: url, inline: true }, message);
6039+}
6040+
6041+/**
6042+ * Saves a resulting message to the chat.
6043+ * @param {SaveReplyParams} params
6044+ * @returns {Promise<SaveReplyResult>} Promise when the message is saved
6045+ *
6046+ * @typedef {object} SaveReplyParams
6047+ * @property {string} type Type of generation
6048+ * @property {string} getMessage Generated message
6049+ * @property {boolean} [fromStreaming] If the message is from streaming
6050+ * @property {string} [title] Message tooltip
6051+ * @property {string[]} [swipes] Extra swipes
6052+ * @property {string} [reasoning] Message reasoning
6053+ * @property {string} [imageUrl] Link to an image
6054+ *
6055+ * @typedef {object} SaveReplyResult
6056+ * @property {string} type Type of generation
6057+ * @property {string} getMessage Generated message
6058+ */
6059+export async function saveReply({ type, getMessage, fromStreaming = false, title = '', swipes = [], reasoning = '', imageUrl = '' }) {
6060+ // Backward compatibility
6061+ if (arguments.length > 1 && typeof arguments[0] !== 'object') {
6062+ console.trace('saveReply called with positional arguments. Please use an object instead.');
6063+ [type, getMessage, fromStreaming, title, swipes, reasoning, imageUrl] = arguments;
6064+ }
6065+
58996066 if (type != 'append' && type != 'continue' && type != 'appendFinal' && chat.length && (chat[chat.length - 1]['swipe_id'] === undefined ||
59006067 chat[chat.length - 1]['is_user'])) {
59016068 type = 'normal';
@@ -5916,8 +6083,8 @@ export async function saveReply(type, getMessage, fromStreaming, title, swipes,
59166083
59176084 let oldMessage = '';
59186085 const generationFinished = new Date();
59196086 const imgparsedImage = extractImageFromMessage(getMessage);
59206087 getMessage = imgparsedImage.getMessage;
59216088 if (type === 'swipe') {
59226089 oldMessage = chat[chat.length - 1]['mes'];
59236090 chat[chat.length - 1]['swipes'].length++;
@@ -5931,14 +6098,15 @@ export async function saveReply(type, getMessage, fromStreaming, title, swipes,
59316098 chat[chat.length - 1]['extra']['model'] = getGeneratingModel();
59326099 chat[chat.length - 1]['extra']['reasoning'] = reasoning;
59336100 chat[chat.length - 1]['extra']['reasoning_duration'] = null;
6101+ await processImageAttachment(chat[chat.length - 1], { parsedImage, imageUrl });
59346102 if (power_user.message_token_count_enabled) {
59356103 const tokenCountText = (reasoning || '') + chat[chat.length - 1]['mes'];
59366104 chat[chat.length - 1]['extra']['token_count'] = await getTokenCountAsync(tokenCountText, 0);
59376105 }
59386106 const chat_id = (chat.length - 1);
59396107 await eventSource.emit(event_types.MESSAGE_RECEIVED, chat_id, type);
59406108 addOneMessage(chat[chat_id], { type: 'swipe' });
59416109 await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, chat_id, type);
59426110 } else {
59436111 chat[chat.length - 1]['mes'] = getMessage;
59446112 }
@@ -5954,14 +6122,15 @@ export async function saveReply(type, getMessage, fromStreaming, title, swipes,
59546122 chat[chat.length - 1]['extra']['model'] = getGeneratingModel();
59556123 chat[chat.length - 1]['extra']['reasoning'] = reasoning;
59566124 chat[chat.length - 1]['extra']['reasoning_duration'] = null;
6125+ await processImageAttachment(chat[chat.length - 1], { parsedImage, imageUrl });
59576126 if (power_user.message_token_count_enabled) {
59586127 const tokenCountText = (reasoning || '') + chat[chat.length - 1]['mes'];
59596128 chat[chat.length - 1]['extra']['token_count'] = await getTokenCountAsync(tokenCountText, 0);
59606129 }
59616130 const chat_id = (chat.length - 1);
59626131 await eventSource.emit(event_types.MESSAGE_RECEIVED, chat_id, type);
59636132 addOneMessage(chat[chat_id], { type: 'swipe' });
59646133 await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, chat_id, type);
59656134 } else if (type === 'appendFinal') {
59666135 oldMessage = chat[chat.length - 1]['mes'];
59676136 console.debug('Trying to appendFinal.');
@@ -5973,15 +6142,16 @@ export async function saveReply(type, getMessage, fromStreaming, title, swipes,
59736142 chat[chat.length - 1]['extra']['api'] = getGeneratingApi();
59746143 chat[chat.length - 1]['extra']['model'] = getGeneratingModel();
59756144 chat[chat.length - 1]['extra']['reasoning'] += reasoning;
6145+ await processImageAttachment(chat[chat.length - 1], { parsedImage, imageUrl });
59766146 // We don't know if the reasoning duration extended, so we don't update it here on purpose.
59776147 if (power_user.message_token_count_enabled) {
59786148 const tokenCountText = (reasoning || '') + chat[chat.length - 1]['mes'];
59796149 chat[chat.length - 1]['extra']['token_count'] = await getTokenCountAsync(tokenCountText, 0);
59806150 }
59816151 const chat_id = (chat.length - 1);
59826152 await eventSource.emit(event_types.MESSAGE_RECEIVED, chat_id, type);
59836153 addOneMessage(chat[chat_id], { type: 'swipe' });
59846154 await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, chat_id, type);
59856155
59866156 } else {
59876157 console.debug('entering chat update routine for non-swipe post');
@@ -6018,12 +6188,12 @@ export async function saveReply(type, getMessage, fromStreaming, title, swipes,
60186188 chat[chat.length - 1]['extra']['gen_id'] = group_generation_id;
60196189 }
60206190
60216191 saveImageToMessage(img,await processImageAttachment(chat[chat.length - 1], { parsedImage, imageUrl: imageUrl });
60226192 const chat_id = (chat.length - 1);
60236193
60246194 !fromStreaming && await eventSource.emit(event_types.MESSAGE_RECEIVED, chat_id, type);
60256195 addOneMessage(chat[chat_id]);
60266196 !fromStreaming && await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, chat_id, type);
60276197 }
60286198
60296199 const item = chat[chat.length - 1];
@@ -6052,15 +6222,18 @@ export async function saveReply(type, getMessage, fromStreaming, title, swipes,
60526222 }
60536223
60546224 if (Array.isArray(swipes) && swipes.length > 0) {
6225+ const swipeInfoExtra = structuredClone(item.extra ?? {});
6226+ delete swipeInfoExtra.token_count;
6227+ delete swipeInfoExtra.reasoning;
6228+ delete swipeInfoExtra.reasoning_duration;
60556229 const swipeInfo = {
60566230 send_date: item.send_date,
60576231 gen_started: item.gen_started,
60586232 gen_finished: item.gen_finished,
60596233 extra: structuredClone(item.extra)swipeInfoExtra,
60606234 };
6061- const swipeInfoArray = [];
6235+ const swipeInfoArray = Array(swipes.length).fill().map(() => structuredClone(swipeInfo));
6062- swipeInfoArray.length = swipes.length;
6236+ parseReasoningInSwipes(swipes, swipeInfoArray, item.extra?.reasoning_duration);
6063- swipeInfoArray.fill(swipeInfo, 0, swipes.length);
60646237 item.swipes.push(...swipes);
60656238 item.swipe_info.push(...swipeInfoArray);
60666239 }
@@ -6069,19 +6242,64 @@ export async function saveReply(type, getMessage, fromStreaming, title, swipes,
60696242 return { type, getMessage };
60706243}
60716244
6072-export function syncCurrentSwipeInfoExtras() {
6245+/**
6246+ * Syncs the current message and all its data into the swipe data at the given message ID (or the last message if no ID is given).
6247+ *
6248+ * If the swipe data is invalid in some way, this function will exit out without doing anything.
6249+ * @param {number?} [messageId=null] - The ID of the message to sync with the swipe data. If no ID is given, the last message is used.
6250+ * @returns {boolean} Whether the message was successfully synced
6251+ */
6252+export function syncMesToSwipe(messageId = null) {
60736253 if (!chat.length) {
60746254 return false;
60756255 }
6076- const currentMessage = chat[chat.length - 1];
6256+
6077- if (currentMessage && Array.isArray(currentMessage.swipe_info) && typeof currentMessage.swipe_id === 'number') {
6257+ const targetMessageId = messageId ?? chat.length - 1;
6078- const swipeInfo = currentMessage.swipe_info[currentMessage.swipe_id];
6258+ if (targetMessageId >= chat.length || targetMessageId < 0) {
6079- if (swipeInfo && typeof swipeInfo === 'object') {
6259+ console.warn(`[syncMesToSwipe] Invalid message ID: ${messageId}`);
6080- swipeInfo.extra = structuredClone(currentMessage.extra);
6260+ return false;
60816261 }
6262+
6263+ const targetMessage = chat[targetMessageId];
6264+
6265+ if (!targetMessage) {
6266+ return false;
60826267 }
6268+
6269+ // No swipe data there yet, exit out
6270+ if (typeof targetMessage.swipe_id !== 'number') {
6271+ return false;
6272+ }
6273+ // If swipes structure is invalid, exit out (for now?)
6274+ if (!Array.isArray(targetMessage.swipe_info) || !Array.isArray(targetMessage.swipes)) {
6275+ return false;
6276+ }
6277+ // If the swipe is not present yet, exit out (will likely be copied later)
6278+ if (!targetMessage.swipes[targetMessage.swipe_id] || !targetMessage.swipe_info[targetMessage.swipe_id]) {
6279+ return false;
6280+ }
6281+
6282+ const targetSwipeInfo = targetMessage.swipe_info[targetMessage.swipe_id];
6283+ if (typeof targetSwipeInfo !== 'object') {
6284+ return false;
6285+ }
6286+
6287+ targetMessage.swipes[targetMessage.swipe_id] = targetMessage.mes;
6288+
6289+ targetSwipeInfo.send_date = targetMessage.send_date;
6290+ targetSwipeInfo.gen_started = targetMessage.gen_started;
6291+ targetSwipeInfo.gen_finished = targetMessage.gen_finished;
6292+ targetSwipeInfo.extra = structuredClone(targetMessage.extra);
6293+
6294+ return true;
60836295}
60846296
6297+/**
6298+ * Saves the image to the message object.
6299+ * @param {ParsedImage} img Image object
6300+ * @param {object} mes Chat message object
6301+ * @typedef {{ image?: string, title?: string, inline?: boolean }} ParsedImage
6302+ */
60856303function saveImageToMessage(img, mes) {
60866304 if (mes && img.image) {
60876305 if (!mes.extra || typeof mes.extra !== 'object') {
@@ -6089,6 +6307,7 @@ function saveImageToMessage(img, mes) {
60896307 }
60906308 mes.extra.image = img.image;
60916309 mes.extra.title = img.title;
6310+ mes.extra.inline_image = img.inline;
60926311 }
60936312}
60946313
@@ -6131,7 +6350,7 @@ function extractImageFromMessage(getMessage) {
61316350 const image = results ? results[1] : '';
61326351 const title = results ? results[2] : '';
61336352 getMessage = getMessage.replace(regex, '');
61346353 return { getMessage, image, title, inline: true };
61356354}
61366355
61376356/**
@@ -6155,7 +6374,7 @@ export function resetChatState() {
61556374 // replaces deleted charcter name with system user since it will be displayed next.
61566375 name2 = (this_chid === undefined && neutralCharacterName) ? neutralCharacterName : systemUserName;
61576376 //unsets expected chid before reloading (related to getCharacters/printCharacters from using old arrays)
6158- this_chid = undefined;
6377+ setCharacterId(undefined);
61596378 // sets up system user to tell user about having deleted a character
61606379 chat.splice(0, chat.length, ...SAFETY_CHAT);
61616380 // resets chat metadata
@@ -6178,8 +6397,29 @@ export function setExternalAbortController(controller) {
61786397 abortController = controller;
61796398}
61806399
6400+/**
6401+ * Sets a character array index.
6402+ * @param {number|string|undefined} value
6403+ */
61816404export function setCharacterId(value) {
6182- this_chid = value;
6405+ switch (typeof value) {
6406+ case 'bigint':
6407+ case 'number':
6408+ this_chid = String(value);
6409+ break;
6410+ case 'string':
6411+ this_chid = !isNaN(parseInt(value)) ? value : undefined;
6412+ break;
6413+ case 'object':
6414+ this_chid = characters.indexOf(value) !== -1 ? String(characters.indexOf(value)) : undefined;
6415+ break;
6416+ case 'undefined':
6417+ this_chid = undefined;
6418+ break;
6419+ default:
6420+ console.error('Invalid character ID type:', value);
6421+ break;
6422+ }
61836423}
61846424
61856425export function setCharacterName(value) {
@@ -6207,6 +6447,23 @@ export function setSendButtonState(value) {
62076447 is_send_press = value;
62086448}
62096449
6450+/**
6451+ * Renames the currently selected character, updating relevant references and optionally renaming past chats.
6452+ *
6453+ * If no name is provided, a popup prompts for a new name. If the new name matches the current name,
6454+ * the renaming process is aborted. The function sends a request to the server to rename the character
6455+ * and handles updates to other related fields such as tags, lore, and author notes.
6456+ *
6457+ * If the renaming is successful, the character list is reloaded and the renamed character is selected.
6458+ * Optionally, past chats can be renamed to reflect the new character name.
6459+ *
6460+ * @param {string?} [name=null] - The new name for the character. If not provided, a popup will prompt for it.
6461+ * @param {object} [options] - Additional options.
6462+ * @param {boolean} [options.silent=false] - If true, suppresses popups and warnings.
6463+ * @param {boolean?} [options.renameChats=null] - If true, renames past chats to reflect the new character name.
6464+ * @returns {Promise<boolean>} - Returns true if the character was successfully renamed, false otherwise.
6465+ */
6466+
62106467export async function renameCharacter(name = null, { silent = false, renameChats = null } = {}) {
62116468 if (!name && silent) {
62126469 toastr.warning(t`No character name provided.`, t`Rename Character`);
@@ -6241,9 +6498,35 @@ export async function renameCharacter(name = null, { silent = false, renameChats
62416498 const data = await response.json();
62426499 const newAvatar = data.avatar;
62436500
6244- // Replace tags list
6501+ const oldName = getCharaFilename(null, { manualAvatarKey: oldAvatar });
6502+ const newName = getCharaFilename(null, { manualAvatarKey: newAvatar });
6503+
6504+ // Replace other auxillery fields where was referenced by avatar key
6505+ // Tag List
62456506 renameTagKey(oldAvatar, newAvatar);
62466507
6508+ // Addtional lore books
6509+ const charLore = world_info.charLore?.find(x => x.name == oldName);
6510+ if (charLore) {
6511+ charLore.name = newName;
6512+ saveSettingsDebounced();
6513+ }
6514+
6515+ // Char-bound Author's Notes
6516+ const charNote = extension_settings.note.chara?.find(x => x.name == oldName);
6517+ if (charNote) {
6518+ charNote.name = newName;
6519+ saveSettingsDebounced();
6520+ }
6521+
6522+ // Update active character, if the current one was the currently active one
6523+ if (active_character === oldAvatar) {
6524+ active_character = newAvatar;
6525+ saveSettingsDebounced();
6526+ }
6527+
6528+ await eventSource.emit(event_types.CHARACTER_RENAMED, oldAvatar, newAvatar);
6529+
62476530 // Reload characters list
62486531 await getCharacters();
62496532
@@ -6252,25 +6535,30 @@ export async function renameCharacter(name = null, { silent = false, renameChats
62526535
62536536 if (newChId !== -1) {
62546537 // Select the character after the renaming
6255- this_chid = -1;
6538+ setCharacterId(undefined);
62566539 await selectCharacterById(String(newChId));
62576540
62586541 // Async delay to update UI
62596542 await delay(1);
62606543
62616544 if (this_chid === -1undefined) {
62626545 throw new Error('New character not selected');
62636546 }
62646547
62656548 // Also rename as a group member
62666549 await renameGroupMember(oldAvatar, newAvatar, newValue);
62676550 const renamePastChatsConfirm = renameChats !== null ? renameChats
6268- : silent ? false : await callPopup(`<h3>Character renamed!</h3>
6551+ ? renameChats
6269- <p>Past chats will still contain the old character name. Would you like to update the character name in previous chats as well?</p>
6552+ : silent
6270- <i><b>Sprites folder (if any) should be renamed manually.</b></i>`, 'confirm');
6553+ ? false
6554+ : await Popup.show.confirm(
6555+ t`Character renamed!`,
6556+ `<p>${t`Past chats will still contain the old character name. Would you like to update the character name in previous chats as well?`}</p>
6557+ <i><b>${t`Sprites folder (if any) should be renamed manually.`}</b></i>`,
6558+ ) == POPUP_RESULT.AFFIRMATIVE;
62716559
62726560 if (renamePastChatsConfirm) {
62736561 await renamePastChats(oldAvatar, newAvatar, newValue);
62746562 await reloadCurrentChat();
62756563 toastr.success(t`Character renamed and past chats updated!`, t`Rename Character`);
62766564 } else {
@@ -6287,7 +6575,7 @@ export async function renameCharacter(name = null, { silent = false, renameChats
62876575 }
62886576 catch (error) {
62896577 // Reloading to prevent data corruption
62906578 if (!silent) await callPopupPopup.show.text(t`Rename Character`, t`Something went wrong. The page will be reloaded.`, 'text');
62916579 else toastr.error(t`Something went wrong. The page will be reloaded.`, t`Rename Character`);
62926580
62936581 console.log('Renaming character error:', error);
@@ -6298,7 +6586,7 @@ export async function renameCharacter(name = null, { silent = false, renameChats
62986586 return true;
62996587}
63006588
63016589async function renamePastChats(oldAvatar, newAvatar, newValuenewName) {
63026590 const pastChats = await getPastCharacterChats();
63036591
63046592 for (const { file_name } of pastChats) {
@@ -6308,7 +6596,7 @@ async function renamePastChats(newAvatar, newValue) {
63086596 method: 'POST',
63096597 headers: getRequestHeaders(),
63106598 body: JSON.stringify({
63116599 ch_name: newValuenewName,
63126600 file_name: fileNameWithoutExtension,
63136601 avatar_url: newAvatar,
63146602 }),
@@ -6324,15 +6612,17 @@ async function renamePastChats(newAvatar, newValue) {
63246612 }
63256613
63266614 if (message.name !== undefined) {
63276615 message.name = newValuenewName;
63286616 }
63296617 }
63306618
6619+ await eventSource.emit(event_types.CHARACTER_RENAMED_IN_PAST_CHAT, currentChat, oldAvatar, newAvatar);
6620+
63316621 const saveChatResponse = await fetch('/api/chats/save', {
63326622 method: 'POST',
63336623 headers: getRequestHeaders(),
63346624 body: JSON.stringify({
63356625 ch_name: newValuenewName,
63366626 file_name: fileNameWithoutExtension,
63376627 chat: currentChat,
63386628 avatar_url: newAvatar,
@@ -6358,6 +6648,7 @@ export function saveChatDebounced() {
63586648 if (chatSaveTimeout) {
63596649 console.debug('Clearing chat save timeout');
63606650 clearTimeout(chatSaveTimeout);
6651+ chatSaveTimeout = null;
63616652 }
63626653
63636654 chatSaveTimeout = setTimeout(async () => {
@@ -6374,7 +6665,7 @@ export function saveChatDebounced() {
63746665 console.debug('Chat save timeout triggered');
63756666 await saveChatConditional();
63766667 console.debug('Chat saved');
63776668 }, 1000DEFAULT_SAVE_EDIT_TIMEOUT);
63786669}
63796670
63806671export async function saveChat(chatName, withMetadata, mesId) {
@@ -6529,7 +6820,7 @@ export function buildAvatarList(block, entities, { templateId = 'inline_avatar_t
65296820 }
65306821
65316822 avatarTemplate.attr('data-type', entity.type);
65326823 avatarTemplate.attr({ 'data-chid': id, 'id': `CharID${id}` });
65336824 avatarTemplate.find('img').attr('src', this_avatar).attr('alt', entity.item.name);
65346825 avatarTemplate.attr('title', `[Character] ${entity.item.name}\nFile: ${entity.item.avatar}`);
65356826 if (highlightFavs) {
@@ -6544,8 +6835,14 @@ export function buildAvatarList(block, entities, { templateId = 'inline_avatar_t
65446835 avatarTemplate.addClass(grpTemplate.attr('class'));
65456836 avatarTemplate.empty();
65466837 avatarTemplate.append(grpTemplate.children());
6838+ avatarTemplate.attr({ 'data-grid': id, 'data-chid': null });
65476839 avatarTemplate.attr('title', `[Group] ${entity.item.name}`);
65486840 }
6841+ else if (entity.type === 'persona') {
6842+ avatarTemplate.attr({ 'data-pid': id, 'data-chid': null });
6843+ avatarTemplate.find('img').attr('src', getUserAvatar(entity.item.avatar));
6844+ avatarTemplate.attr('title', `[Persona] ${entity.item.name}\nFile: ${entity.item.avatar}`);
6845+ }
65496846
65506847 if (interactable) {
65516848 avatarTemplate.addClass(INTERACTABLE_CONTROL_CLASS);
@@ -6557,9 +6854,43 @@ export function buildAvatarList(block, entities, { templateId = 'inline_avatar_t
65576854 }
65586855}
65596856
6857+/**
6858+ * Loads all the data of a shallow character.
6859+ * @param {string|undefined} characterId Array index
6860+ * @returns {Promise<void>} Promise that resolves when the character is unshallowed
6861+ */
6862+export async function unshallowCharacter(characterId) {
6863+ if (characterId === undefined) {
6864+ console.warn('Undefined character cannot be unshallowed');
6865+ return;
6866+ }
6867+
6868+ /** @type {import('./scripts/char-data.js').v1CharData} */
6869+ const character = characters[characterId];
6870+ if (!character) {
6871+ console.warn('Character not found:', characterId);
6872+ return;
6873+ }
6874+
6875+ // Character is not shallow
6876+ if (!character.shallow) {
6877+ return;
6878+ }
6879+
6880+ const avatar = character.avatar;
6881+ if (!avatar) {
6882+ console.warn('Character has no avatar field:', characterId);
6883+ return;
6884+ }
6885+
6886+ await getOneCharacter(avatar);
6887+}
6888+
65606889export async function getChat() {
65616890 //console.log('/api/chats/get -- entered for -- ' + characters[this_chid].name);
65626891 try {
6892+ await unshallowCharacter(this_chid);
6893+
65636894 const response = await $.ajax({
65646895 type: 'POST',
65656896 url: '/api/chats/get',
@@ -6617,8 +6948,8 @@ async function getChatResult() {
66176948
66186949 if (chat.length === 1) {
66196950 const chat_id = (chat.length - 1);
66206951 await eventSource.emit(event_types.MESSAGE_RECEIVED, chat_id, 'first_message');
66216952 await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, chat_id, 'first_message');
66226953 }
66236954}
66246955
@@ -6782,14 +7113,14 @@ export function changeMainAPI() {
67827113 forceCharacterEditorTokenize();
67837114}
67847115
67857116export function setUserName(value, { toastPersonaNameChange = true } = {}) {
67867117 name1 = value;
67877118 if (name1 === undefined || name1 == '')
67887119 name1 = default_user_name;
67897120 console.log(`User name changed to ${name1}`);
67907121 $('#your_name').valtext(name1);
67917122 if (toastPersonaNameChange && power_user.persona_show_notifications && !isPersonaPanelOpen()) {
67927123 toastr.success(t`Your messages will now be sent as ${name1}`, t`Current personaPersona updatedChanged`);
67937124 }
67947125 saveSettingsDebounced();
67957126}
@@ -6841,7 +7172,7 @@ export async function getSettings() {
68417172 settings = JSON.parse(data.settings);
68427173 if (settings.username !== undefined && settings.username !== '') {
68437174 name1 = settings.username;
68447175 $('#your_name').valtext(name1);
68457176 }
68467177
68477178 accountStorage.init(settings?.accountStorage);
@@ -7546,7 +7877,7 @@ export function select_rm_info(type, charId, previousCharId = null) {
75467877 if (previousCharId) {
75477878 const newId = characters.findIndex((x) => x.avatar == previousCharId);
75487879 if (newId >= 0) {
7549- this_chid = newId;
7880+ setCharacterId(newId);
75507881 }
75517882 }
75527883}
@@ -7566,6 +7897,7 @@ export function select_selected_character(chid) {
75667897 $('#create_button').attr('value', 'Save'); // what is the use case for this?
75677898 $('#dupe_button').show();
75687899 $('#create_button_label').css('display', 'none');
7900+ $('#char_connections_button').show();
75697901
75707902 // Hide the chat scenario button if we're peeking the group member defs
75717903 $('#set_chat_scenario').toggle(!selected_group);
@@ -7650,6 +7982,7 @@ function select_rm_create() {
76507982 $('#create_button_label').css('display', '');
76517983 $('#create_button').attr('value', 'Create');
76527984 $('#dupe_button').hide();
7985+ $('#char_connections_button').hide();
76537986
76547987 //create text poles
76557988 $('#rm_button_back').css('display', '');
@@ -7679,8 +8012,8 @@ function select_rm_create() {
76798012 $('#renameCharButton').css('display', 'none');
76808013 $('#name_div').removeClass('displayNone');
76818014 $('#name_div').addClass('displayBlock');
76828015 $('.open_alternate_greetings').data('chid', undefined-1);
76838016 $('#set_character_world').data('chid', undefined-1);
76848017 setWorldInfoButtonClass(undefined, !!create_save.world);
76858018 updateFavButtonState(false);
76868019 checkEmbeddedWorld();
@@ -7771,7 +8104,7 @@ function updateFavButtonState(state) {
77718104}
77728105
77738106export async function setScenarioOverride() {
77748107 if (!selected_group && (this_chid === undefined || !characters[this_chid])) {
77758108 console.warn('setScenarioOverride() -- no selected group or character');
77768109 return;
77778110 }
@@ -7989,6 +8322,12 @@ export async function saveChatConditional() {
79898322 }
79908323
79918324 try {
8325+ if (chatSaveTimeout) {
8326+ console.debug('Debounced chat save canceled');
8327+ clearTimeout(chatSaveTimeout);
8328+ chatSaveTimeout = null;
8329+ }
8330+
79928331 isChatSaving = true;
79938332
79948333 if (selected_group) {
@@ -8130,7 +8469,7 @@ function updateAlternateGreetingsHintVisibility(root) {
81308469function openCharacterWorldPopup() {
81318470 const chid = $('#set_character_world').data('chid');
81328471
81338472 if (menu_type != 'create' && chid === undefined) {
81348473 toastr.error('Does not have an Id for this character in world select menu.');
81358474 return;
81368475 }
@@ -8262,7 +8601,7 @@ function openAlternateGreetings() {
82628601 return;
82638602 } else {
82648603 // If the character does not have alternate greetings, create an empty array
82658604 if (characters[chid] && !Array.isArray(characters[chid].data.alternate_greetings) == false) {
82668605 characters[chid].data.alternate_greetings = [];
82678606 }
82688607 }
@@ -8449,7 +8788,7 @@ async function createOrEditCharacter(e) {
84498788
84508789 formData.delete('alternate_greetings');
84518790 const chid = $('.open_alternate_greetings').data('chid');
84528791 if (characters[chid] && Array.isArray(characters[chid]?.data?.alternate_greetings)) {
84538792 for (const value of characters[chid].data.alternate_greetings) {
84548793 formData.append('alternate_greetings', value);
84558794 }
@@ -8488,10 +8827,10 @@ async function createOrEditCharacter(e) {
84888827 if (shouldRegenerateMessage) {
84898828 chat.splice(0, chat.length, message);
84908829 const messageId = (chat.length - 1);
84918830 await eventSource.emit(event_types.MESSAGE_RECEIVED, messageId, 'first_message');
84928831 await clearChat();
84938832 await printMessages();
84948833 await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, messageId, 'first_message');
84958834 await saveChatConditional();
84968835 }
84978836 } catch (error) {
@@ -8515,17 +8854,28 @@ function formatSwipeCounter(current, total) {
85158854 return `${current}\u200b/\u200b${total}`;
85168855}
85178856
8518-function swipe_left() { // when we swipe left..but no generation.
8857+/**
8858+ * Handles the swipe to the left event.
8859+ * @param {JQuery.Event} _event Event.
8860+ * @param {object} params Additional parameters.
8861+ * @param {string} [params.source] The source of the swipe event.
8862+ * @param {boolean} [params.repeated] Is the swipe event repeated.
8863+ */
8864+function swipe_left(_event, { source, repeated } = {}) {
85198865 if (chat.length - 1 === Number(this_edit_mes_id)) {
85208866 closeMessageEditor();
85218867 }
8522-
85238868 if (isStreamingEnabled() && streamingProcessor) {
85248869 streamingProcessor.onStopStreaming();
85258870 }
85268871
85278872 // Make sure ad-hoc changes to extras are saved before swiping away
85288873 syncCurrentSwipeInfoExtrassyncMesToSwipe();
8874+
8875+ // If the user is holding down the key and we're at the first swipe, don't do anything
8876+ if (source === 'keyboard' && repeated && chat[chat.length - 1].swipe_id === 0) {
8877+ return;
8878+ }
85298879
85308880 const swipe_duration = 120;
85318881 const swipe_range = '700px';
@@ -8652,8 +9002,14 @@ function swipe_left() { // when we swipe left..but no generation.
86529002 }
86539003}
86549004
8655-// when we click swipe right button
9005+/**
8656-const swipe_right = () => {
9006+ * Handles the swipe to the right event.
9007+ * @param {JQuery.Event} _event Event.
9008+ * @param {object} params Additional parameters.
9009+ * @param {string} [params.source] The source of the swipe event.
9010+ * @param {boolean} [params.repeated] Is the swipe event repeated.
9011+ */
9012+function swipe_right(_event, { source, repeated } = {}) {
86579013 if (chat.length - 1 === Number(this_edit_mes_id)) {
86589014 closeMessageEditor();
86599015 }
@@ -8663,7 +9019,7 @@ const swipe_right = () => {
86639019 }
86649020
86659021 // Make sure ad-hoc changes to extras are saved before swiping away
86669022 syncCurrentSwipeInfoExtrassyncMesToSwipe();
86679023
86689024 const swipe_duration = 200;
86699025 const swipe_range = 700;
@@ -8675,12 +9031,21 @@ const swipe_right = () => {
86759031 chat[chat.length - 1]['swipes'] = []; // empty the array
86769032 chat[chat.length - 1]['swipe_info'] = [];
86779033 chat[chat.length - 1]['swipes'][0] = chat[chat.length - 1]['mes']; //assign swipe array with last message from chat
8678- chat[chat.length - 1]['swipe_info'][0] = { 'send_date': chat[chat.length - 1]['send_date'], 'gen_started': chat[chat.length - 1]['gen_started'], 'gen_finished': chat[chat.length - 1]['gen_finished'], 'extra': JSON.parse(JSON.stringify(chat[chat.length - 1]['extra'])) };
9034+ chat[chat.length - 1]['swipe_info'][0] = {
9035+ 'send_date': chat[chat.length - 1]['send_date'],
9036+ 'gen_started': chat[chat.length - 1]['gen_started'],
9037+ 'gen_finished': chat[chat.length - 1]['gen_finished'],
9038+ 'extra': JSON.parse(JSON.stringify(chat[chat.length - 1]['extra'])),
9039+ };
86799040 //assign swipe info array with last message from chat
86809041 }
86819042 if (chat.length === 1 && chat[0]['swipe_id'] !== undefined && chat[0]['swipe_id'] === chat[0]['swipes'].length - 1) { // if swipe_right is called on the last alternate greeting, loop back around
86829043 chat[0]['swipe_id'] = 0;
86839044 } else {
9045+ // If the user is holding down the key and we're at the last swipe, don't do anything
9046+ if (source === 'keyboard' && repeated && chat[chat.length - 1].swipe_id === chat[chat.length - 1].swipes.length - 1) {
9047+ return;
9048+ }
86849049 chat[chat.length - 1]['swipe_id']++; // make new slot in array
86859050 }
86869051 if (chat[chat.length - 1].extra) {
@@ -8829,9 +9194,9 @@ const swipe_right = () => {
88299194 },
88309195 });
88319196 }
88329197};
88339198
88349199export const CONNECT_API_MAP = {
88359200 // Default APIs not contined inside text gen / chat gen
88369201 'kobold': {
88379202 selected: 'kobold',
@@ -9021,10 +9386,12 @@ async function connectAPISlash(args, text) {
90219386 const toast = quiet ? jQuery() : toastr.info(t`API set to ${text}, trying to connect..`);
90229387
90239388 try {
9024- await waitUntilCondition(() => online_status !== 'no_connection', 10000, 100);
9389+ if (connectionRequired) {
9390+ await waitUntilCondition(() => online_status !== 'no_connection', 5000, 100);
9391+ }
90259392 console.log('Connection successful');
90269393 } catch {
90279394 console.log('Could not connect after 105 seconds, skipping.');
90289395 }
90299396
90309397 toastr.clear(toast);
@@ -9969,7 +10336,7 @@ jQuery(async function () {
996910336 });
997010337
997110338 $(document).on('click', '.character_select', async function () {
997210339 const id = Number($(this).attr('data-chid'));
997310340 await selectCharacterById(id);
997410341 });
997510342
@@ -10165,7 +10532,7 @@ jQuery(async function () {
1016510532 $('#form_create').submit(createOrEditCharacter);
1016610533
1016710534 $('#delete_button').on('click', async function () {
1016810535 if (this_chid === undefined || !characters[this_chid]) {
1016910536 toastr.warning('No character selected.');
1017010537 return;
1017110538 }
@@ -10947,7 +11314,7 @@ jQuery(async function () {
1094711314 });
1094811315
1094911316 $(document).on('click', '.mes_edit_copy', async function () {
1095011317 const confirmation = await callGenericPopup('t`Create a copy of this message?'`, POPUP_TYPE.CONFIRM);
1095111318 if (!confirmation) {
1095211319 return;
1095311320 }
public/scripts/BulkEditOverlay.js+10 -10
@@ -395,7 +395,7 @@ class BulkEditOverlay {
395395
396396 /**
397397 * @typedef {object} LastSelected - An object noting the last selected character and its state.
398398 * @property {stringnumber} [characterId] - The character id of the last selected character.
399399 * @property {boolean} [select] - The selected state of the last selected character. <c>true</c> if it was selected, <c>false</c> if it was deselected.
400400 */
401401
@@ -672,10 +672,10 @@ class BulkEditOverlay {
672672 * @param {HTMLElement} currentCharacter - The html element of the currently toggled character
673673 */
674674 handleShiftClick = (currentCharacter) => {
675675 const characterId = Number(currentCharacter.getAttribute('data-chid'));
676676 const select = !this.selectedCharacters.includes(characterId);
677677
678678 if (this.lastSelected.characterId >= 0 && this.lastSelected.select !== undefined) {
679679 // Only if select state and the last select state match we execute the range select
680680 if (select === this.lastSelected.select) {
681681 this.toggleCharactersInRange(currentCharacter, select);
@@ -691,7 +691,7 @@ class BulkEditOverlay {
691691 * @param {boolean} [param1.markState] - Whether the toggle of this character should be remembered as the last done toggle
692692 */
693693 toggleSingleCharacter = (character, { markState = true } = {}) => {
694694 const characterId = Number(character.getAttribute('data-chid'));
695695
696696 const select = !this.selectedCharacters.includes(characterId);
697697 const legacyBulkEditCheckbox = character.querySelector('.' + BulkEditOverlay.legacySelectedClass);
@@ -699,11 +699,11 @@ class BulkEditOverlay {
699699 if (select) {
700700 character.classList.add(BulkEditOverlay.selectedClass);
701701 if (legacyBulkEditCheckbox) legacyBulkEditCheckbox.checked = true;
702702 this.#selectedCharacters.push(String(characterId));
703703 } else {
704704 character.classList.remove(BulkEditOverlay.selectedClass);
705705 if (legacyBulkEditCheckbox) legacyBulkEditCheckbox.checked = false;
706706 this.#selectedCharacters = this.#selectedCharacters.filter(item => String(characterId) !== item);
707707 }
708708
709709 this.updateSelectedCount();
@@ -732,15 +732,15 @@ class BulkEditOverlay {
732732 * @param {boolean} select - <c>true</c> if the characters in the range are to be selected, <c>false</c> if deselected
733733 */
734734 toggleCharactersInRange = (currentCharacter, select) => {
735735 const currentCharacterId = Number(currentCharacter.getAttribute('data-chid'));
736736 const characters = Array.from(document.querySelectorAll('#' + BulkEditOverlay.containerId + ' .' + BulkEditOverlay.characterClass));
737737
738738 const startIndex = characters.findIndex(c => Number(c.getAttribute('data-chid')) === Number(this.lastSelected.characterId));
739739 const endIndex = characters.findIndex(c => Number(c.getAttribute('data-chid')) === currentCharacterId);
740740
741741 for (let i = Math.min(startIndex, endIndex); i <= Math.max(startIndex, endIndex); i++) {
742742 const character = characters[i];
743743 const characterId = Number(character.getAttribute('data-chid'));
744744 const isCharacterSelected = this.selectedCharacters.includes(characterId);
745745
746746 // Only toggle the character if it wasn't on the state we have are toggling towards.
public/scripts/RossAscends-mods.js+38 -10
@@ -280,17 +280,32 @@ async function RA_autoloadchat() {
280280 // active character is the name, we should look it up in the character list and get the id
281281 if (active_character !== null && active_character !== undefined) {
282282 const active_character_id = characters.findIndex(x => getTagKeyForEntity(x) === active_character);
283283 if (active_character_id !== null-1) {
284284 await selectCharacterById(String(active_character_id));
285285
286286 // Do a little tomfoolery to spoof the tag selector
287287 const selectedCharElement = $(`#rm_print_characters_block .character_select[chid="${active_character_id}"]`);
288288 applyTagsOnCharacterSelect.call(selectedCharElement);
289+ } else {
290+ setActiveCharacter(null);
291+ saveSettingsDebounced();
292+ console.warn(`Currently active character with ID ${active_character} not found. Resetting to no active character.`);
289293 }
290294 }
291295
292296 if (active_group !== null && active_group !== undefined) {
293- await openGroupById(String(active_group));
297+ if (active_character) {
298+ console.warn('Active character and active group are both set. Only active character will be loaded. Resetting active group.');
299+ setActiveGroup(null);
300+ saveSettingsDebounced();
301+ } else {
302+ const result = await openGroupById(String(active_group));
303+ if (!result) {
304+ setActiveGroup(null);
305+ saveSettingsDebounced();
306+ console.warn(`Currently active group with ID ${active_group} not found. Resetting to no active group.`);
307+ }
308+ }
294309 }
295310
296311 // if the character list hadn't been loaded yet, try again.
@@ -301,7 +316,10 @@ export async function favsToHotswap() {
301316 const entities = getEntitiesList({ doFilter: false });
302317 const container = $('#right-nav-panel .hotswap');
303318
304- const favs = entities.filter(x => x.item.fav || x.item.fav == 'true');
319+ // Hard limit is required because even if all hotswaps don't fit the screen, their images would still be loaded
320+ // 25 is roughly calculated as the maximum number of favs that can fit an ultrawide monitor with the default theme
321+ const FAVS_LIMIT = 25;
322+ const favs = entities.filter(x => x.item.fav || x.item.fav == 'true').slice(0, FAVS_LIMIT);
305323
306324 //helpful instruction message if no characters are favorited
307325 if (favs.length == 0) {
@@ -879,14 +897,14 @@ export function initRossMods() {
879897
880898 // when a char is selected from the list, save their name as the auto-load character for next page load
881899 $(document).on('click', '.character_select', function () {
882900 const characterId = $(this).attr('chid') || $(this).data('id-chid');
883901 setActiveCharacter(characterId);
884902 setActiveGroup(null);
885903 saveSettingsDebounced();
886904 });
887905
888906 $(document).on('click', '.group_select', function () {
889907 const groupId = $(this).attr('data-chid') || $(this).attr('grid') || $(this).data('id-grid');
890908 setActiveCharacter(null);
891909 setActiveGroup(groupId);
892910 saveSettingsDebounced();
@@ -1000,6 +1018,14 @@ export function initRossMods() {
10001018 return false;
10011019 }
10021020
1021+ function isModifiedKeyboardEvent(event) {
1022+ return (event instanceof KeyboardEvent &&
1023+ event.shiftKey ||
1024+ event.ctrlKey ||
1025+ event.altKey ||
1026+ event.metaKey);
1027+ }
1028+
10031029 $(document).on('keydown', async function (event) {
10041030 await processHotkeys(event.originalEvent);
10051031 });
@@ -1123,9 +1149,10 @@ export function initRossMods() {
11231149 $('#send_textarea').val() === '' &&
11241150 $('#character_popup').css('display') === 'none' &&
11251151 $('#shadow_select_chat_popup').css('display') === 'none' &&
11261152 !isInputElementInFocus() &&
1153+ !isModifiedKeyboardEvent(event)
11271154 ) {
11281155 $('.swipe_left:last').clicktrigger('click', { source: 'keyboard', repeated: event.repeat });
11291156 return;
11301157 }
11311158 }
@@ -1136,9 +1163,10 @@ export function initRossMods() {
11361163 $('#send_textarea').val() === '' &&
11371164 $('#character_popup').css('display') === 'none' &&
11381165 $('#shadow_select_chat_popup').css('display') === 'none' &&
11391166 !isInputElementInFocus() &&
1167+ !isModifiedKeyboardEvent(event)
11401168 ) {
11411169 $('.swipe_right:last').clicktrigger('click', { source: 'keyboard', repeated: event.repeat });
11421170 return;
11431171 }
11441172 }
public/scripts/authors-note.js+41 -41
@@ -299,7 +299,7 @@ function loadSettings() {
299299 $('#extension_floating_role').val(chat_metadata[metadata_keys.role]);
300300 $(`input[name="extension_floating_position"][value="${chat_metadata[metadata_keys.position]}"]`).prop('checked', true);
301301
302302 if (extension_settings.note.chara && getContext().characterId !== undefined) {
303303 const charaNote = extension_settings.note.chara.find((e) => e.name === getCharaFilename());
304304
305305 $('#extension_floating_chara').val(charaNote ? charaNote.prompt : '');
@@ -389,49 +389,49 @@ export function setFloatingPrompt() {
389389}
390390
391391function onANMenuItemClick() {
392392 if (!selected_group ||&& this_chid === undefined) {
393- //show AN if it's hidden
393+ toastr.warning(t`Select a character before trying to use Author's Note`, '', { timeOut: 2000 });
394- if ($('#floatingPrompt').css('display') !== 'flex') {
394+ return;
395- $('#floatingPrompt').addClass('resizing');
395+ }
396- $('#floatingPrompt').css('display', 'flex');
396+
397- $('#floatingPrompt').css('opacity', 0.0);
397+ //show AN if it's hidden
398- $('#floatingPrompt').transition({
398+ if ($('#floatingPrompt').css('display') !== 'flex') {
399- opacity: 1.0,
399+ $('#floatingPrompt').addClass('resizing');
400- duration: animation_duration,
400+ $('#floatingPrompt').css('display', 'flex');
401- }, async function () {
401+ $('#floatingPrompt').css('opacity', 0.0);
402- await delay(50);
402+ $('#floatingPrompt').transition({
403- $('#floatingPrompt').removeClass('resizing');
403+ opacity: 1.0,
404- });
404+ duration: animation_duration,
405-
405+ }, async function () {
406- //auto-open the main AN inline drawer
406+ await delay(50);
407407 if ($('#ANBlockTogglefloatingPrompt').removeClass('resizing');
408- .siblings('.inline-drawer-content')
408+ });
409- .css('display') !== 'block') {
410- $('#floatingPrompt').addClass('resizing');
411- $('#ANBlockToggle').click();
412- }
413- } else {
414- //hide AN if it's already displayed
415- $('#floatingPrompt').addClass('resizing');
416- $('#floatingPrompt').transition({
417- opacity: 0.0,
418- duration: animation_duration,
419- },
420- async function () {
421- await delay(50);
422- $('#floatingPrompt').removeClass('resizing');
423- });
424- setTimeout(function () {
425- $('#floatingPrompt').hide();
426- }, animation_duration);
427409
410+ //auto-open the main AN inline drawer
411+ if ($('#ANBlockToggle')
412+ .siblings('.inline-drawer-content')
413+ .css('display') !== 'block') {
414+ $('#floatingPrompt').addClass('resizing');
415+ $('#ANBlockToggle').click();
428416 }
429- //duplicate options menu close handler from script.js
430- //because this listener takes priority
431- $('#options').stop().fadeOut(animation_duration);
432417 } else {
433- toastr.warning(t`Select a character before trying to use Author's Note`, '', { timeOut: 2000 });
418+ //hide AN if it's already displayed
419+ $('#floatingPrompt').addClass('resizing');
420+ $('#floatingPrompt').transition({
421+ opacity: 0.0,
422+ duration: animation_duration,
423+ }, async function () {
424+ await delay(50);
425+ $('#floatingPrompt').removeClass('resizing');
426+ });
427+ setTimeout(function () {
428+ $('#floatingPrompt').hide();
429+ }, animation_duration);
434430 }
431+
432+ //duplicate options menu close handler from script.js
433+ //because this listener takes priority
434+ $('#options').stop().fadeOut(animation_duration);
435435}
436436
437437async function onChatChanged() {
@@ -446,7 +446,7 @@ async function onChatChanged() {
446446 $('#extension_floating_prompt_token_counter').text(tokenCounter1);
447447
448448 let tokenCounter2;
449449 if (extension_settings.note.chara && context.characterId !== undefined) {
450450 const charaNote = extension_settings.note.chara.find((e) => e.name === getCharaFilename());
451451
452452 if (charaNote) {
public/scripts/bookmarks.js+0 -10
@@ -318,16 +318,6 @@ export async function convertSoloToGroupChat() {
318318 const groupChat = chat.slice();
319319 const genIdFirst = Date.now();
320320
321- // Add something if the chat is empty
322- if (groupChat.length === 0) {
323- const newMessage = {
324- ...system_messages[system_message_types.GROUP],
325- send_date: getMessageTimeStamp(),
326- extra: { type: system_message_types.GROUP },
327- };
328- groupChat.push(newMessage);
329- }
330-
331321 for (let index = 0; index < groupChat.length; index++) {
332322 const message = groupChat[index];
333323
public/scripts/cfg-scale.js+56 -57
@@ -40,7 +40,7 @@ function setCharCfg(tempValue, setting) {
4040 name: avatarName,
4141 };
4242
4343 switch (setting) {
4444 case settingType.guidance_scale:
4545 tempCharaCfg['guidance_scale'] = Number(tempValue);
4646 break;
@@ -69,8 +69,7 @@ function setCharCfg(tempValue, setting) {
6969 if (!existingCharaCfg.useChara &&
7070 (tempAssign.guidance_scale ?? 1.00) === 1.00 &&
7171 (tempAssign.negative_prompt?.length ?? 0) === 0 &&
7272 (tempAssign.positive_prompt?.length ?? 0) === 0) {
73- {
7473 extension_settings.cfg.chara.splice(existingCharaCfgIndex, 1);
7574 }
7675 } else if (avatarName && tempValue.length > 0) {
@@ -92,7 +91,7 @@ function setCharCfg(tempValue, setting) {
9291}
9392
9493function setChatCfg(tempValue, setting) {
9594 switch (setting) {
9695 case settingType.guidance_scale:
9796 chat_metadata[metadataKeys.guidance_scale] = tempValue;
9897 break;
@@ -113,49 +112,49 @@ function setChatCfg(tempValue, setting) {
113112
114113// TODO: Only change CFG when character is selected
115114function onCfgMenuItemClick() {
116115 if (!selected_group ||&& this_chid === undefined) {
117- //show CFG config if it's hidden
116+ toastr.warning('Select a character before trying to configure CFG', '', { timeOut: 2000 });
118- if ($('#cfgConfig').css('display') !== 'flex') {
117+ return;
119- $('#cfgConfig').addClass('resizing');
118+ }
120- $('#cfgConfig').css('display', 'flex');
119+
121- $('#cfgConfig').css('opacity', 0.0);
120+ //show CFG config if it's hidden
122- $('#cfgConfig').transition({
121+ if ($('#cfgConfig').css('display') !== 'flex') {
123- opacity: 1.0,
122+ $('#cfgConfig').addClass('resizing');
124- duration: animation_duration,
123+ $('#cfgConfig').css('display', 'flex');
125- }, async function () {
124+ $('#cfgConfig').css('opacity', 0.0);
126- await delay(50);
125+ $('#cfgConfig').transition({
127- $('#cfgConfig').removeClass('resizing');
126+ opacity: 1.0,
128- });
127+ duration: animation_duration,
129-
128+ }, async function () {
130- //auto-open the main AN inline drawer
129+ await delay(50);
131130 if ($('#CFGBlockTogglecfgConfig').removeClass('resizing');
132- .siblings('.inline-drawer-content')
131+ });
133- .css('display') !== 'block') {
134- $('#floatingPrompt').addClass('resizing');
135- $('#CFGBlockToggle').click();
136- }
137- } else {
138- //hide AN if it's already displayed
139- $('#cfgConfig').addClass('resizing');
140- $('#cfgConfig').transition({
141- opacity: 0.0,
142- duration: animation_duration,
143- },
144- async function () {
145- await delay(50);
146- $('#cfgConfig').removeClass('resizing');
147- });
148- setTimeout(function () {
149- $('#cfgConfig').hide();
150- }, animation_duration);
151132
133+ //auto-open the main AN inline drawer
134+ if ($('#CFGBlockToggle')
135+ .siblings('.inline-drawer-content')
136+ .css('display') !== 'block') {
137+ $('#floatingPrompt').addClass('resizing');
138+ $('#CFGBlockToggle').click();
152139 }
153- //duplicate options menu close handler from script.js
154- //because this listener takes priority
155- $('#options').stop().fadeOut(animation_duration);
156140 } else {
157- toastr.warning('Select a character before trying to configure CFG', '', { timeOut: 2000 });
141+ //hide AN if it's already displayed
142+ $('#cfgConfig').addClass('resizing');
143+ $('#cfgConfig').transition({
144+ opacity: 0.0,
145+ duration: animation_duration,
146+ }, async function () {
147+ await delay(50);
148+ $('#cfgConfig').removeClass('resizing');
149+ });
150+ setTimeout(function () {
151+ $('#cfgConfig').hide();
152+ }, animation_duration);
153+
158154 }
155+ //duplicate options menu close handler from script.js
156+ //because this listener takes priority
157+ $('#options').stop().fadeOut(animation_duration);
159158}
160159
161160async function onChatChanged() {
@@ -288,7 +287,7 @@ export function initCfg() {
288287 setTimeout(function () { $('#cfgConfig').hide(); }, animation_duration);
289288 });
290289
291290 $('#chat_cfg_guidance_scale').on('input', function () {
292291 const numberValue = Number($(this).val());
293292 const success = setChatCfg(numberValue, settingType.guidance_scale);
294293 if (success) {
@@ -296,15 +295,15 @@ export function initCfg() {
296295 }
297296 });
298297
299298 $('#chat_cfg_negative_prompt').on('input', function () {
300299 setChatCfg($(this).val(), settingType.negative_prompt);
301300 });
302301
303302 $('#chat_cfg_positive_prompt').on('input', function () {
304303 setChatCfg($(this).val(), settingType.positive_prompt);
305304 });
306305
307306 $('#chara_cfg_guidance_scale').on('input', function () {
308307 const value = $(this).val();
309308 const success = setCharCfg(value, settingType.guidance_scale);
310309 if (success) {
@@ -312,34 +311,34 @@ export function initCfg() {
312311 }
313312 });
314313
315314 $('#chara_cfg_negative_prompt').on('input', function () {
316315 setCharCfg($(this).val(), settingType.negative_prompt);
317316 });
318317
319318 $('#chara_cfg_positive_prompt').on('input', function () {
320319 setCharCfg($(this).val(), settingType.positive_prompt);
321320 });
322321
323322 $('#global_cfg_guidance_scale').on('input', function () {
324323 extension_settings.cfg.global.guidance_scale = Number($(this).val());
325324 $('#global_cfg_guidance_scale_counter').val(extension_settings.cfg.global.guidance_scale.toFixed(2));
326325 saveSettingsDebounced();
327326 });
328327
329328 $('#global_cfg_negative_prompt').on('input', function () {
330329 extension_settings.cfg.global.negative_prompt = $(this).val();
331330 saveSettingsDebounced();
332331 });
333332
334333 $('#global_cfg_positive_prompt').on('input', function () {
335334 extension_settings.cfg.global.positive_prompt = $(this).val();
336335 saveSettingsDebounced();
337336 });
338337
339338 $('input[name="cfg_prompt_combine"]').on('input', function () {
340339 const values = $('#cfgConfig').find('input[name="cfg_prompt_combine"]')
341340 .filter(':checked')
342341 .map(function () { return Number($(this).val()); })
343342 .get()
344343 .filter((e) => !Number.isNaN(e)) || [];
345344
@@ -347,17 +346,17 @@ export function initCfg() {
347346 saveMetadataDebounced();
348347 });
349348
350349 $('#cfg_prompt_insertion_depth').on('input', function () {
351350 chat_metadata[metadataKeys.prompt_insertion_depth] = Number($(this).val());
352351 saveMetadataDebounced();
353352 });
354353
355354 $('#cfg_prompt_separator').on('input', function () {
356355 chat_metadata[metadataKeys.prompt_separator] = $(this).val();
357356 saveMetadataDebounced();
358357 });
359358
360359 $('#groupchat_cfg_use_chara').on('input', function () {
361360 const checked = !!$(this).prop('checked');
362361 chat_metadata[metadataKeys.groupchat_individual_chars] = checked;
363362
public/scripts/char-data.js+1 -0
@@ -113,5 +113,6 @@
113113 * @property {string} chat - name of the current chat file chat
114114 * @property {string} avatar - file name of the avatar image (acts as a unique identifier)
115115 * @property {string} json_data - the full raw JSON data of the character
116+ * @property {boolean?} shallow - if the data is shallow (lazy-loaded)
116117 */
117118export default 0;// now this file is a module
public/scripts/chat-templates.js+4 -0
@@ -47,6 +47,10 @@ const hash_derivations = {
4747 // gemma-2-2b-it
4848 'Gemma 2'
4949 ,
50+ '7de1c58e208eda46e9c7f86397df37ec49883aeece39fb961e0a6b24088dd3c4':
51+ // gemma-3
52+ 'Gemma 2'
53+ ,
5054
5155 // Cohere
5256 '3b54f5c219ae1caa5c0bb2cdc7c001863ca6807cf888e4240e8739fa7eb9e02e':
public/scripts/chats.js+6 -3
@@ -130,9 +130,10 @@ function getConverter(type) {
130130 * @param {number} start Starting message ID
131131 * @param {number} end Ending message ID (inclusive)
132132 * @param {boolean} unhide If true, unhide the messages instead.
133+ * @param {string} nameFitler Optional name filter
133134 * @returns {Promise<void>}
134135 */
135136export async function hideChatMessageRange(start, end, unhide, nameFitler = null) {
136137 if (isNaN(start)) return;
137138 if (!end) end = start;
138139 const hide = !unhide;
@@ -140,6 +141,7 @@ export async function hideChatMessageRange(start, end, unhide) {
140141 for (let messageId = start; messageId <= end; messageId++) {
141142 const message = chat[messageId];
142143 if (!message) continue;
144+ if (nameFitler && message.name !== nameFitler) continue;
143145
144146 message.is_system = hide;
145147
@@ -1506,7 +1508,7 @@ jQuery(function () {
15061508 embedMessageFile(messageId, messageBlock);
15071509 });
15081510
15091511 $(document).on('click', '.editor_maximize', async function () {
15101512 const broId = $(this).attr('data-for');
15111513 const bro = $(`#${broId}`);
15121514 const contentEditable = bro.is('[contenteditable]');
@@ -1525,6 +1527,7 @@ jQuery(function () {
15251527 textarea.value = String(contentEditable ? bro[0].innerText : bro.val());
15261528 textarea.classList.add('height100p', 'wide100p', 'maximized_textarea');
15271529 bro.hasClass('monospace') && textarea.classList.add('monospace');
1530+ bro.hasClass('mdHotkeys') && textarea.classList.add('mdHotkeys');
15281531 textarea.addEventListener('input', function () {
15291532 if (contentEditable) {
15301533 bro[0].innerText = textarea.value;
@@ -1565,7 +1568,7 @@ jQuery(function () {
15651568 });
15661569 }
15671570
15681571 await callGenericPopup(wrapper, POPUP_TYPE.TEXT, '', { wide: true, large: true });
15691572 });
15701573
15711574 $(document).on('click', 'body.documentstyle .mes .mes_text', function () {
public/scripts/custom-request.js+189 -0
@@ -0,0 +1,189 @@
1+import { getPresetManager } from './preset-manager.js';
2+import { extractMessageFromData, getGenerateUrl, getRequestHeaders } from '../script.js';
3+import { getTextGenServer } from './textgen-settings.js';
4+
5+// #region Type Definitions
6+/**
7+ * @typedef {Object} TextCompletionRequestBase
8+ * @property {string} prompt - The text prompt for completion
9+ * @property {number} max_tokens - Maximum number of tokens to generate
10+ * @property {string} [model] - Optional model name
11+ * @property {string} api_type - Type of API to use
12+ * @property {string} [api_server] - Optional API server URL
13+ * @property {number} [temperature] - Optional temperature parameter
14+ */
15+
16+/** @typedef {Record<string, any> & TextCompletionRequestBase} TextCompletionRequest */
17+
18+/**
19+ * @typedef {Object} TextCompletionPayloadBase
20+ * @property {string} prompt - The text prompt for completion
21+ * @property {number} max_tokens - Maximum number of tokens to generate
22+ * @property {number} max_new_tokens - Alias for max_tokens
23+ * @property {string} [model] - Optional model name
24+ * @property {string} api_type - Type of API to use
25+ * @property {string} api_server - API server URL
26+ * @property {number} [temperature] - Optional temperature parameter
27+ */
28+
29+/** @typedef {Record<string, any> & TextCompletionPayloadBase} TextCompletionPayload */
30+
31+/**
32+ * @typedef {Object} ChatCompletionMessage
33+ * @property {string} role - The role of the message author (e.g., "user", "assistant", "system")
34+ * @property {string} content - The content of the message
35+ */
36+
37+/**
38+ * @typedef {Object} ChatCompletionPayloadBase
39+ * @property {ChatCompletionMessage[]} messages - Array of chat messages
40+ * @property {string} [model] - Optional model name to use for completion
41+ * @property {string} chat_completion_source - Source provider for chat completion
42+ * @property {number} max_tokens - Maximum number of tokens to generate
43+ * @property {number} [temperature] - Optional temperature parameter for response randomness
44+ */
45+
46+/** @typedef {Record<string, any> & ChatCompletionPayloadBase} ChatCompletionPayload */
47+// #endregion
48+
49+/**
50+ * Creates & sends a text completion request. Streaming is not supported.
51+ */
52+export class TextCompletionService {
53+ static TYPE = 'textgenerationwebui';
54+
55+ /**
56+ * @param {TextCompletionRequest} custom
57+ * @returns {TextCompletionPayload}
58+ */
59+ static createRequestData({ prompt, max_tokens, model, api_type, api_server, temperature, ...props }) {
60+ return {
61+ ...props,
62+ prompt,
63+ max_tokens,
64+ max_new_tokens: max_tokens,
65+ model,
66+ api_type,
67+ api_server: api_server ?? getTextGenServer(api_type),
68+ temperature,
69+ stream: false,
70+ };
71+ }
72+
73+ /**
74+ * Sends a text completion request to the specified server
75+ * @param {TextCompletionPayload} data Request data
76+ * @param {boolean?} extractData Extract message from the response. Default true
77+ * @returns {Promise<string | any>} Extracted data or the raw response
78+ * @throws {Error}
79+ */
80+ static async sendRequest(data, extractData = true) {
81+ const response = await fetch(getGenerateUrl(this.TYPE), {
82+ method: 'POST',
83+ headers: getRequestHeaders(),
84+ cache: 'no-cache',
85+ body: JSON.stringify(data),
86+ signal: new AbortController().signal,
87+ });
88+
89+ const json = await response.json();
90+ if (!response.ok || json.error) {
91+ throw json;
92+ }
93+
94+ return extractData ? extractMessageFromData(json, this.TYPE) : json;
95+ }
96+
97+ /**
98+ * @param {string} presetName
99+ * @param {TextCompletionRequest} custom
100+ * @param {boolean?} extractData Extract message from the response. Default true
101+ * @returns {Promise<string | any>} Extracted data or the raw response
102+ * @throws {Error}
103+ */
104+ static async sendRequestWithPreset(presetName, custom, extractData = true) {
105+ const presetManager = getPresetManager(this.TYPE);
106+ if (!presetManager) {
107+ throw new Error('Preset manager not found');
108+ }
109+
110+ const preset = presetManager.getCompletionPresetByName(presetName);
111+ if (!preset) {
112+ throw new Error('Preset not found');
113+ }
114+
115+ const data = this.createRequestData({ ...preset, ...custom });
116+
117+ return await this.sendRequest(data, extractData);
118+ }
119+}
120+
121+/**
122+ * Creates & sends a chat completion request. Streaming is not supported.
123+ */
124+export class ChatCompletionService {
125+ static TYPE = 'openai';
126+
127+ /**
128+ * @param {ChatCompletionPayload} custom
129+ * @returns {ChatCompletionPayload}
130+ */
131+ static createRequestData({ messages, model, chat_completion_source, max_tokens, temperature, ...props }) {
132+ return {
133+ ...props,
134+ messages,
135+ model,
136+ chat_completion_source,
137+ max_tokens,
138+ temperature,
139+ stream: false,
140+ };
141+ }
142+
143+ /**
144+ * Sends a chat completion request
145+ * @param {ChatCompletionPayload} data Request data
146+ * @param {boolean?} extractData Extract message from the response. Default true
147+ * @returns {Promise<string | any>} Extracted data or the raw response
148+ * @throws {Error}
149+ */
150+ static async sendRequest(data, extractData = true) {
151+ const response = await fetch('/api/backends/chat-completions/generate', {
152+ method: 'POST',
153+ headers: getRequestHeaders(),
154+ cache: 'no-cache',
155+ body: JSON.stringify(data),
156+ signal: new AbortController().signal,
157+ });
158+
159+ const json = await response.json();
160+ if (!response.ok || json.error) {
161+ throw json;
162+ }
163+
164+ return extractData ? extractMessageFromData(json, this.TYPE) : json;
165+ }
166+
167+ /**
168+ * @param {string} presetName
169+ * @param {ChatCompletionPayload} custom
170+ * @param {boolean} extractData Extract message from the response. Default true
171+ * @returns {Promise<string | any>} Extracted data or the raw response
172+ * @throws {Error}
173+ */
174+ static async sendRequestWithPreset(presetName, custom, extractData = true) {
175+ const presetManager = getPresetManager(this.TYPE);
176+ if (!presetManager) {
177+ throw new Error('Preset manager not found');
178+ }
179+
180+ const preset = presetManager.getCompletionPresetByName(presetName);
181+ if (!preset) {
182+ throw new Error('Preset not found');
183+ }
184+
185+ const data = this.createRequestData({ ...preset, ...custom });
186+
187+ return await this.sendRequest(data, extractData);
188+ }
189+}
public/scripts/extensions.js+59 -7
@@ -7,7 +7,7 @@ import { renderTemplate, renderTemplateAsync } from './templates.js';
77import { delay, isSubsetOf, sanitizeSelector, setValueByPath } from './utils.js';
88import { getContext } from './st-context.js';
99import { isAdmin } from './user.js';
1010import { addLocaleData, getCurrentLocale, t } from './i18n.js';
1111import { debounce_timeout } from './constants.js';
1212import { accountStorage } from './util/AccountStorage.js';
1313
@@ -154,8 +154,18 @@ export const extension_settings = {
154154 refine_mode: false,
155155 },
156156 expressions: {
157+ /** @type {number} see `EXPRESSION_API` */
158+ api: undefined,
157159 /** @type {string[]} */
158160 custom: [],
161+ showDefault: false,
162+ translate: false,
163+ /** @type {string} */
164+ fallback_expression: undefined,
165+ /** @type {string} */
166+ llmPrompt: undefined,
167+ allowMultiple: true,
168+ rerollIfSame: false,
159169 },
160170 connectionManager: {
161171 selectedProfile: '',
@@ -200,6 +210,12 @@ export const extension_settings = {
200210 * @type {string[]}
201211 */
202212 disabled_attachments: [],
213+ gallery: {
214+ /** @type {{[characterKey: string]: string}} */
215+ folders: {},
216+ /** @type {string} */
217+ sort: 'dateAsc',
218+ },
203219};
204220
205221function showHideExtensionsMenu() {
@@ -374,7 +390,7 @@ async function activateExtensions() {
374390 if (meetsModuleRequirements && !isDisabled) {
375391 try {
376392 console.debug('Activating extension', name);
377393 const promise = addExtensionLocale(name, manifest).finally(() => Promise.all([addExtensionScript(name, manifest), addExtensionStyle(name, manifest)]));
378394 await promise
379395 .then(() => activeExtensions.add(name))
380396 .catch(err => console.log('Could not activate extension', name, err));
@@ -567,6 +583,42 @@ function addExtensionScript(name, manifest) {
567583}
568584
569585/**
586+ * Adds a localization data for an extension.
587+ * @param {string} name Extension name
588+ * @param {object} manifest Manifest object
589+ */
590+function addExtensionLocale(name, manifest) {
591+ // No i18n data in the manifest
592+ if (!manifest.i18n || typeof manifest.i18n !== 'object') {
593+ return Promise.resolve();
594+ }
595+
596+ const currentLocale = getCurrentLocale();
597+ const localeFile = manifest.i18n[currentLocale];
598+
599+ // Manifest doesn't provide a locale file for the current locale
600+ if (!localeFile) {
601+ return Promise.resolve();
602+ }
603+
604+ return fetch(`/scripts/extensions/${name}/${localeFile}`)
605+ .then(async response => {
606+ if (!response.ok) {
607+ throw new Error(`HTTP ${response.status}: ${response.statusText}`);
608+ }
609+
610+ const data = await response.json();
611+
612+ if (data && typeof data === 'object') {
613+ addLocaleData(currentLocale, data);
614+ }
615+ })
616+ .catch(err => {
617+ console.log('Could not load extension locale data for ' + name, err);
618+ });
619+}
620+
621+/**
570622 * Generates HTML string for displaying an extension in the UI.
571623 *
572624 * @param {string} name - The name of the extension.
@@ -603,12 +655,12 @@ function generateExtensionHtml(name, manifest, isActive, isDisabled, isExternal,
603655 }
604656
605657 let toggleElement = isActive || isDisabled ?
606658 `'<input type="checkbox" title="' + t`Click to toggle` + `" data-name="${name}" class="${isActive ? 'toggle_disable' : 'toggle_enable'} ${checkboxClass}" ${isActive ? 'checked' : ''}>` :
607659 `<input type="checkbox" title="Cannot enable extension" data-name="${name}" class="extension_missing ${checkboxClass}" disabled>`;
608660
609661 let deleteButton = isExternal ? `<button class="btn_delete menu_button" data-name="${externalId}" data-i18n="[title]Delete" title="Delete"><i class="fa-fw fa-solid fa-trash-can"></i></button>` : '';
610662 let updateButton = isExternal ? `<button class="btn_update menu_button displayNone" data-name="${externalId}" title="Update available"><i class="fa-solid fa-download fa-fw"></i></button>` : '';
611663 let moveButton = isExternal && isUserAdmin ? `<button class="btn_move menu_button" data-name="${externalId}" data-i18n="[title]Move" title="Move"><i class="fa-solid fa-folder-tree fa-fw"></i></button>` : '';
612664 let modulesInfo = '';
613665
614666 if (isActive && Array.isArray(manifest.optional)) {
@@ -616,7 +668,7 @@ function generateExtensionHtml(name, manifest, isActive, isDisabled, isExternal,
616668 modules.forEach(x => optional.delete(x));
617669 if (optional.size > 0) {
618670 const optionalString = DOMPurify.sanitize([...optional].join(', '));
619671 modulesInfo = `'<div class="extension_modules">' + t`Optional modules:` + ` <span class="optional">${optionalString}</span></div>`;
620672 }
621673 } else if (!isDisabled) { // Neither active nor disabled
622674 const requirements = new Set(manifest.requires);
@@ -1018,7 +1070,7 @@ export async function installExtension(url, global) {
10181070 toastr.success(t`Extension '${response.display_name}' by ${response.author} (version ${response.version}) has been installed successfully!`, t`Extension installation successful`);
10191071 console.debug(`Extension "${response.display_name}" has been installed successfully at ${response.extensionPath}`);
10201072 await loadExtensionSettings({}, false, false);
10211073 await eventSource.emit(event_types.EXTENSION_SETTINGS_LOADED, response);
10221074}
10231075
10241076/**
public/scripts/extensions/assets/index.js+13 -15
@@ -10,6 +10,7 @@ import { POPUP_TYPE, Popup, callGenericPopup } from '../../popup.js';
1010import { executeSlashCommands } from '../../slash-commands.js';
1111import { accountStorage } from '../../util/AccountStorage.js';
1212import { flashHighlight, getStringHash, isValidUrl } from '../../utils.js';
13+import { t } from '../../i18n.js';
1314export { MODULE_NAME };
1415
1516const MODULE_NAME = 'assets';
@@ -59,11 +60,11 @@ const KNOWN_TYPES = {
5960 'blip': 'Blip sounds',
6061};
6162
6263async function downloadAssetsList(url) {
6364 updateCurrentAssets().then(async function () {
6465 fetch(url, { cache: 'no-cache' })
6566 .then(response => response.json())
6667 .then(jsonasync =>function(json) {
6768
6869 availableAssets = {};
6970 $('#assets_menu').empty();
@@ -84,10 +85,10 @@ function downloadAssetsList(url) {
8485
8586 $('#assets_type_select').empty();
8687 $('#assets_search').val('');
8788 $('#assets_type_select').append($('<option />', { value: '', text: 't`All'` }));
8889
8990 for (const type of assetTypes) {
9091 const option = $('<option />', { value: type, text: t([KNOWN_TYPES[type] || type]) });
9192 $('#assets_type_select').append(option);
9293 }
9394
@@ -104,11 +105,7 @@ function downloadAssetsList(url) {
104105 assetTypeMenu.append(`<h3>${KNOWN_TYPES[assetType] || assetType}</h3>`).hide();
105106
106107 if (assetType == 'extension') {
107- assetTypeMenu.append(`
108+ assetTypeMenu.append(await renderExtensionTemplateAsync('assets', 'installation'));
108- <div class="assets-list-git">
109- To download extensions from this page, you need to have <a href="https://git-scm.com/downloads" target="_blank">Git</a> installed.<br>
110- Click the <i class="fa-solid fa-sm fa-arrow-up-right-from-square"></i> icon to visit the Extension's repo for tips on how to use it.
111- </div>`);
112109 }
113110
114111 for (const i in availableAssets[assetType].sort((a, b) => a?.name && b?.name && a['name'].localeCompare(b['name']))) {
@@ -184,7 +181,7 @@ function downloadAssetsList(url) {
184181 const displayName = DOMPurify.sanitize(asset['name'] || asset['id']);
185182 const description = DOMPurify.sanitize(asset['description'] || '');
186183 const url = isValidUrl(asset['url']) ? asset['url'] : '';
187184 const title = assetType === 'extension' ? t`Extension repo/guide:` + ` ${url}` : 't`Preview in browser'`;
188185 const previewIcon = (assetType === 'extension' || assetType === 'character') ? 'fa-arrow-up-right-from-square' : 'fa-headphones-simple';
189186 const toolTag = assetType === 'extension' && asset['tool'];
190187
@@ -195,9 +192,10 @@ function downloadAssetsList(url) {
195192 <b>${displayName}</b>
196193 <a class="asset_preview" href="${url}" target="_blank" title="${title}">
197194 <i class="fa-solid fa-sm ${previewIcon}"></i>
198195 </a>` +
199196 ${(toolTag ? '<span class="tag" title="' + t`Adds a function tool` + '"><i class="fa-solid fa-sm fa-wrench"></i> Tool</span>' : ''}+
200- </span>
197+ t`Tool` + '</span>' : '') +
198+ `</span>
201199 <small class="asset-description">
202200 ${description}
203201 </small>
@@ -435,7 +433,7 @@ jQuery(async () => {
435433 const rememberKey = `Assets_SkipConfirm_${getStringHash(url)}`;
436434 const skipConfirm = accountStorage.getItem(rememberKey) === 'true';
437435
438436 const confirmation = skipConfirm || await Popup.show.confirm('t`Loading Asset List'`, `'<span>' + t`Are you sure you want to connect to the following url?` + `</span><var>${url}</var>`, {
439437 customInputs: [{ id: 'assets-remember', label: 'Don\'t ask again for this URL' }],
440438 onClose: popup => {
441439 if (popup.result) {
public/scripts/extensions/assets/installation.html+4 -0
@@ -0,0 +1,4 @@
1+<div class="assets-list-git">
2+ <span data-i18n="extension_install_1">To download extensions from this page, you need to have </span><a href="https://git-scm.com/downloads" target="_blank">Git</a><span data-i18n="extension_install_2"> installed.</span><br>
3+ <span data-i18n="extension_install_3">Click the </span><i class="fa-solid fa-sm fa-arrow-up-right-from-square"></i><span data-i18n="extension_install_4"> icon to visit the Extension's repo for tips on how to use it.</span>
4+</div>
4 \ No newline at end of file
public/scripts/extensions/assets/window.html+1 -1
@@ -33,7 +33,7 @@ To install a single 3rd party extension, use the &quot;Install Extensions&quot;
3333 <div id="assets_filters" class="flex-container">
3434 <select id="assets_type_select" class="text_pole flex1">
3535 </select>
3636 <input id="assets_search" class="text_pole flex1" data-i18n="[placeholder]Search" placeholder="Search" type="search">
3737 <div id="assets-characters-button" class="menu_button menu_button_icon">
3838 <i class="fa-solid fa-image-portrait"></i>
3939 <span data-i18n="Characters">Characters</span>
public/scripts/extensions/caption/index.js+56 -17
@@ -398,23 +398,62 @@ jQuery(async function () {
398398
399399 $('#caption_wand_container').append(sendButton);
400400 $(sendButton).on('click', () => {
401401 const hasCaptionModule = (() => {
402- (modules.includes('caption') && extension_settings.caption.source === 'extras') ||
402+ const settings = extension_settings.caption;
403- (extension_settings.caption.source === 'multimodal' && extension_settings.caption.multimodal_api === 'openai' && (secret_state[SECRET_KEYS.OPENAI] || extension_settings.caption.allow_reverse_proxy)) ||
403+
404- (extension_settings.caption.source === 'multimodal' && extension_settings.caption.multimodal_api === 'openrouter' && secret_state[SECRET_KEYS.OPENROUTER]) ||
404+ // Handle non-multimodal sources
405405 if (extension_settings.captionsettings.source === 'multimodalextras' && extension_settings.captionmodules.multimodal_api === includes('zerooneaicaption' && secret_state[SECRET_KEYS.ZEROONEAI])) ||return true;
406406 if (extension_settings.captionsettings.source === 'multimodallocal' &&|| extension_settings.captionsettings.multimodal_apisource === 'groqhorde' && secret_state[SECRET_KEYS.GROQ]) ||return true;
407- (extension_settings.caption.source === 'multimodal' && extension_settings.caption.multimodal_api === 'mistral' && (secret_state[SECRET_KEYS.MISTRALAI] || extension_settings.caption.allow_reverse_proxy)) ||
407+
408- (extension_settings.caption.source === 'multimodal' && extension_settings.caption.multimodal_api === 'google' && (secret_state[SECRET_KEYS.MAKERSUITE] || extension_settings.caption.allow_reverse_proxy)) ||
408+ // Handle multimodal sources
409- (extension_settings.caption.source === 'multimodal' && extension_settings.caption.multimodal_api === 'anthropic' && (secret_state[SECRET_KEYS.CLAUDE] || extension_settings.caption.allow_reverse_proxy)) ||
409+ if (settings.source === 'multimodal') {
410- (extension_settings.caption.source === 'multimodal' && extension_settings.caption.multimodal_api === 'ollama' && textgenerationwebui_settings.server_urls[textgen_types.OLLAMA]) ||
410+ const api = settings.multimodal_api;
411- (extension_settings.caption.source === 'multimodal' && extension_settings.caption.multimodal_api === 'llamacpp' && textgenerationwebui_settings.server_urls[textgen_types.LLAMACPP]) ||
411+
412- (extension_settings.caption.source === 'multimodal' && extension_settings.caption.multimodal_api === 'ooba' && textgenerationwebui_settings.server_urls[textgen_types.OOBA]) ||
412+ // APIs that support reverse proxy
413- (extension_settings.caption.source === 'multimodal' && extension_settings.caption.multimodal_api === 'koboldcpp' && textgenerationwebui_settings.server_urls[textgen_types.KOBOLDCPP]) ||
413+ const reverseProxyApis = {
414- (extension_settings.caption.source === 'multimodal' && extension_settings.caption.multimodal_api === 'vllm' && textgenerationwebui_settings.server_urls[textgen_types.VLLM]) ||
414+ 'openai': SECRET_KEYS.OPENAI,
415- (extension_settings.caption.source === 'multimodal' && extension_settings.caption.multimodal_api === 'custom') ||
415+ 'mistral': SECRET_KEYS.MISTRALAI,
416- extension_settings.caption.source === 'local' ||
416+ 'google': SECRET_KEYS.MAKERSUITE,
417- extension_settings.caption.source === 'horde';
417+ 'anthropic': SECRET_KEYS.CLAUDE,
418+ };
419+
420+ if (reverseProxyApis[api]) {
421+ if (secret_state[reverseProxyApis[api]] || settings.allow_reverse_proxy) {
422+ return true;
423+ }
424+ }
425+
426+ const chatCompletionApis = {
427+ 'openrouter': SECRET_KEYS.OPENROUTER,
428+ 'zerooneai': SECRET_KEYS.ZEROONEAI,
429+ 'groq': SECRET_KEYS.GROQ,
430+ 'cohere': SECRET_KEYS.COHERE,
431+ };
432+
433+ if (chatCompletionApis[api] && secret_state[chatCompletionApis[api]]) {
434+ return true;
435+ }
436+
437+ const textCompletionApis = {
438+ 'ollama': textgen_types.OLLAMA,
439+ 'llamacpp': textgen_types.LLAMACPP,
440+ 'ooba': textgen_types.OOBA,
441+ 'koboldcpp': textgen_types.KOBOLDCPP,
442+ 'vllm': textgen_types.VLLM,
443+ };
444+
445+ if (textCompletionApis[api] && textgenerationwebui_settings.server_urls[textCompletionApis[api]]) {
446+ return true;
447+ }
448+
449+ // Custom API doesn't need additional checks
450+ if (api === 'custom') {
451+ return true;
452+ }
453+ }
454+
455+ return false;
456+ })();
418457
419458 if (!hasCaptionModule) {
420459 toastr.error('Choose other captioning source in the extension settings.', 'Captioning is not available');
public/scripts/extensions/caption/settings.html+10 -0
@@ -19,6 +19,7 @@
1919 <select id="caption_multimodal_api" class="flex1 text_pole">
2020 <option value="zerooneai">01.AI (Yi)</option>
2121 <option value="anthropic">Anthropic</option>
22+ <option value="cohere">Cohere</option>
2223 <option value="custom" data-i18n="Custom (OpenAI-compatible)">Custom (OpenAI-compatible)</option>
2324 <option value="google">Google AI Studio</option>
2425 <option value="groq">Groq</option>
@@ -35,6 +36,8 @@
3536 <div class="flex1 flex-container flexFlowColumn flexNoGap">
3637 <label for="caption_multimodal_model" data-i18n="Model">Model</label>
3738 <select id="caption_multimodal_model" class="flex1 text_pole">
39+ <option data-type="cohere" value="c4ai-aya-vision-8b">c4ai-aya-vision-8b</option>
40+ <option data-type="cohere" value="c4ai-aya-vision-32b">c4ai-aya-vision-32b</option>
3841 <option data-type="mistral" value="pixtral-12b-latest">pixtral-12b-latest</option>
3942 <option data-type="mistral" value="pixtral-12b-2409">pixtral-12b-2409</option>
4043 <option data-type="mistral" value="pixtral-large-latest">pixtral-large-latest</option>
@@ -45,6 +48,12 @@
4548 <option data-type="openai" value="gpt-4o">gpt-4o</option>
4649 <option data-type="openai" value="gpt-4o-mini">gpt-4o-mini</option>
4750 <option data-type="openai" value="chatgpt-4o-latest">chatgpt-4o-latest</option>
51+ <option data-type="openai" value="o1">o1</option>
52+ <option data-type="openai" value="o1-2024-12-17">o1-2024-12-17</option>
53+ <option data-type="openai" value="gpt-4.5-preview">gpt-4.5-preview</option>
54+ <option data-type="openai" value="gpt-4.5-preview-2025-02-27">gpt-4.5-preview-2025-02-27</option>
55+ <option data-type="anthropic" value="claude-3-7-sonnet-latest">claude-3-7-sonnet-latest</option>
56+ <option data-type="anthropic" value="claude-3-7-sonnet-20250219">claude-3-7-sonnet-20250219</option>
4857 <option data-type="anthropic" value="claude-3-5-sonnet-latest">claude-3-5-sonnet-latest</option>
4958 <option data-type="anthropic" value="claude-3-5-sonnet-20241022">claude-3-5-sonnet-20241022</option>
5059 <option data-type="anthropic" value="claude-3-5-sonnet-20240620">claude-3-5-sonnet-20240620</option>
@@ -60,6 +69,7 @@
6069 <option data-type="google" value="gemini-2.0-flash">gemini-2.0-flash</option>
6170 <option data-type="google" value="gemini-2.0-flash-001">gemini-2.0-flash-001</option>
6271 <option data-type="google" value="gemini-2.0-flash-exp">gemini-2.0-flash-exp</option>
72+ <option data-type="google" value="gemini-2.0-flash-exp-image-generation">gemini-2.0-flash-exp-image-generation</option>
6373 <option data-type="google" value="gemini-2.0-flash-thinking-exp">gemini-2.0-flash-thinking-exp</option>
6474 <option data-type="google" value="gemini-2.0-flash-thinking-exp-01-21">gemini-2.0-flash-thinking-exp-01-21</option>
6575 <option data-type="google" value="gemini-2.0-flash-thinking-exp-1219">gemini-2.0-flash-thinking-exp-1219</option>
public/scripts/extensions/connection-manager/index.js+26 -4
@@ -16,12 +16,19 @@ import { t } from '../../i18n.js';
1616
1717const MODULE_NAME = 'connection-manager';
1818const NONE = '<None>';
19+const EMPTY = '<Empty>';
1920
2021const DEFAULT_SETTINGS = {
2122 profiles: [],
2223 selectedProfile: null,
2324};
2425
26+// Commands that can record an empty value into the profile
27+const ALLOW_EMPTY = [
28+ 'stop-strings',
29+ 'start-reply-with',
30+];
31+
2532const CC_COMMANDS = [
2633 'api',
2734 'preset',
@@ -31,6 +38,7 @@ const CC_COMMANDS = [
3138 'model',
3239 'proxy',
3340 'stop-strings',
41+ 'start-reply-with',
3442];
3543
3644const TC_COMMANDS = [
@@ -45,6 +53,7 @@ const TC_COMMANDS = [
4553 'instruct-state',
4654 'tokenizer',
4755 'stop-strings',
56+ 'start-reply-with',
4857];
4958
5059const FANCY_NAMES = {
@@ -60,6 +69,7 @@ const FANCY_NAMES = {
6069 'context': 'Context Template',
6170 'tokenizer': 'Tokenizer',
6271 'stop-strings': 'Custom Stopping Strings',
72+ 'start-reply-with': 'Start Reply With',
6373};
6474
6575/**
@@ -107,6 +117,7 @@ class ConnectionManagerSpinner {
107117/**
108118 * Get named arguments for the command callback.
109119 * @param {object} [args] Additional named arguments
120+ * @param {string} [args.force] Whether to force setting the value
110121 * @returns {object} Named arguments
111122 */
112123function getNamedArguments(args = {}) {
@@ -142,6 +153,7 @@ const profilesProvider = () => [
142153 * @property {string} [instruct-state] Instruct Mode
143154 * @property {string} [tokenizer] Tokenizer
144155 * @property {string} [stop-strings] Custom Stopping Strings
156+ * @property {string} [start-reply-with] Start Reply With
145157 * @property {string[]} [exclude] Commands to exclude
146158 */
147159
@@ -186,9 +198,10 @@ async function readProfileFromCommands(mode, profile, cleanUp = false) {
186198 continue;
187199 }
188200
201+ const allowEmpty = ALLOW_EMPTY.includes(command);
189202 const args = getNamedArguments();
190203 const result = await SlashCommandParser.commands[command].callback(args, '');
191- if (result) {
204+ if (result || (allowEmpty && result === '')) {
192205 profile[command] = result;
193206 continue;
194207 }
@@ -309,7 +322,14 @@ async function deleteConnectionProfile() {
309322 */
310323function makeFancyProfile(profile) {
311324 return Object.entries(FANCY_NAMES).reduce((acc, [key, value]) => {
312- if (!profile[key]) return acc;
325+ const allowEmpty = ALLOW_EMPTY.includes(key);
326+ if (!profile[key]) {
327+ if (profile[key] === '' && allowEmpty) {
328+ acc[value] = EMPTY;
329+ }
330+ return acc;
331+ }
332+
313333 acc[value] = profile[key];
314334 return acc;
315335 }, {});
@@ -339,11 +359,12 @@ async function applyConnectionProfile(profile) {
339359 }
340360
341361 const argument = profile[command];
342- if (!argument) {
362+ const allowEmpty = ALLOW_EMPTY.includes(command);
363+ if (!argument && !(allowEmpty && argument === '')) {
343364 continue;
344365 }
345366 try {
346367 const args = getNamedArguments(allowEmpty ? { force: 'true' } : {});
347368 await SlashCommandParser.commands[command].callback(args, argument);
348369 } catch (error) {
349370 console.error(`Failed to execute command: ${command} ${argument}`, error);
@@ -539,6 +560,7 @@ async function renderDetailsContent(detailsContent) {
539560 }, {});
540561 const template = $(await renderExtensionTemplateAsync(MODULE_NAME, 'edit', { name: profile.name, settings }));
541562 const newName = await callGenericPopup(template, POPUP_TYPE.INPUT, profile.name, {
563+ rows: 2,
542564 customButtons: [{
543565 text: t`Save and Update`,
544566 classes: ['popup-button-ok'],
public/scripts/extensions/expressions/index.js+132 -73
@@ -1,11 +1,11 @@
11import { Fuse } from '../../../lib.js';
22
33import { callPopupcharacters, eventSource, event_types, generateRaw, getRequestHeaders, main_api, online_status, saveSettingsDebounced, substituteParams, substituteParamsExtended, system_message_types, this_chid } from '../../../script.js';
44import { dragElement, isMobile } from '../../RossAscends-mods.js';
55import { getContext, getApiUrl, modules, extension_settings, ModuleWorkerWrapper, doExtrasFetch, renderExtensionTemplateAsync } from '../../extensions.js';
66import { loadMovingUIState, performFuzzySearch, power_user } from '../../power-user.js';
77import { onlyUnique, debounce, getCharaFilename, trimToEndSentence, trimToStartSentence, waitUntilCondition, findChar } from '../../utils.js';
88import { hideMutedSprites, selected_group } from '../../group-chats.js';
99import { isJsonSchemaSupported } from '../../textgen-settings.js';
1010import { debounce_timeout } from '../../constants.js';
1111import { SlashCommandParser } from '../../slash-commands/SlashCommandParser.js';
@@ -15,16 +15,32 @@ import { SlashCommandEnumValue, enumTypes } from '../../slash-commands/SlashComm
1515import { commonEnumProviders } from '../../slash-commands/SlashCommandCommonEnumsProvider.js';
1616import { slashCommandReturnHelper } from '../../slash-commands/SlashCommandReturnHelper.js';
1717import { generateWebLlmChatPrompt, isWebLlmSupported } from '../shared.js';
18+import { Popup, POPUP_RESULT } from '../../popup.js';
19+import { t } from '../../i18n.js';
1820export { MODULE_NAME };
1921
22+/**
23+* @typedef {object} Expression Expression definition with label and file path
24+* @property {string} label The label of the expression
25+* @property {ExpressionImage[]} files One or more images to represent this expression
26+*/
27+
28+/**
29+ * @typedef {object} ExpressionImage An expression image
30+ * @property {string} expression - The expression
31+ * @property {boolean} [isCustom=false] - If the expression is added by user
32+ * @property {string} fileName - The filename with extension
33+ * @property {string} title - The title for the image
34+ * @property {string} imageSrc - The image source / full path
35+ * @property {'success' | 'additional' | 'failure'} type - The type of the image
36+ */
37+
2038const MODULE_NAME = 'expressions';
2139const UPDATE_INTERVAL = 2000;
2240const STREAMING_UPDATE_INTERVAL = 10000;
23-const TALKINGCHECK_UPDATE_INTERVAL = 500;
2441const DEFAULT_FALLBACK_EXPRESSION = 'joy';
2542const DEFAULT_LLM_PROMPT = 'Ignore previous instructions. Classify the emotion of the last message. Output just one word, e.g. "joy" or "anger". Choose only one of the following labels: {{labels}}';
2643const DEFAULT_EXPRESSIONS = [
27- 'talkinghead',
2844 'admiration',
2945 'amusement',
3046 'anger',
@@ -54,6 +70,12 @@ const DEFAULT_EXPRESSIONS = [
5470 'surprise',
5571 'neutral',
5672];
73+
74+const OPTION_NO_FALLBACK = '#none';
75+const OPTION_EMOJI_FALLBACK = '#emoji';
76+const RESET_SPRITE_LABEL = '#reset';
77+
78+
5779/** @enum {number} */
5880const EXPRESSION_API = {
5981 local: 0,
@@ -65,35 +87,29 @@ const EXPRESSION_API = {
6587let expressionsList = null;
6688let lastCharacter = undefined;
6789let lastMessage = null;
68-let lastTalkingState = false;
90+/** @type {{[characterKey: string]: Expression[]}} */
69-let lastTalkingStateMessage = null; // last message as seen by `updateTalkingState` (tracked separately, different timer)
7091let spriteCache = {};
7192let inApiCall = false;
7293let lastServerResponseTime = 0;
73-export let lastExpression = {};
74-
75-function isTalkingHeadEnabled() {
76- return extension_settings.expressions.talkinghead && extension_settings.expressions.api == EXPRESSION_API.extras;
77-}
7894
79-/**
95+/** @type {{[characterName: string]: string}} */
80- * Returns the fallback expression if explicitly chosen, otherwise the default one
96+export let lastExpression = {};
81- * @returns {string} expression name
82- */
83-function getFallbackExpression() {
84- return extension_settings.expressions.fallback_expression ?? DEFAULT_FALLBACK_EXPRESSION;
85-}
8697
8798/**
88- * Toggles Talkinghead mode on/off.
99+ * Returns a placeholder image object for a given expression
89- *
100+ * @param {string} expression - The expression label
90- * Implements the `/th` slash command, which is meant to be bound to a Quick Reply button
101+ * @param {boolean} [isCustom=false] - Whether the expression is custom
91- * as a quick way to switch Talkinghead on or off (e.g. to conserve GPU resources when AFK
102+ * @returns {ExpressionImage} The placeholder image object
92- * for a long time).
93103 */
94104function toggleTalkingHeadCommandgetPlaceholderImage(_expression, isCustom = false) {
95- setTalkingHeadState(!extension_settings.expressions.talkinghead);
105+ return {
96- return String(extension_settings.expressions.talkinghead);
106+ expression: expression,
107+ isCustom: isCustom,
108+ title: 'No Image',
109+ type: 'failure',
110+ fileName: 'No-Image-Placeholder.svg',
111+ imageSrc: '/img/No-Image-Placeholder.svg',
112+ };
97113}
98114
99115function isVisualNovelMode() {
@@ -108,21 +124,21 @@ async function forceUpdateVisualNovelMode() {
108124
109125const updateVisualNovelModeDebounced = debounce(forceUpdateVisualNovelMode, debounce_timeout.quick);
110126
111127async function updateVisualNovelMode(namespriteFolderName, expression) {
112128 const containervnContainer = $('#visual-novel-wrapper');
113129
114130 await visualNovelRemoveInactive(containervnContainer);
115131
116132 const setSpritePromises = await visualNovelSetCharacterSprites(containervnContainer, namespriteFolderName, expression);
117133
118134 // calculate layer indices based on recent messages
119135 await visualNovelUpdateLayers(containervnContainer);
120136
121137 await Promise.allSettled(setSpritePromises);
122138
123139 // update again based on new sprites
124140 if (setSpritePromises.length > 0) {
125141 await visualNovelUpdateLayers(containervnContainer);
126142 }
127143}
128144
@@ -153,52 +169,60 @@ async function visualNovelRemoveInactive(container) {
153169 await Promise.allSettled(removeInactiveCharactersPromises);
154170}
155171
156-async function visualNovelSetCharacterSprites(container, name, expression) {
172+/**
173+ * Sets the character sprites for visual novel mode based on the provided container, name, and expression.
174+ *
175+ * @param {JQuery<HTMLElement>} vnContainer - The container element where the sprites will be set
176+ * @param {string} spriteFolderName - The name of the sprite folder
177+ * @param {string} expression - The expression to set for the characters
178+ * @returns {Promise<Array>} - An array of promises that resolve when the sprites are set
179+ */
180+async function visualNovelSetCharacterSprites(vnContainer, spriteFolderName, expression) {
181+ const originalExpression = expression;
157182 const context = getContext();
158183 const group = context.groups.find(x => x.id == context.groupId);
159- const labels = await getExpressionsList();
160184
161- const createCharacterPromises = [];
162185 const setSpritePromises = [];
163186
164187 for (const avatar of group.members) {
165- const isDisabled = group.disabled_members.includes(avatar);
166-
167188 // skip disabled characters
189+ const isDisabled = group.disabled_members.includes(avatar);
168190 if (isDisabled && hideMutedSprites) {
169191 continue;
170192 }
171193
172194 const character = context.characters.find(x => x.avatar == avatar);
173-
174195 if (!character) {
175196 continue;
176197 }
177198
178- const spriteFolderName = getSpriteFolderName({ original_avatar: character.avatar }, character.name);
199+ const expressionImage = vnContainer.find(`.expression-holder[data-avatar="${avatar}"]`);
200+ /** @type {JQuery<HTMLElement>} */
201+ let img;
202+
203+ const memberSpriteFolderName = getSpriteFolderName({ original_avatar: character.avatar }, character.name);
179204
180205 // download images if not downloaded yet
181206 if (spriteCache[spriteFolderNamememberSpriteFolderName] === undefined) {
182207 spriteCache[spriteFolderNamememberSpriteFolderName] = await getSpritesList(spriteFolderNamememberSpriteFolderName);
183208 }
184209
185- const sprites = spriteCache[spriteFolderName];
210+ const prevExpressionSrc = expressionImage.find('img').attr('src') || null;
186- const expressionImage = container.find(`.expression-holder[data-avatar="${avatar}"]`);
187- const defaultExpression = getFallbackExpression();
188- const defaultSpritePath = sprites.find(x => x.label === defaultExpression)?.path;
189- const noSprites = sprites.length === 0;
190211
191212 if (expressionImage!originalExpression && Array.isArray(spriteCache[memberSpriteFolderName]) && spriteCache[memberSpriteFolderName].length > 0) {
192- if (name == spriteFolderName) {
213+ expression = await getLastMessageSprite(avatar);
193- await validateImages(spriteFolderName, true);
214+ }
194- setExpressionOverrideHtml(true); // <= force clear expression override input
195- const currentSpritePath = labels.includes(expression) ? sprites.find(x => x.label === expression)?.path : '';
196215
197- const path = currentSpritePath || defaultSpritePath || '';
216+ const spriteFile = chooseSpriteForExpression(memberSpriteFolderName, expression, { prevExpressionSrc: prevExpressionSrc });
198- const img = expressionImage.find('img');
217+ if (expressionImage.length) {
218+ if (!spriteFolderName || spriteFolderName == memberSpriteFolderName) {
219+ await validateImages(memberSpriteFolderName, true);
220+ setExpressionOverrideHtml(true); // <= force clear expression override input
221+ const path = spriteFile?.imageSrc || '';
222+ img = expressionImage.find('img');
199223 await setImage(img, path);
200224 }
201225 expressionImage.toggleClass('hidden', noSprites!spriteFile);
202226 } else {
203227 const template = $('#expression-holder').clone();
204228 template.attr('id', `expression-${avatar}`);
@@ -206,21 +230,49 @@ async function visualNovelSetCharacterSprites(container, name, expression) {
206230 template.find('.drag-grabber').attr('id', `expression-${avatar}header`);
207231 $('#visual-novel-wrapper').append(template);
208232 dragElement($(template[0]));
209233 template.toggleClass('hidden', noSprites!spriteFile);
210234 awaitimg setImage(= template.find('img'), defaultSpritePath || '');
235+ await setImage(img, spriteFile?.imageSrc || '');
211236 const fadeInPromise = new Promise(resolve => {
212237 template.fadeIn(250, () => resolve());
213238 });
214239 createCharacterPromisessetSpritePromises.push(fadeInPromise);
215- const setSpritePromise = setLastMessageSprite(template.find('img'), avatar, labels);
216- setSpritePromises.push(setSpritePromise);
217240 }
241+
242+ if (!img) {
243+ continue;
244+ }
245+
246+ img.attr('data-sprite-folder-name', spriteFolderName);
247+ img.attr('data-expression', expression);
248+ img.attr('data-sprite-filename', spriteFile?.fileName || null);
249+ img.attr('title', expression);
250+
251+ if (spriteFile) console.info(`Expression set for group member ${character.name}`, { expression: spriteFile.expression, file: spriteFile.fileName });
252+ else if (expressionImage.length) console.info(`Expression unset for group member ${character.name} - No sprite found`, { expression: expression });
253+ else console.info(`Expression not available for group member ${character.name}`, { expression: expression });
218254 }
219255
220- await Promise.allSettled(createCharacterPromises);
221256 return setSpritePromises;
222257}
223258
259+/**
260+ * Classifies the text of the latest message and returns the expression label.
261+ * @param {string} avatar - The avatar of the character to get the last message for
262+ * @returns {Promise<string>} - The expression label
263+ */
264+async function getLastMessageSprite(avatar) {
265+ const context = getContext();
266+ const lastMessage = context.chat.slice().reverse().find(x => x.original_avatar == avatar || (x.force_avatar && x.force_avatar.includes(encodeURIComponent(avatar))));
267+
268+ if (lastMessage) {
269+ const text = lastMessage.mes || '';
270+ return await getExpressionLabel(text);
271+ }
272+
273+ return null;
274+}
275+
224276async function visualNovelUpdateLayers(container) {
225277 const context = getContext();
226278 const group = context.groups.find(x => x.id == context.groupId);
@@ -256,11 +308,17 @@ async function visualNovelUpdateLayers(container) {
256308 const containerWidth = container.width();
257309 const pivotalPoint = containerWidth * 0.5;
258310
259311 let images = Array.from($('#visual-novel-wrapper .expression-holder')).sort(sortFunction);
260312 let imagesWidth = [];
261313
262- images.sort(sortFunction).each(function () {
314+ for (const image of images) {
263- imagesWidth.push($(this).width());
315+ if (image instanceof HTMLImageElement && !image.complete) {
316+ await new Promise(resolve => image.addEventListener('load', resolve, { once: true }));
317+ }
318+ }
319+
320+ images.forEach(image => {
321+ imagesWidth.push($(image).width());
264322 });
265323
266324 let totalWidth = imagesWidth.reduce((a, b) => a + b, 0);
@@ -274,7 +332,7 @@ async function visualNovelUpdateLayers(container) {
274332 currentPosition = 0; // Reset the initial position to 0
275333 }
276334
277335 images.sort(sortFunction).eachforEach((indexcurrent, currentindex) => {
278336 const element = $(current);
279337 const elementID = element.attr('id');
280338
@@ -294,9 +352,15 @@ async function visualNovelUpdateLayers(container) {
294352 element.show();
295353
296354 const promise = new Promise(resolve => {
297- element.animate({ left: currentPosition + 'px' }, 500, () => {
355+ if (power_user.reduced_motion) {
298- resolve();
356+ element.css('left', currentPosition + 'px');
299- });
357+ requestAnimationFrame(() => resolve());
358+ }
359+ else {
360+ element.animate({ left: currentPosition + 'px' }, 500, () => {
361+ resolve();
362+ });
363+ }
300364 });
301365
302366 currentPosition += imagesWidth[index];
@@ -307,23 +371,12 @@ async function visualNovelUpdateLayers(container) {
307371 await Promise.allSettled(setLayerIndicesPromises);
308372}
309373
310-async function setLastMessageSprite(img, avatar, labels) {
311- const context = getContext();
312- const lastMessage = context.chat.slice().reverse().find(x => x.original_avatar == avatar || (x.force_avatar && x.force_avatar.includes(encodeURIComponent(avatar))));
313-
314- if (lastMessage) {
public/scripts/extensions/expressions/list-item.html+0 -0
public/scripts/extensions/expressions/settings.html+0 -0
public/scripts/extensions/expressions/style.css+0 -0
public/scripts/extensions/expressions/templates/upload-expression.html+0 -0
public/scripts/extensions/gallery/index.js+0 -0
public/scripts/extensions/gallery/style.css+0 -0
public/scripts/extensions/memory/index.js+0 -0
public/scripts/extensions/memory/settings.html+0 -0
public/scripts/extensions/memory/style.css+0 -0
public/scripts/extensions/quick-reply/index.js+0 -0
public/scripts/extensions/regex/editor.html+0 -0
public/scripts/extensions/regex/engine.js+0 -0
public/scripts/extensions/regex/index.js+0 -0
public/scripts/extensions/regex/style.css+0 -0
public/scripts/extensions/shared.js+0 -0
public/scripts/extensions/stable-diffusion/index.js+0 -0
public/scripts/extensions/token-counter/index.js+0 -0
public/scripts/extensions/token-counter/window.html+0 -0
public/scripts/extensions/translate/index.js+0 -0
public/scripts/extensions/tts/alltalk.js+0 -0
public/scripts/extensions/tts/index.js+0 -0
public/scripts/extensions/tts/kokoro-worker.js+0 -0
public/scripts/extensions/tts/kokoro.js+0 -0
public/scripts/extensions/tts/lib/README.md+0 -0
public/scripts/extensions/tts/lib/kokoro.web.js+0 -0
public/scripts/extensions/tts/openai-compatible.js+0 -0
public/scripts/extensions/tts/readme.md+0 -0
public/scripts/extensions/tts/system.js+0 -0
public/scripts/extensions/vectors/index.js+0 -0
public/scripts/extensions/vectors/settings.html+0 -0
public/scripts/extensions/vectors/webllm.js+0 -0
public/scripts/group-chats.js+0 -0
public/scripts/horde.js+0 -0
public/scripts/i18n.js+0 -0
public/scripts/instruct-mode.js+0 -0
public/scripts/logprobs.js+0 -0
public/scripts/openai.js+0 -0
public/scripts/personas.js+0 -0
public/scripts/power-user.js+0 -0
public/scripts/preset-manager.js+0 -0
public/scripts/reasoning.js+0 -0
public/scripts/slash-commands.js+0 -0
public/scripts/slash-commands/SlashCommandCommonEnumsProvider.js+0 -0
public/scripts/sse-stream.js+0 -0
public/scripts/st-context.js+0 -0
public/scripts/tags.js+0 -0
public/scripts/templates/hotkeys.html+0 -0
public/scripts/templates/macros.html+0 -0
public/scripts/textgen-models.js+0 -0
public/scripts/textgen-settings.js+0 -0
public/scripts/tokenizers.js+0 -0
public/scripts/tool-calling.js+0 -0
public/scripts/utils.js+0 -0
public/scripts/world-info.js+0 -0
public/style.css+0 -0
server.js+0 -0
src/command-line.js+0 -0
src/electron/Start.bat+0 -0
src/electron/index.js+0 -0
src/electron/package-lock.json+0 -0
src/electron/package.json+0 -0
src/electron/start.sh+0 -0
src/endpoints/anthropic.js+0 -0
src/endpoints/assets.js+0 -0
src/endpoints/avatars.js+0 -0
src/endpoints/azure.js+0 -0
src/endpoints/backends/chat-completions.js+0 -0
src/endpoints/backends/kobold.js+0 -0
src/endpoints/backends/scale-alt.js+0 -0
src/endpoints/backends/text-completions.js+0 -0
src/endpoints/backgrounds.js+0 -0
src/endpoints/caption.js+0 -0
src/endpoints/characters.js+0 -0
src/endpoints/chats.js+0 -0
src/endpoints/classify.js+0 -0
src/endpoints/content-manager.js+0 -0
src/endpoints/extensions.js+0 -0
src/endpoints/files.js+0 -0
src/endpoints/google.js+0 -0
src/endpoints/groups.js+0 -0
src/endpoints/horde.js+0 -0
src/endpoints/images.js+0 -0
src/endpoints/moving-ui.js+0 -0
src/endpoints/novelai.js+0 -0
src/endpoints/openai.js+0 -0
src/endpoints/openrouter.js+0 -0
src/endpoints/presets.js+0 -0
src/endpoints/quick-replies.js+0 -0
src/endpoints/search.js+0 -0
src/endpoints/secrets.js+0 -0
src/endpoints/settings.js+0 -0
src/endpoints/speech.js+0 -0
src/endpoints/sprites.js+0 -0
src/endpoints/stable-diffusion.js+0 -0
src/endpoints/stats.js+0 -0
src/endpoints/themes.js+0 -0
src/endpoints/thumbnails.js+0 -0
src/endpoints/tokenizers.js+0 -0
src/endpoints/translate.js+0 -0
src/endpoints/users-admin.js+0 -0
src/endpoints/users-private.js+0 -0
src/endpoints/users-public.js+0 -0
src/endpoints/vectors.js+0 -0
src/endpoints/worldinfo.js+0 -0
src/express-common.js+0 -0
src/middleware/accessLogWriter.js+0 -0
src/middleware/basicAuth.js+0 -0
src/middleware/corsProxy.js+0 -0
src/middleware/webpack-serve.js+0 -0
src/middleware/whitelist.js+0 -0
src/plugin-loader.js+0 -0
src/prompt-converters.js+0 -0
src/server-events.js+0 -0
src/server-startup.js+0 -0
src/transformers.js+0 -0
src/users.js+0 -0
src/util.js+0 -0
tests/package-lock.json+0 -0
webpack.config.js+0 -0
Diff truncated