Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ee041c11d | ||
|
|
77ba2c21a5 | ||
|
|
597517730b | ||
|
|
44af6bc169 | ||
|
|
3913dfffb9 | ||
|
|
d08bbb1096 | ||
|
|
b1f5c29921 | ||
|
|
bfff81bbf9 | ||
|
|
d5b6b7924b | ||
|
|
e0c1dbad8f | ||
|
|
37b3e9e461 | ||
|
|
29a18ce0c6 | ||
|
|
982dfec022 | ||
|
|
95ca4315bd | ||
|
|
97392a4ca0 | ||
|
|
e5ae782705 | ||
|
|
9d61bbc3ed | ||
|
|
3eb3861596 | ||
|
|
c325c6d8e9 | ||
|
|
91c40280ed | ||
|
|
b2fa6a0afb | ||
|
|
4ca9863f38 | ||
|
|
3a9c10d680 | ||
|
|
338e35fc8a | ||
|
|
5512473b29 | ||
|
|
45f2951854 | ||
|
|
44f433d10b | ||
|
|
08e1ce8ec5 | ||
|
|
aa50edcf45 | ||
|
|
2e4ca3dabf | ||
|
|
bd9479fef8 | ||
|
|
940b3722cf | ||
|
|
338119ab77 | ||
|
|
1bb2a5ea19 | ||
|
|
7201d87f2e | ||
|
|
d327412e29 | ||
|
|
97dba399e4 | ||
|
|
25fb4ceb50 | ||
|
|
c249e5384c | ||
|
|
09d72828cb | ||
|
|
09bb7622ed | ||
|
|
7948886c1d | ||
|
|
0a493cad89 | ||
|
|
29e3136473 | ||
|
|
b1ef254f78 | ||
|
|
77cbcd8774 | ||
|
|
aecbb9a2ee | ||
|
|
a028bec87b | ||
|
|
752ae243b9 | ||
|
|
efbff34342 | ||
|
|
6d2165149b | ||
|
|
ff31ca6692 | ||
|
|
4df18ccb0b | ||
|
|
e5d4ff5fae | ||
|
|
8aeda4a101 | ||
|
|
15a3e3f072 | ||
|
|
53f251c52a | ||
|
|
d8b3d36a84 | ||
|
|
b8f2b1cfa6 | ||
|
|
b44b12b527 | ||
|
|
d720605be8 | ||
|
|
b436971a09 | ||
|
|
a678299700 | ||
|
|
552936a0d8 | ||
|
|
d1e719eb48 | ||
|
|
4003251c2f | ||
|
|
767746beb2 | ||
|
|
277285d30c | ||
|
|
0ac31c8fcd | ||
|
|
3f72d3df80 | ||
|
|
051346c517 | ||
|
|
af7bd65f42 | ||
|
|
78628f7dbb | ||
|
|
64c96e895c | ||
|
|
4d67a6986b | ||
|
|
d72f4b6fcb | ||
|
|
737cb95adb | ||
|
|
1a561f3bb0 | ||
|
|
f4f390f325 | ||
|
|
6a325d2b22 | ||
|
|
a7f144f28b | ||
|
|
7d3d1231a9 | ||
|
|
24379db88d | ||
|
|
ff10249ab5 | ||
|
|
64e8c8d964 | ||
|
|
f3521e7007 | ||
|
|
fb915b4321 | ||
|
|
fa9a28c6f3 | ||
|
|
ff4c6fa1bb | ||
|
|
81c85f8049 | ||
|
|
67eba1b472 | ||
|
|
df27574247 | ||
|
|
a9c377c3c8 | ||
|
|
94a5773412 | ||
|
|
5e68410d4e | ||
|
|
5ec635aa40 | ||
|
|
700fc05411 | ||
|
|
c9c652eece | ||
|
|
d96d1451ab | ||
|
|
a45ec30cf0 | ||
|
|
8d8e3833f6 | ||
|
|
760263b78a | ||
|
|
128888f605 | ||
|
|
8e8f501279 | ||
|
|
9e0ecefd64 | ||
|
|
0f4a0147fd | ||
|
|
21e8cf9060 | ||
|
|
e2d8c0200f | ||
|
|
04ef0632ee | ||
|
|
d2b2b1b4a6 | ||
|
|
a8021ee6e1 | ||
|
|
63feac9423 | ||
|
|
c918f4f36d | ||
|
|
b89293418d | ||
|
|
ff1ca1412a | ||
|
|
6bd766f857 | ||
|
|
004f1336e6 | ||
|
|
b4c721d7bc | ||
|
|
e3f41666c6 | ||
|
|
271c1e22ca | ||
|
|
bef7b39cbe | ||
|
|
c78f978ede | ||
|
|
b06a62952d | ||
|
|
f205128cc0 | ||
|
|
16f6787aa9 | ||
|
|
322c9f03e1 | ||
|
|
4371574b7f | ||
|
|
f41127a0f9 | ||
|
|
b3f1114a68 | ||
|
|
b04c974407 | ||
|
|
94139f465e | ||
|
|
6f61bc8d95 | ||
|
|
319c647e13 | ||
|
|
a794a3780a | ||
|
|
4839c76fb5 | ||
|
|
e52c035fcd | ||
|
|
d306194c51 | ||
|
|
45009cd0e4 | ||
|
|
0e5928b13a | ||
|
|
2cb1861db6 | ||
|
|
7766d41c42 | ||
|
|
e3fbc8510a | ||
|
|
67f97dbe73 | ||
|
|
963786758b | ||
|
|
240e9ca907 | ||
|
|
a6486d7f08 | ||
|
|
bdaadd17dd | ||
|
|
e4ad489448 | ||
|
|
2a00253937 | ||
|
|
276a0c2125 | ||
|
|
c3f36b2b9f | ||
|
|
f9c42a32dd | ||
|
|
bae4fd9f98 | ||
|
|
c4024fe208 | ||
|
|
4ab4fca89d | ||
|
|
30e66f0ea0 | ||
|
|
dbf15b335e | ||
|
|
645b8063e1 | ||
|
|
f868e9ed68 | ||
|
|
9917935248 | ||
|
|
2e476bc742 | ||
|
|
bf91d9afc9 | ||
|
|
5e3c7570fa | ||
|
|
b2c320dc0b | ||
|
|
6d9d715948 | ||
|
|
9bce79f797 | ||
|
|
b259c975a3 | ||
|
|
db07c4a120 | ||
|
|
c0a4682dcc | ||
|
|
8879272a6b | ||
|
|
e0ed67357c | ||
|
|
1c5091539c | ||
|
|
dbf9bc1a54 | ||
|
|
0cb193c119 | ||
|
|
a187c34638 | ||
|
|
ae5c65c3cf | ||
|
|
3ad9b05e27 | ||
|
|
92dd9ecab2 | ||
|
|
7418d272a7 | ||
|
|
7a9483efba | ||
|
|
e19c4f7e19 | ||
|
|
2415e6bc86 | ||
|
|
8c07dcda24 | ||
|
|
90892fd236 | ||
|
|
764e9ddec0 | ||
|
|
a608b3451b | ||
|
|
e834d3724b | ||
|
|
f20aed95d0 | ||
|
|
83a16d144c | ||
|
|
ff8b029c9d | ||
|
|
2abade3f80 | ||
|
|
5600c2067b | ||
|
|
8e10051100 | ||
|
|
3070cf26cd | ||
|
|
04df80d907 | ||
|
|
b9efb12d4d | ||
|
|
552cb948ed | ||
|
|
e41bcf0cce | ||
|
|
f5b1f913f9 | ||
|
|
b5a1d227fd | ||
|
|
63fa9c1d07 | ||
|
|
3db508a759 | ||
|
|
15e2f24046 | ||
|
|
c138bbd3d7 | ||
|
|
b7bb8be35a | ||
|
|
994234e557 | ||
|
|
d552be8484 | ||
|
|
c536bfc7f5 | ||
|
|
744ce7705d | ||
|
|
649b4a5280 | ||
|
|
96aa970604 | ||
|
|
d8f39269b9 | ||
|
|
d789efba07 | ||
|
|
4fa37e52f7 | ||
|
|
4dbdd06d6d | ||
|
|
8422d2d0c7 | ||
|
|
b7f0040831 | ||
|
|
57386347ee | ||
|
|
e678d24a39 | ||
|
|
3f8b9998ca | ||
|
|
54bba07420 | ||
|
|
537f0559ab | ||
|
|
ccf8ce7a06 | ||
|
|
8f5c8f0a8e | ||
|
|
334635ce74 | ||
|
|
46f1d211e1 | ||
|
|
0cef10f63f | ||
|
|
496b3570e6 | ||
|
|
a93fc0443e | ||
|
|
7ffb28f753 | ||
|
|
0ba0418fac | ||
|
|
8462cbaebb | ||
|
|
ab8d7e5184 | ||
|
|
162d45a241 | ||
|
|
8aaaab37b7 | ||
|
|
45bf3a402a | ||
|
|
31f4d5dbfe | ||
|
|
a923b0eefe | ||
|
|
eeda4d377e | ||
|
|
3bd1034639 | ||
|
|
3a952293b4 | ||
|
|
966ab8336b | ||
|
|
1b0417824f | ||
|
|
3efe809d27 | ||
|
|
87a0ac7cd1 | ||
|
|
56e995c320 | ||
|
|
b44a67b7e7 | ||
|
|
f687bc95e9 | ||
|
|
46ea79bab5 | ||
|
|
4672647293 | ||
|
|
9383b3ab13 | ||
|
|
4d1619ba47 | ||
|
|
357da3219b | ||
|
|
d118eee014 |
@@ -11,6 +11,7 @@
|
||||
/docker/extensions
|
||||
/docker/data
|
||||
/docker/plugins
|
||||
/docker/dist
|
||||
/public/scripts/extensions/third-party
|
||||
|
||||
# --- Plugins (keep only package files) ---
|
||||
|
||||
@@ -102,5 +102,28 @@ module.exports = {
|
||||
// These rules should eventually be enabled.
|
||||
'no-async-promise-executor': 'off',
|
||||
'no-inner-declarations': 'off',
|
||||
// Additional formatting rules based on codebase conventions
|
||||
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
|
||||
'array-bracket-spacing': ['error', 'never'],
|
||||
'computed-property-spacing': ['error', 'never'],
|
||||
'block-spacing': ['error', 'always'],
|
||||
'keyword-spacing': ['error', { before: true, after: true }],
|
||||
'space-before-blocks': ['error', 'always'],
|
||||
'space-before-function-paren': ['error', { anonymous: 'always', named: 'never', asyncArrow: 'always' }],
|
||||
'space-in-parens': ['error', 'never'],
|
||||
'comma-spacing': ['error', { before: false, after: true }],
|
||||
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
|
||||
'func-call-spacing': ['error', 'never'],
|
||||
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1, maxBOF: 0 }],
|
||||
'padded-blocks': ['error', 'never'],
|
||||
'no-whitespace-before-property': 'error',
|
||||
'space-unary-ops': ['error', { words: true, nonwords: false }],
|
||||
'arrow-spacing': ['error', { before: true, after: true }],
|
||||
'template-curly-spacing': ['error', 'never'],
|
||||
'rest-spread-spacing': ['error', 'never'],
|
||||
'generator-star-spacing': ['error', { before: false, after: true }],
|
||||
'yield-star-spacing': ['error', { before: false, after: true }],
|
||||
'template-tag-spacing': ['error', 'never'],
|
||||
'switch-colon-spacing': ['error', { after: true, before: false }],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -36,7 +36,7 @@ Angefangen im Februar 2023 als Fork von TavernAI 1.2.8 hat SillyTavern nun über
|
||||
|
||||
## Brauche ich einen leistungsstarken PC, um SillyTavern auszuführen?
|
||||
|
||||
Die Hardwareanforderungen sind minimal: Es läuft auf allem, was NodeJS 18 oder höher ausführen kann. Wenn du LLM-Inferenz auf deinem lokalen Rechner durchführen möchtest, empfehlen wir eine NVIDIA-Grafikkarte der 3000er-Serie mit mindestens 6 GB VRAM, aber die tatsächlichen Anforderungen können je nach Modell und Backend, das du verwendest, variieren.
|
||||
Die Hardwareanforderungen sind minimal: Es läuft auf allem, was NodeJS 20 oder höher ausführen kann. Wenn du LLM-Inferenz auf deinem lokalen Rechner durchführen möchtest, empfehlen wir eine NVIDIA-Grafikkarte der 3000er-Serie mit mindestens 6 GB VRAM, aber die tatsächlichen Anforderungen können je nach Modell und Backend, das du verwendest, variieren.
|
||||
|
||||
## Fragen oder Vorschläge?
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ SillyTavern(略してST)は、テキスト生成LLM、画像生成エンジ
|
||||
|
||||
## SillyTavernを実行するには強力なPCが必要ですか?
|
||||
|
||||
ハードウェア要件は最小限です。NodeJS 18以上を実行できるものであれば何でも動作します。ローカルマシンでLLM推論を行う場合は、少なくとも6GBのVRAMを搭載した3000シリーズのNVIDIAグラフィックスカードを推奨しますが、実際の要件は使用するモデルやバックエンドによって異なる場合があります。
|
||||
ハードウェア要件は最小限です。NodeJS 20以上を実行できるものであれば何でも動作します。ローカルマシンでLLM推論を行う場合は、少なくとも6GBのVRAMを搭載した3000シリーズのNVIDIAグラフィックスカードを推奨しますが、実際の要件は使用するモデルやバックエンドによって異なる場合があります。
|
||||
|
||||
## 質問や提案はありますか?
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ SillyTavern(짧게는 ST)은 텍스트 생성 LLM, 이미지 생성 엔진, TTS
|
||||
|
||||
## SillyTavern을 위해서 좋은 성능의 PC가 필요한가요?
|
||||
|
||||
하드웨어 요구 사항은 거의 없습니다: NodeJS 18 이상을 실행할 수 있는 모든 환경에서 작동합니다. 다만 로컬 LLM 모델을 사용할 경우, 최소 6GB VRAM 이상의 3000번대 NVIDIA 그래픽 카드를 권장하지만, 실제 요구 사항은 사용하는 모델과 백엔드에 따라 달라질 수 있습니다.
|
||||
하드웨어 요구 사항은 거의 없습니다: NodeJS 20 이상을 실행할 수 있는 모든 환경에서 작동합니다. 다만 로컬 LLM 모델을 사용할 경우, 최소 6GB VRAM 이상의 3000번대 NVIDIA 그래픽 카드를 권장하지만, 실제 요구 사항은 사용하는 모델과 백엔드에 따라 달라질 수 있습니다.
|
||||
|
||||
## 질문이나 제안이 있으신가요?
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ SillyTavern (или сокращенно ST) - это локально уста
|
||||
|
||||
## Нужен ли мне мощный компьютер для запуска SillyTavern?
|
||||
|
||||
Требования к оборудованию минимальны: он будет работать на всем, что может запустить NodeJS 18 или выше. Если вы собираетесь выполнять инференс LLM на своем локальном компьютере, мы рекомендуем видеокарту NVIDIA 3000-й серии с не менее чем 6 ГБ видеопамяти, но фактические требования могут варьироваться в зависимости от модели и используемого вами бэкенда.
|
||||
Требования к оборудованию минимальны: он будет работать на всем, что может запустить NodeJS 20 или выше. Если вы собираетесь выполнять инференс LLM на своем локальном компьютере, мы рекомендуем видеокарту NVIDIA 3000-й серии с не менее чем 6 ГБ видеопамяти, но фактические требования могут варьироваться в зависимости от модели и используемого вами бэкенда.
|
||||
|
||||
## Вопросы или предложения?
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ SillyTavern 于 2023 年 2 月作为 TavernAI 1.2.8 的一个分支开始,如
|
||||
|
||||
## 我需要一台性能强大的电脑来运行 SillyTavern 吗?
|
||||
|
||||
硬件要求很低:任何可以运行 NodeJS 18 或更高版本的设备都可以运行它。如果您打算在本地计算机上进行 LLM 推理,我们建议使用至少具有 6GB VRAM 的 3000 系列 NVIDIA 显卡,但实际要求可能会根据模型和您使用的后端而有所不同。
|
||||
硬件要求很低:任何可以运行 NodeJS 20 或更高版本的设备都可以运行它。如果您打算在本地计算机上进行 LLM 推理,我们建议使用至少具有 6GB VRAM 的 3000 系列 NVIDIA 显卡,但实际要求可能会根据模型和您使用的后端而有所不同。
|
||||
|
||||
## 有问题或建议?
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ SillyTavern 起源於 2023 年 2 月,作為 TavernAI 1.2.8 的分支版本發
|
||||
|
||||
## 我需要高效能電腦才能運行 SillyTavern 嗎?
|
||||
|
||||
SillyTavern 的硬體需求相當低。任何能夠運行 NodeJS 18 或更高版本的設備都可以執行。若您打算在本地機器上進行 LLM 推理,我們建議使用擁有至少 6GB VRAM 的 3000 系列 NVIDIA 顯示卡,但實際需求可能因模型和您使用的後端而異。
|
||||
SillyTavern 的硬體需求相當低。任何能夠運行 NodeJS 20 或更高版本的設備都可以執行。若您打算在本地機器上進行 LLM 推理,我們建議使用擁有至少 6GB VRAM 的 3000 系列 NVIDIA 顯示卡,但實際需求可能因模型和您使用的後端而異。
|
||||
|
||||
## 有任何問題或建議?
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ We have a [Documentation website](https://docs.sillytavern.app/) to answer most
|
||||
|
||||
SillyTavern (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.
|
||||
|
||||
Beginning in February 2023 as a fork of TavernAI 1.2.8, SillyTavern now has over 200 contributors and 2 years of independent development under its belt, and continues to serve as a leading software for savvy AI hobbyists.
|
||||
Beginning in February 2023 as a fork of TavernAI 1.2.8, SillyTavern now has over 300 contributors and 3 years of independent development under its belt, and continues to serve as a leading software for savvy AI hobbyists.
|
||||
|
||||
## Our Vision
|
||||
|
||||
@@ -33,7 +33,7 @@ Beginning in February 2023 as a fork of TavernAI 1.2.8, SillyTavern now has over
|
||||
|
||||
## Do I need a powerful PC to run SillyTavern?
|
||||
|
||||
The hardware requirements are minimal: it will run on anything that can run NodeJS 18 or higher. If you intend to do LLM inference on your local machine, we recommend a 3000-series NVIDIA graphics card with at least 6GB of VRAM, but actual requirements may vary depending on the model and backend you choose to use.
|
||||
The hardware requirements are minimal: it will run on anything that can run NodeJS 20 or higher. If you intend to do LLM inference on your local machine, we recommend a 3000-series NVIDIA graphics card with at least 6GB of VRAM, but actual requirements may vary depending on the model and backend you choose to use.
|
||||
|
||||
## Questions or suggestions?
|
||||
|
||||
|
||||
@@ -35,13 +35,13 @@ jobs:
|
||||
# It's currently not possible to have `branches` under the `schedule` trigger
|
||||
- name: Checkout the release branch (on release)
|
||||
if: ${{ github.event_name == 'release' || github.event_name == 'push' }}
|
||||
uses: actions/checkout@v4.1.2
|
||||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
||||
with:
|
||||
ref: "release"
|
||||
|
||||
- name: Checkout the staging branch
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
uses: actions/checkout@v4.1.2
|
||||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
||||
with:
|
||||
ref: "staging"
|
||||
|
||||
@@ -55,13 +55,13 @@ jobs:
|
||||
|
||||
# Setting up QEMU for multi-arch image build
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
|
||||
|
||||
- name: Extract metadata (tags, labels) for the image
|
||||
uses: docker/metadata-action@v5.5.1
|
||||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
|
||||
id: metadata
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
@@ -74,7 +74,7 @@ jobs:
|
||||
|
||||
# Login into package repository as the person who created the release
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
@@ -84,7 +84,7 @@ jobs:
|
||||
# Tag it with branch name
|
||||
# Assumes branch name is the version number
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5.3.0
|
||||
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Auto-Label Issues (Based on Issue Content)
|
||||
# only auto label based on issue content once, on open (to prevent re-labeling removed labels)
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
|
||||
# Issue Labeler
|
||||
# https://github.com/marketplace/actions/regex-issue-labeler
|
||||
uses: github/issue-labeler@v3.4
|
||||
uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
|
||||
with:
|
||||
configuration-path: .github/issues-auto-labels.yml
|
||||
enable-versioned-regex: 0
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -66,7 +66,7 @@ jobs:
|
||||
if: contains(fromJSON('["👩💻 Good First Issue", "🙏 Help Wanted", "🪲 Confirmed", "⚠️ High Priority", "❕ Medium Priority", "💤 Low Priority"]'), github.event.label.name)
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'add-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -76,7 +76,7 @@ jobs:
|
||||
if: contains(fromJSON('["✅ Done", "✅ Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'remove-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -86,7 +86,7 @@ jobs:
|
||||
if: contains(fromJSON('["❌ wontfix","👍 Approved","👩💻 Good First Issue"]'), github.event.label.name)
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'remove-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -96,7 +96,7 @@ jobs:
|
||||
if: github.event.label.name == '🪲 Confirmed'
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'remove-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -114,7 +114,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -123,7 +123,7 @@ jobs:
|
||||
- name: Remove Stale Label
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'remove-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -141,7 +141,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -150,12 +150,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Post Issue Comments Based on Labels
|
||||
# Label Commenter
|
||||
# https://github.com/marketplace/actions/label-commenter
|
||||
uses: peaceiris/actions-label-commenter@v1.10.0
|
||||
uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0
|
||||
with:
|
||||
config_file: .github/issues-auto-comments.yml
|
||||
github_token: ${{ steps.app.outputs.token }}
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Extract Linked Issues from Commit Message
|
||||
id: extract_issues
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Mark Issues/PRs without Activity
|
||||
# Close Stale Issues and PRs
|
||||
# https://github.com/marketplace/actions/close-stale-issues
|
||||
uses: actions/stale@v9.1.0
|
||||
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
|
||||
with:
|
||||
repo-token: ${{ steps.app.outputs.token }}
|
||||
days-before-stale: 183
|
||||
@@ -67,7 +67,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -76,7 +76,7 @@ jobs:
|
||||
- name: Mark Issues/PRs Awaiting User Response
|
||||
# Close Stale Issues and PRs
|
||||
# https://github.com/marketplace/actions/close-stale-issues
|
||||
uses: actions/stale@v9.1.0
|
||||
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
|
||||
with:
|
||||
repo-token: ${{ steps.app.outputs.token }}
|
||||
days-before-stale: 7
|
||||
@@ -105,7 +105,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -114,7 +114,7 @@ jobs:
|
||||
- name: Mark Issues with Alternative Exists
|
||||
# Close Stale Issues and PRs
|
||||
# https://github.com/marketplace/actions/close-stale-issues
|
||||
uses: actions/stale@v9.1.0
|
||||
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
|
||||
with:
|
||||
repo-token: ${{ steps.app.outputs.token }}
|
||||
days-before-stale: 7
|
||||
|
||||
@@ -7,26 +7,28 @@ on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
permissions:
|
||||
id-token: write # Required for OIDC
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
|
||||
with:
|
||||
node-version: 22
|
||||
- run: npm ci
|
||||
node-version: 24
|
||||
- run: npm ci --omit=dev --ignore-scripts
|
||||
|
||||
publish-npm:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
|
||||
with:
|
||||
node-version: 22
|
||||
node-version: 24
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci
|
||||
- run: npm ci --omit=dev --ignore-scripts
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Remove Pending Labels on Close
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: remove-labels
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Label if Author is a Repo Maintainer
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'add-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
|
||||
@@ -12,82 +12,6 @@ permissions:
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
run-eslint:
|
||||
name: ✅ Check ESLint on PR
|
||||
runs-on: ubuntu-latest
|
||||
# Only needs to run when code is changed
|
||||
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
||||
|
||||
# Override permissions, linter likely needs write access to issues
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Setup Node.js
|
||||
# Setup Node.js environment
|
||||
# https://github.com/marketplace/actions/setup-node-js-environment
|
||||
uses: actions/setup-node@v4.3.0
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Run npm install
|
||||
run: npm ci
|
||||
|
||||
- name: Run ESLint
|
||||
# Action ESLint
|
||||
# https://github.com/marketplace/actions/action-eslint
|
||||
uses: sibiraj-s/action-eslint@v3.0.1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }} # ESLint can run with the original permissions
|
||||
eslint-args: '--ignore-path=.gitignore --quiet'
|
||||
extensions: 'js'
|
||||
annotations: true
|
||||
ignore-patterns: |
|
||||
dist/
|
||||
lib/
|
||||
|
||||
run-tests:
|
||||
name: ✅ Run Unit Tests on PR
|
||||
runs-on: ubuntu-latest
|
||||
# Only needs to run when code is changed
|
||||
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Setup Node.js
|
||||
# Setup Node.js environment
|
||||
# https://github.com/marketplace/actions/setup-node-js-environment
|
||||
uses: actions/setup-node@v4.3.0
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install root dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Install test dependencies
|
||||
run: npm ci --prefix tests
|
||||
|
||||
- name: Run unit tests
|
||||
run: npm run test:unit --prefix tests
|
||||
|
||||
label-by-size:
|
||||
name: 🏷️ Label PR by Size
|
||||
# This job should run after all others, to prevent possible concurrency issues
|
||||
@@ -107,7 +31,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -116,7 +40,7 @@ jobs:
|
||||
- name: Label PR Size
|
||||
# Pull Request Size Labeler
|
||||
# https://github.com/marketplace/actions/pull-request-size-labeler
|
||||
uses: codelytv/pr-size-labeler@v1.10.2
|
||||
uses: codelytv/pr-size-labeler@4ec67706cd878fbc1c8db0a5dcd28b6bb412e85a # v1.10.3
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ steps.app.outputs.token }}
|
||||
xs_label: '🟩 ⬤○○○○'
|
||||
@@ -144,7 +68,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -153,12 +77,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Apply Labels Based on Branch Name and Target Branch
|
||||
# Pull Request Labeler
|
||||
# https://github.com/marketplace/actions/labeler
|
||||
uses: actions/labeler@v5.0.0
|
||||
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
|
||||
with:
|
||||
configuration-path: .github/pr-auto-labels-by-branch.yml
|
||||
repo-token: ${{ steps.app.outputs.token }}
|
||||
@@ -175,7 +99,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -184,12 +108,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Apply Labels Based on Changed Files
|
||||
# Pull Request Labeler
|
||||
# https://github.com/marketplace/actions/labeler
|
||||
uses: actions/labeler@v5.0.0
|
||||
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ steps.app.outputs.token }} # labeler action needs some handholding
|
||||
with:
|
||||
@@ -209,7 +133,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -218,7 +142,7 @@ jobs:
|
||||
- name: Add Vibe Coded Label
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'add-labels'
|
||||
token: ${{ steps.app.outputs.token }}
|
||||
@@ -246,7 +170,7 @@ jobs:
|
||||
# This action runs on comments, which will not receive the env vars for this
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -256,7 +180,7 @@ jobs:
|
||||
if: always()
|
||||
# 🤖 Issues Helper
|
||||
# https://github.com/marketplace/actions/issues-helper
|
||||
uses: actions-cool/issues-helper@v3.6.0
|
||||
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
|
||||
with:
|
||||
actions: 'remove-labels'
|
||||
token: ${{ steps.app.outputs.token || github.token }} # Use fallback to GITHUB_TOKEN if app token is not available
|
||||
@@ -281,7 +205,7 @@ jobs:
|
||||
# GitHub Script
|
||||
# https://github.com/marketplace/actions/github-script
|
||||
id: label-check
|
||||
uses: actions/github-script@v7.0.1
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||
with:
|
||||
script: |
|
||||
const prLabels = context.payload.pull_request.labels.map(label => label.name);
|
||||
@@ -325,7 +249,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -334,12 +258,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Post PR Comments Based on Labels
|
||||
# Label Commenter for PRs
|
||||
# https://github.com/marketplace/actions/label-commenter
|
||||
uses: peaceiris/actions-label-commenter@v1.10.0
|
||||
uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0
|
||||
with:
|
||||
config_file: .github/pr-auto-comments.yml
|
||||
github_token: ${{ steps.app.outputs.token }}
|
||||
@@ -365,7 +289,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: app
|
||||
# Create a GitHub App token
|
||||
# https://github.com/marketplace/actions/create-github-app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
|
||||
with:
|
||||
app-id: ${{ vars.ST_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Check Merge Conflicts
|
||||
# Label Conflicting Pull Requests
|
||||
# https://github.com/marketplace/actions/label-conflicting-pull-requests
|
||||
uses: eps1lon/actions-label-merge-conflict@v3.0.3
|
||||
uses: eps1lon/actions-label-merge-conflict@1df065ebe6e3310545d4f4c4e862e43bdca146f0 # v3.0.3
|
||||
with:
|
||||
dirtyLabel: '🚫 Merge Conflicts'
|
||||
repoToken: ${{ steps.app.outputs.token }}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
name: ✅ Pull Request Checks
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
run-eslint:
|
||||
name: ✅ Check ESLint on PR
|
||||
runs-on: ubuntu-latest
|
||||
# Only needs to run when code is changed
|
||||
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
||||
|
||||
# Override permissions, linter likely needs write access to issues
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Setup Node.js
|
||||
# Setup Node.js environment
|
||||
# https://github.com/marketplace/actions/setup-node-js-environment
|
||||
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
|
||||
with:
|
||||
node-version: 24
|
||||
|
||||
- name: Run npm install
|
||||
run: npm ci --ignore-scripts
|
||||
|
||||
- name: Run ESLint
|
||||
# Action ESLint
|
||||
# https://github.com/marketplace/actions/action-eslint
|
||||
uses: sibiraj-s/action-eslint@bcf41bb9abce43cdbad51ab9b3da2eddaa17eab3 # v3.0.1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }} # ESLint can run with the original permissions
|
||||
eslint-args: '--ignore-path=.gitignore --quiet'
|
||||
extensions: 'js'
|
||||
annotations: true
|
||||
ignore-patterns: |
|
||||
dist/
|
||||
lib/
|
||||
|
||||
run-tests:
|
||||
name: ✅ Run Unit Tests on PR
|
||||
runs-on: ubuntu-latest
|
||||
# Only needs to run when code is changed
|
||||
if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
# Checkout
|
||||
# https://github.com/marketplace/actions/checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
|
||||
- name: Setup Node.js
|
||||
# Setup Node.js environment
|
||||
# https://github.com/marketplace/actions/setup-node-js-environment
|
||||
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
|
||||
with:
|
||||
node-version: 24
|
||||
|
||||
- name: Install root dependencies
|
||||
run: npm ci --ignore-scripts
|
||||
|
||||
- name: Install test dependencies
|
||||
run: npm ci --ignore-scripts --prefix tests
|
||||
|
||||
- name: Run unit tests
|
||||
run: npm run test:unit --prefix tests
|
||||
@@ -1,32 +0,0 @@
|
||||
name: Update i18n data
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions: # Job-level permissions configuration starts here
|
||||
contents: write # 'write' access to repository contents
|
||||
steps:
|
||||
- name: disable auto crlf
|
||||
uses: steve02081504/disable-autocrlf@v1
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
|
||||
- name: Create local changes
|
||||
run: |
|
||||
aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/generate.py
|
||||
aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/requirements.txt
|
||||
pip install -r ./requirements.txt
|
||||
python ./generate.py "" --sort-keys
|
||||
rm -f ./generate.py ./requirements.txt
|
||||
- name: add all
|
||||
run: git add -A
|
||||
- name: push
|
||||
uses: actions-go/push@master
|
||||
with:
|
||||
author-email: 41898282+github-actions[bot]@users.noreply.github.com
|
||||
author-name: github-actions[bot]
|
||||
commit-message: 'i18n changes'
|
||||
remote: origin
|
||||
@@ -26,6 +26,7 @@ public/stats.json
|
||||
/docker/user
|
||||
/docker/extensions
|
||||
/docker/data
|
||||
/docker/dist
|
||||
.DS_Store
|
||||
public/settings.json
|
||||
/thumbnails
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
|
||||
"js/ts.tsdk.path": "./node_modules/typescript/lib"
|
||||
}
|
||||
@@ -19,7 +19,7 @@ COPY --chown=node:node . ./
|
||||
|
||||
RUN \
|
||||
echo "*** Install npm packages ***" && \
|
||||
npm ci --no-audit --no-fund --loglevel=error --no-progress --omit=dev && npm cache clean --force
|
||||
npm ci --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts && npm cache clean --force
|
||||
|
||||
# Create config directory and link config.yaml. Added hardcoded dirs(constants.js?)
|
||||
# that must be present for Non-Root Mode and volumeless docker runs.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@echo off
|
||||
pushd %~dp0
|
||||
set NODE_ENV=production
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts
|
||||
node server.js %*
|
||||
pause
|
||||
popd
|
||||
|
||||
@@ -20,7 +20,7 @@ if %errorlevel% neq 0 (
|
||||
)
|
||||
)
|
||||
set NODE_ENV=production
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts
|
||||
node server.js %*
|
||||
:end
|
||||
pause
|
||||
|
||||
@@ -102,7 +102,7 @@ if %errorlevel% neq 0 (
|
||||
|
||||
echo Installing npm packages and starting server
|
||||
set NODE_ENV=production
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev
|
||||
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts
|
||||
node server.js %*
|
||||
|
||||
:end
|
||||
|
||||
@@ -41,6 +41,9 @@ port: 8000
|
||||
# Interval in seconds to write a heartbeat file. Set to 0 to disable.
|
||||
# This is used primarily for Docker healthchecks.
|
||||
heartbeatInterval: 0
|
||||
# Enable HTTP/HTTPS keep-alive globally.
|
||||
# Disabling restores old Node 18 behavior, can help if ECONNRESET and other network errors occur.
|
||||
enableKeepAlive: false
|
||||
# -- SSL options --
|
||||
ssl:
|
||||
# Enable SSL/TLS encryption
|
||||
@@ -55,7 +58,7 @@ ssl:
|
||||
# -- SECURITY CONFIGURATION --
|
||||
# Toggle whitelist mode
|
||||
whitelistMode: true
|
||||
# Whitelist will also verify IP in X-Forwarded-For / X-Real-IP headers
|
||||
# When enabled, whitelist will also verify IP in headers enabled in `forwardedHeaders` section.
|
||||
enableForwardedWhitelist: true
|
||||
# Whitelist of allowed IP addresses
|
||||
whitelist:
|
||||
@@ -127,6 +130,13 @@ sso:
|
||||
# as that used for authentik. (Ensure the username in authentik
|
||||
# is an exact match in lowercase with that in sillytavern).
|
||||
authentikAuth: false
|
||||
# List of trusted proxy IPs for SSO authentication.
|
||||
# Supports wildcards or CIDR notation for subnets.
|
||||
# Example: ['127.0.0.1', '192.168.1.1']
|
||||
# Set to ['*'] to trust all proxies (NOT RECOMMENDED unless you have other security measures in place)
|
||||
trustedProxies:
|
||||
- ::1
|
||||
- 127.0.0.1
|
||||
|
||||
# Host whitelist configuration. Recommended if you're using a listen mode
|
||||
hostWhitelist:
|
||||
@@ -141,6 +151,26 @@ hostWhitelist:
|
||||
# - .trycloudflare.com
|
||||
hosts: []
|
||||
|
||||
# Perform whitelist checks against server-side HTTP requests that resolve to private IP addresses.
|
||||
# This is an additional layer of security to prevent Server-Side Request Forgery (SSRF) attacks.
|
||||
# Recommended when listen mode is enabled, or if your server is accessible by untrusted users.
|
||||
privateAddressWhitelist:
|
||||
# Enable private address whitelist to block requests to private IP ranges.
|
||||
enabled: false
|
||||
# If true, requests to hosts that cannot be resolved will be allowed instead of blocked.
|
||||
allowUnresolvedHosts: false
|
||||
# Log blocked and allowed requests to the console.
|
||||
log:
|
||||
# Log blocked requests to the console with a warning message
|
||||
blockedRequests: true
|
||||
# Log allowed requests to the console with an info message
|
||||
allowedRequests: false
|
||||
# List of allowed private IP ranges (in CIDR notation or wildcard format).
|
||||
# Allows loopback IP ranges by default, but you can customize this list to fit your needs.
|
||||
allowedRanges:
|
||||
- '127.0.0.0/8' # Loopback (IPv4)
|
||||
- '::1/128' # Loopback (IPv6)
|
||||
|
||||
# User session timeout *in seconds* (defaults to 24 hours).
|
||||
## Set to a positive number to expire session after a certain time of inactivity
|
||||
## Set to 0 to expire session when the browser is closed
|
||||
@@ -159,12 +189,29 @@ logging:
|
||||
minLogLevel: 0
|
||||
# -- RATE LIMITING CONFIGURATION --
|
||||
rateLimiting:
|
||||
# Use X-Real-IP header instead of socket IP for rate limiting
|
||||
# Only enable this if you are using a properly configured reverse proxy (like Nginx/traefik/Caddy)
|
||||
# Use any of the enabled headers in the `forwardedHeaders` section to identify the client IP for rate limiting.
|
||||
# If disabled, only the socket IP will be used, which may not work correctly if you are behind a reverse proxy.
|
||||
preferRealIpHeader: false
|
||||
# Set the maximum number of allowed failed basic authentication attempts before rate limiting is applied. Set to 0 to disable rate limiting for basic auth.
|
||||
basicAuthMaxAttempts: 5
|
||||
# Set the maximum number of allowed failed account login attempts before rate limiting is applied. Set to 0 to disable rate limiting for account logins.
|
||||
accountsLoginMaxAttempts: 5
|
||||
# Set the maximum number of allowed failed account recovery attempts before rate limiting is applied. Set to 0 to disable rate limiting for account recovery.
|
||||
accountsRecoverMaxAttempts: 5
|
||||
# Set to true to enable support for real IPs in certain request headers for features like IP whitelisting, rate limiting and access logging.
|
||||
# Only change if you are sure that you use a correctly configured reverse proxy, otherwise this may lead to IP spoofing.
|
||||
forwardedHeaders:
|
||||
# X-Real-IP header (common with Nginx and Caddy)
|
||||
xRealIp: true
|
||||
# X-Forwarded-For header (common with many proxies, but may contain multiple IPs - only the first one will be used)
|
||||
xForwardedFor: true
|
||||
# CF-Connecting-IP header (used by Cloudflare Tunnels)
|
||||
cfConnectingIp: false
|
||||
|
||||
## BACKUP CONFIGURATION
|
||||
backups:
|
||||
# Allow users to create a full backup archive of their data
|
||||
allowFullDataBackup: true
|
||||
# Common settings for all backup types
|
||||
common:
|
||||
# Number of backups to keep for each chat and settings file
|
||||
@@ -202,6 +249,16 @@ performance:
|
||||
memoryCacheCapacity: '100mb'
|
||||
# Enables disk caching for character cards. Improves performances with large card libraries.
|
||||
useDiskCache: true
|
||||
# Configures gzip compression for client requests with large payloads (e.g. settings or chat saves).
|
||||
requestCompression:
|
||||
# Enable request compression.
|
||||
enabled: false
|
||||
# Minimum payload size to trigger compression. Set to 0 to compress all requests regardless of size.
|
||||
minPayloadSize: '256kb'
|
||||
# Hard upper payload size limit for compression. Set to 0 to allow compression of any size.
|
||||
maxPayloadSize: '8mb'
|
||||
# Timeout for request compression in milliseconds.
|
||||
timeout: 4000
|
||||
|
||||
# CACHE BUSTER CONFIGURATION
|
||||
# IMPORTANT: Requires localhost or a domain with HTTPS, otherwise will not work!
|
||||
@@ -250,6 +307,13 @@ extensions:
|
||||
speechToText: Xenova/whisper-small
|
||||
textToSpeech: Xenova/speecht5_tts
|
||||
|
||||
# Git backend for plugin/extension repository operations.
|
||||
# - Use "auto" to prefer system git, falling back to the integrated backend
|
||||
# - Use "system" to force system backend
|
||||
# - Use "builtin" to force integrated backend
|
||||
git:
|
||||
backend: auto
|
||||
|
||||
# Additional model tokenizers can be downloaded on demand.
|
||||
# Disabling will fallback to another locally available tokenizer.
|
||||
enableDownloadableTokenizers: true
|
||||
@@ -293,7 +357,7 @@ claude:
|
||||
# Otherwise, you'll just waste money on cache misses.
|
||||
enableSystemPromptCache: false
|
||||
# Enables caching of the message history at depth (if supported).
|
||||
# https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
|
||||
# https://platform.claude.com/docs/en/build-with-claude/prompt-caching
|
||||
# -- IMPORTANT! --
|
||||
# Use with caution. Behavior may be unpredictable and no guarantees can or will be made.
|
||||
# Set to an integer to specify the desired depth. 0 (which does NOT include the prefill)
|
||||
@@ -304,6 +368,10 @@ claude:
|
||||
## 5m: base price x 1.25
|
||||
## 1h: base price x 2
|
||||
extendedTTL: false
|
||||
# Enables adaptive thinking for supported models (Opus 4.6+).
|
||||
# Disable to enforce legacy thinking mode (with thinking budget).
|
||||
# https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking
|
||||
enableAdaptiveThinking: false
|
||||
# -- GOOGLE GEMINI API CONFIGURATION --
|
||||
gemini:
|
||||
# API endpoint version ("v1beta" or "v1alpha")
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Not found</title>
|
||||
<title>Not Found</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Not found</h1>
|
||||
<h1>Not Found</h1>
|
||||
<p>
|
||||
The requested URL was not found on this server.
|
||||
</p>
|
||||
@@ -638,5 +638,41 @@
|
||||
{
|
||||
"filename": "presets/reasoning/OpenAI Harmony.json",
|
||||
"type": "reasoning"
|
||||
},
|
||||
{
|
||||
"filename": "presets/reasoning/Think XML.json",
|
||||
"type": "reasoning"
|
||||
},
|
||||
{
|
||||
"filename": "presets/reasoning/Gemma 4.json",
|
||||
"type": "reasoning"
|
||||
},
|
||||
{
|
||||
"filename": "presets/instruct/Gemma 4.json",
|
||||
"type": "instruct"
|
||||
},
|
||||
{
|
||||
"filename": "presets/context/Gemma 4.json",
|
||||
"type": "context"
|
||||
},
|
||||
{
|
||||
"filename": "user.css",
|
||||
"type": "stylesheet"
|
||||
},
|
||||
{
|
||||
"filename": "errors/forbidden-by-whitelist.html",
|
||||
"type": "error_page"
|
||||
},
|
||||
{
|
||||
"filename": "errors/host-not-allowed.html",
|
||||
"type": "error_page"
|
||||
},
|
||||
{
|
||||
"filename": "errors/unauthorized.html",
|
||||
"type": "error_page"
|
||||
},
|
||||
{
|
||||
"filename": "errors/url-not-found.html",
|
||||
"type": "error_page"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}",
|
||||
"example_separator": "",
|
||||
"chat_start": "",
|
||||
"use_stop_strings": false,
|
||||
"names_as_stop_strings": true,
|
||||
"story_string_position": 0,
|
||||
"story_string_depth": 1,
|
||||
"story_string_role": 0,
|
||||
"always_force_name2": true,
|
||||
"trim_sentences": false,
|
||||
"single_line": false,
|
||||
"name": "Gemma 4"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"input_sequence": "<|turn>user\n",
|
||||
"output_sequence": "<|turn>model\n",
|
||||
"last_output_sequence": "",
|
||||
"system_sequence": "<|turn>system\n",
|
||||
"stop_sequence": "<turn|>",
|
||||
"wrap": false,
|
||||
"macro": true,
|
||||
"names_behavior": "force",
|
||||
"activation_regex": "",
|
||||
"first_output_sequence": "",
|
||||
"skip_examples": false,
|
||||
"output_suffix": "<turn|>\n",
|
||||
"input_suffix": "<turn|>\n",
|
||||
"system_suffix": "<turn|>\n",
|
||||
"user_alignment_message": "",
|
||||
"system_same_as_user": false,
|
||||
"last_system_sequence": "",
|
||||
"first_input_sequence": "",
|
||||
"last_input_sequence": "",
|
||||
"sequences_as_stop_strings": true,
|
||||
"story_string_prefix": "<|turn>system\n",
|
||||
"story_string_suffix": "<turn|>\n",
|
||||
"name": "Gemma 4"
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"input_sequence": "{{[INPUT]}}",
|
||||
"output_sequence": "{{[OUPUT]}}",
|
||||
"output_sequence": "{{[OUTPUT]}}",
|
||||
"last_output_sequence": "",
|
||||
"system_sequence": "{{[SYSTEM]}}",
|
||||
"stop_sequence": "",
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
"mistralai_model": "mistral-large-latest",
|
||||
"chutes_model": "deepseek-ai/DeepSeek-V3-0324",
|
||||
"chutes_sort_models": "alphabetically",
|
||||
"minimax_model": "MiniMax-M2.7",
|
||||
"minimax_endpoint": "global",
|
||||
"electronhub_model": "gpt-4o-mini",
|
||||
"electronhub_sort_models": "alphabetically",
|
||||
"electronhub_group_models": false,
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Gemma 4",
|
||||
"prefix": "<|channel>thought\n",
|
||||
"suffix": "<channel|>",
|
||||
"separator": "\n\n"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Think XML",
|
||||
"prefix": "<think>",
|
||||
"suffix": "</think>",
|
||||
"separator": "\n"
|
||||
}
|
||||
@@ -191,7 +191,7 @@
|
||||
"custom_stopping_strings_macro": true,
|
||||
"fuzzy_search": true,
|
||||
"encode_tags": false,
|
||||
"experimental_macro_engine": false,
|
||||
"experimental_macro_engine": true,
|
||||
"enableLabMode": false,
|
||||
"enableZenSliders": false,
|
||||
"ui_mode": 1,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Function to handle startup logic (Config check + Postinstall + Start)
|
||||
# Function to handle startup logic (Config check + init + Start)
|
||||
start_sillytavern() {
|
||||
local PREFIX="$1"
|
||||
shift # Remove the first argument (PREFIX) so $@ contains the rest
|
||||
@@ -11,8 +11,8 @@ start_sillytavern() {
|
||||
$PREFIX cp "default/config.yaml" "config/config.yaml"
|
||||
fi
|
||||
|
||||
# Execute postinstall to auto-populate config.yaml with missing values
|
||||
$PREFIX npm run postinstall
|
||||
# Execute init script to auto-populate config.yaml with missing values
|
||||
$PREFIX npm run init
|
||||
|
||||
# Start the server
|
||||
exec $PREFIX node server.js --listen "$@"
|
||||
|
||||
@@ -40,7 +40,11 @@ declare global {
|
||||
/**
|
||||
* Authenticated user handle.
|
||||
*/
|
||||
handle: string;
|
||||
handle: string | null;
|
||||
/**
|
||||
* Account version tag: shake256 derivative of password hash and salt.
|
||||
*/
|
||||
version: string | null;
|
||||
/**
|
||||
* Last time the session was extended.
|
||||
*/
|
||||
|
||||
@@ -29,13 +29,14 @@
|
||||
"@mozilla/readability": "^0.6.0",
|
||||
"@popperjs/core": "^2.11.8",
|
||||
"@zeldafan0225/ai_horde": "^5.2.0",
|
||||
"agent-base": "^7.1.3",
|
||||
"archiver": "^7.0.1",
|
||||
"bing-translate-api": "^4.1.0",
|
||||
"body-parser": "^1.20.2",
|
||||
"bowser": "^2.12.1",
|
||||
"bytes": "^3.1.2",
|
||||
"chalk": "^5.6.0",
|
||||
"chevrotain": "^11.1.1",
|
||||
"chevrotain": "^11.2.0",
|
||||
"command-exists": "^1.2.9",
|
||||
"compression": "^1.8.1",
|
||||
"cookie-parser": "^1.4.6",
|
||||
@@ -44,14 +45,15 @@
|
||||
"crc": "^4.3.2",
|
||||
"csrf-sync": "^4.2.1",
|
||||
"diff-match-patch": "^1.0.5",
|
||||
"dompurify": "^3.2.6",
|
||||
"dompurify": "^3.4.2",
|
||||
"droll": "^0.2.1",
|
||||
"env-paths": "^3.0.0",
|
||||
"express": "^4.21.0",
|
||||
"fflate": "^0.8.2",
|
||||
"form-data": "^4.0.4",
|
||||
"fuse.js": "^7.1.0",
|
||||
"google-translate-api-x": "^10.7.2",
|
||||
"handlebars": "^4.7.8",
|
||||
"handlebars": "^4.7.9",
|
||||
"helmet": "^8.1.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"host-validation-middleware": "^0.1.1",
|
||||
@@ -62,12 +64,14 @@
|
||||
"ip-regex": "^5.0.0",
|
||||
"ipaddr.js": "^2.2.0",
|
||||
"is-docker": "^3.0.0",
|
||||
"isomorphic-git": "^1.36.3",
|
||||
"js-sha256": "^0.11.1",
|
||||
"localforage": "^1.10.0",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash": "^4.18.1",
|
||||
"mime-types": "^3.0.2",
|
||||
"moment": "^2.30.1",
|
||||
"morphdom": "^2.7.7",
|
||||
"multer": "^2.0.2",
|
||||
"multer": "^2.1.1",
|
||||
"node-fetch": "^3.3.2",
|
||||
"node-persist": "^4.0.4",
|
||||
"open": "^10.2.0",
|
||||
@@ -80,21 +84,21 @@
|
||||
"seedrandom": "^3.0.5",
|
||||
"showdown": "^2.1.0",
|
||||
"sillytavern-transformers": "2.14.6",
|
||||
"simple-git": "^3.28.0",
|
||||
"simple-git": "^3.33.0",
|
||||
"slidetoggle": "^4.0.0",
|
||||
"tiktoken": "^1.0.22",
|
||||
"url-join": "^5.0.0",
|
||||
"vectra": "^0.2.2",
|
||||
"wavefile": "^11.0.0",
|
||||
"webpack": "^5.98.0",
|
||||
"webpack": "^5.105.4",
|
||||
"write-file-atomic": "^5.0.1",
|
||||
"ws": "^8.18.3",
|
||||
"yaml": "^2.8.1",
|
||||
"yaml": "^2.8.3",
|
||||
"yargs": "^17.7.1",
|
||||
"yauzl": "^3.2.0"
|
||||
"yauzl": "^3.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
"node": ">= 20"
|
||||
},
|
||||
"overrides": {
|
||||
"vectra": {
|
||||
@@ -111,8 +115,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/SillyTavern/SillyTavern.git"
|
||||
},
|
||||
"version": "1.16.0",
|
||||
"version": "1.18.0",
|
||||
"scripts": {
|
||||
"init": "node src/server-init.js",
|
||||
"start": "node server.js",
|
||||
"debug": "node --inspect server.js",
|
||||
"start:global": "node server.js --global",
|
||||
@@ -120,7 +125,6 @@
|
||||
"start:deno": "deno run --allow-run --allow-net --allow-read --allow-write --allow-sys --allow-env server.js",
|
||||
"start:bun": "bun server.js",
|
||||
"start:no-csrf": "node server.js --disableCsrf",
|
||||
"postinstall": "node post-install.js",
|
||||
"lint": "eslint \"src/**/*.js\" \"public/**/*.js\" ./*.js",
|
||||
"lint:fix": "eslint \"src/**/*.js\" \"public/**/*.js\" ./*.js --fix",
|
||||
"plugins:update": "node plugins update",
|
||||
@@ -135,7 +139,7 @@
|
||||
},
|
||||
"main": "server.js",
|
||||
"devDependencies": {
|
||||
"@chevrotain/types": "^11.0.3",
|
||||
"@chevrotain/types": "^11.2.0",
|
||||
"@types/archiver": "^6.0.3",
|
||||
"@types/bytes": "^3.1.5",
|
||||
"@types/command-exists": "^1.2.3",
|
||||
@@ -149,9 +153,9 @@
|
||||
"@types/jquery-cropper": "^1.0.4",
|
||||
"@types/jquery.transit": "^0.9.33",
|
||||
"@types/jqueryui": "^1.12.24",
|
||||
"@types/lodash": "^4.17.20",
|
||||
"@types/lodash": "^4.17.24",
|
||||
"@types/mime-types": "^3.0.1",
|
||||
"@types/multer": "^2.0.0",
|
||||
"@types/multer": "^2.1.0",
|
||||
"@types/node": "^18.19.84",
|
||||
"@types/node-persist": "^3.1.8",
|
||||
"@types/png-chunk-text": "^1.0.3",
|
||||
@@ -165,6 +169,7 @@
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-plugin-jest": "^27.9.0",
|
||||
"eslint-plugin-jsdoc": "^48.10.0",
|
||||
"eslint-plugin-playwright": "^2.3.0"
|
||||
"eslint-plugin-playwright": "^2.3.0",
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,11 +9,13 @@ import process from 'node:process';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
import { default as git, CheckRepoActions } from 'simple-git';
|
||||
import { createGitClient } from './src/git/client.js';
|
||||
import { color } from './src/util.js';
|
||||
|
||||
const __dirname = import.meta.dirname ?? path.dirname(fileURLToPath(import.meta.url));
|
||||
process.chdir(__dirname);
|
||||
const pluginsPath = './plugins';
|
||||
const gitBackend = process.env.SILLYTAVERN_GIT_BACKEND || 'auto';
|
||||
|
||||
const command = process.argv[2];
|
||||
|
||||
@@ -87,10 +89,9 @@ async function installPlugin(pluginName) {
|
||||
return console.log(color.yellow(`Directory already exists at ${pluginPath}`));
|
||||
}
|
||||
|
||||
await git().clone(pluginName, pluginPath, { '--depth': 1 });
|
||||
await createGitClient({ backend: gitBackend }).clone(pluginName, pluginPath, { depth: 1 });
|
||||
console.log(`Plugin ${color.green(pluginName)} installed to ${color.cyan(pluginPath)}`);
|
||||
}
|
||||
catch (error) {
|
||||
} catch (error) {
|
||||
console.error(color.red(`Failed to install plugin ${pluginName}`), error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
/**
|
||||
* Scripts to be done before starting the server for the first time.
|
||||
*/
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
import yaml from 'yaml';
|
||||
import chalk from 'chalk';
|
||||
import { createRequire } from 'node:module';
|
||||
import { addMissingConfigValues } from './src/config-init.js';
|
||||
|
||||
/**
|
||||
* Colorizes console output.
|
||||
*/
|
||||
const color = chalk;
|
||||
|
||||
/**
|
||||
* Converts the old config.conf file to the new config.yaml format.
|
||||
*/
|
||||
function convertConfig() {
|
||||
if (fs.existsSync('./config.conf')) {
|
||||
if (fs.existsSync('./config.yaml')) {
|
||||
console.log(color.yellow('Both config.conf and config.yaml exist. Please delete config.conf manually.'));
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
console.log(color.blue('Converting config.conf to config.yaml. Your old config.conf will be renamed to config.conf.bak'));
|
||||
fs.renameSync('./config.conf', './config.conf.cjs'); // Force loading as CommonJS
|
||||
const require = createRequire(import.meta.url);
|
||||
const config = require(path.join(process.cwd(), './config.conf.cjs'));
|
||||
fs.copyFileSync('./config.conf.cjs', './config.conf.bak');
|
||||
fs.rmSync('./config.conf.cjs');
|
||||
fs.writeFileSync('./config.yaml', yaml.stringify(config));
|
||||
console.log(color.green('Conversion successful. Please check your config.yaml and fix it if necessary.'));
|
||||
} catch (error) {
|
||||
console.error(color.red('FATAL: Config conversion failed. Please check your config.conf file and try again.'), error);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the default config files if they don't exist yet.
|
||||
*/
|
||||
function createDefaultFiles() {
|
||||
/**
|
||||
* @typedef DefaultItem
|
||||
* @type {object}
|
||||
* @property {'file' | 'directory'} type - Whether the item should be copied as a single file or merged into a directory structure.
|
||||
* @property {string} defaultPath - The path to the default item (typically in `default/`).
|
||||
* @property {string} productionPath - The path to the copied item for production use.
|
||||
*/
|
||||
|
||||
/** @type {DefaultItem[]} */
|
||||
const defaultItems = [
|
||||
{
|
||||
type: 'file',
|
||||
defaultPath: './default/config.yaml',
|
||||
productionPath: './config.yaml',
|
||||
},
|
||||
{
|
||||
type: 'directory',
|
||||
defaultPath: './default/public/',
|
||||
productionPath: './public/',
|
||||
},
|
||||
];
|
||||
|
||||
for (const defaultItem of defaultItems) {
|
||||
try {
|
||||
if (defaultItem.type === 'file') {
|
||||
if (!fs.existsSync(defaultItem.productionPath)) {
|
||||
fs.copyFileSync(
|
||||
defaultItem.defaultPath,
|
||||
defaultItem.productionPath,
|
||||
);
|
||||
console.log(
|
||||
color.green(`Created default file: ${defaultItem.productionPath}`),
|
||||
);
|
||||
}
|
||||
} else if (defaultItem.type === 'directory') {
|
||||
fs.cpSync(defaultItem.defaultPath, defaultItem.productionPath, {
|
||||
force: false, // Don't overwrite existing files!
|
||||
recursive: true,
|
||||
});
|
||||
console.log(
|
||||
color.green(`Synchronized missing files: ${defaultItem.productionPath}`),
|
||||
);
|
||||
} else {
|
||||
throw new Error(
|
||||
'FATAL: Unexpected default file format in `post-install.js#createDefaultFiles()`.',
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(
|
||||
color.red(
|
||||
`FATAL: Could not write default ${defaultItem.type}: ${defaultItem.productionPath}`,
|
||||
),
|
||||
error,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
// 0. Convert config.conf to config.yaml
|
||||
convertConfig();
|
||||
// 1. Create default config files
|
||||
createDefaultFiles();
|
||||
// 2. Add missing config values
|
||||
addMissingConfigValues(path.join(process.cwd(), './config.yaml'));
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# Looking for user.css?
|
||||
|
||||
user.css is now located under your data root directory in the "_css" folder.
|
||||
|
||||
Example for the default data root:
|
||||
|
||||
/data/_css/user.css
|
||||
@@ -107,7 +107,8 @@
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.bg_example .mobile-only-menu-toggle {
|
||||
.bg_example .mobile-only-menu-toggle,
|
||||
.bg_folder_tile .mobile-only-menu-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -135,19 +136,32 @@
|
||||
outline-offset: 0;
|
||||
}
|
||||
|
||||
.bg_example.locked-background::after {
|
||||
content: '\f023';
|
||||
.bg_example.locked-background::after,
|
||||
.bg_example.selected-background::before,
|
||||
#Backgrounds.bg-selection-mode #bg_menu_content .bg_example.folder-group-selected::before {
|
||||
font-family: 'Font Awesome 6 Free';
|
||||
font-weight: 900;
|
||||
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bg_example.selected-background::before,
|
||||
#Backgrounds.bg-selection-mode #bg_menu_content .bg_example.folder-group-selected::before {
|
||||
content: '\f00c';
|
||||
top: 5px;
|
||||
color: var(--white100);
|
||||
font-size: calc(var(--mainFontSize) * 0.9);
|
||||
}
|
||||
|
||||
.bg_example.locked-background::after {
|
||||
content: '\f023';
|
||||
bottom: 5px;
|
||||
right: 5px;
|
||||
z-index: 4;
|
||||
color: var(--golden);
|
||||
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
|
||||
font-size: calc(var(--mainFontSize) * 0.8);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bg_example:not(.locked-background) .jg-unlock,
|
||||
@@ -161,17 +175,28 @@
|
||||
}
|
||||
|
||||
.bg_example.selected-background::before {
|
||||
content: '\f00c';
|
||||
font-family: 'Font Awesome 6 Free';
|
||||
font-weight: 900;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
z-index: 4;
|
||||
color: var(--white100);
|
||||
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
|
||||
font-size: calc(var(--mainFontSize) * 0.9);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#bg_selection_mode_button.active {
|
||||
color: var(--golden);
|
||||
}
|
||||
|
||||
#bg_group_select_count {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
#Backgrounds.bg-selection-mode #bg_menu_content .bg_example .jg-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#Backgrounds.bg-selection-mode #bg_menu_content .bg_example.folder-group-selected {
|
||||
outline: 2px solid var(--interactable-outline-color);
|
||||
outline-offset: 0;
|
||||
}
|
||||
|
||||
#Backgrounds.bg-selection-mode #bg_menu_content .bg_example.folder-group-selected::before {
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
.bg_example .jg-menu {
|
||||
@@ -376,3 +401,169 @@
|
||||
#bg_custom_content:not(:empty)~#bg_chat_hint {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bg_folder_grid.bg_list {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
width: 100%;
|
||||
grid-template-columns: repeat(calc(var(--bg-thumb-columns, 5) + 2), 1fr);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.bg_folder_grid:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bg_folder_tile {
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
height: auto;
|
||||
aspect-ratio: 1 / 1;
|
||||
outline: 2px solid var(--SmartThemeBorderColor);
|
||||
outline-offset: -1px;
|
||||
box-shadow: 0 0 7px var(--black50a);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--SmartThemeBlurTintColor);
|
||||
transition: filter var(--animation-duration) ease;
|
||||
}
|
||||
|
||||
.bg_folder_tile:hover {
|
||||
filter: brightness(1.1);
|
||||
}
|
||||
|
||||
.bg_folder_tile_cover {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
border-radius: inherit;
|
||||
}
|
||||
|
||||
.bg_folder_tile_overlay {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
|
||||
color: var(--SmartThemeBodyColor);
|
||||
padding: 6px 8px 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 0.85em;
|
||||
font-weight: 600;
|
||||
pointer-events: none;
|
||||
border-radius: 0 0 8px 8px;
|
||||
}
|
||||
|
||||
.bg_folder_tile_overlay i {
|
||||
font-size: 0.9em;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.bg_folder_tile_name {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* Folder tile action menu */
|
||||
.bg_folder_tile .bg_folder_tile_menu {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 5px;
|
||||
padding: 3px;
|
||||
z-index: 3;
|
||||
backdrop-filter: blur(4px);
|
||||
border: 1px solid var(--SmartThemeBorderColor);
|
||||
align-items: center;
|
||||
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: scale(0.9);
|
||||
transform-origin: center;
|
||||
transition: opacity var(--animation-duration) ease-out, visibility var(--animation-duration) ease-out, transform var(--animation-duration) ease-out;
|
||||
}
|
||||
|
||||
.bg_folder_tile:hover .bg_folder_tile_menu,
|
||||
.bg_folder_tile:focus-within .bg_folder_tile_menu {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.bg_folder_tile .jg-button {
|
||||
display: flex;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
padding: 5px;
|
||||
font-size: 1.1em;
|
||||
border-radius: 5px;
|
||||
transition: background-color var(--animation-duration) ease;
|
||||
}
|
||||
|
||||
.bg_folder_tile .jg-button:hover {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
/* New Folder placeholder tile */
|
||||
.bg_new_folder_tile {
|
||||
border: 2px dashed var(--SmartThemeBorderColor);
|
||||
outline: none;
|
||||
color: var(--SmartThemeBodyColor);
|
||||
opacity: 0.6;
|
||||
gap: 6px;
|
||||
font-size: 0.85em;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.bg_new_folder_tile:hover {
|
||||
opacity: 1;
|
||||
transform: scale(1.03);
|
||||
}
|
||||
|
||||
/* Breadcrumb bar */
|
||||
.bg_folder_breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 5px 0;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.bg_current_folder_name {
|
||||
font-weight: 600;
|
||||
font-size: 1em;
|
||||
color: var(--SmartThemeBodyColor);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
#Backgrounds:not(.in-folder-view) .jg-set-cover {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#Backgrounds.in-folder-view .jg-set-cover {
|
||||
display: flex !important;
|
||||
}
|
||||
|
||||
/* Hide folder actions on custom (chat-specific) backgrounds */
|
||||
.bg_example[custom="true"] .jg-folder,
|
||||
.bg_example[custom="true"] .jg-set-cover {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@@ -97,13 +97,23 @@ label[for="extensions_autoconnect"] {
|
||||
font-size: 1.05em;
|
||||
}
|
||||
|
||||
.extensions_info .extension_version {
|
||||
.extensions_info :is(.extension_version, .extension_author) {
|
||||
opacity: 0.8;
|
||||
font-size: 0.8em;
|
||||
font-weight: normal;
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.extensions_info :is(.extension_version, .extension_author):empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.extensions_info .extension_author {
|
||||
display: inline-flex;
|
||||
gap: 2px;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.extensions_info .extension_block a {
|
||||
color: var(--SmartThemeBodyColor);
|
||||
}
|
||||
@@ -161,4 +171,4 @@ input.extension_missing[type="checkbox"] {
|
||||
z-index: 1;
|
||||
margin-bottom: 10px;
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,3 +29,60 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Action loader toast styles */
|
||||
.action-loader-toast {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.action-loader-message {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.action-loader-stop {
|
||||
cursor: pointer;
|
||||
font-size: 1.2em;
|
||||
opacity: 0.8;
|
||||
transition: opacity 0.15s ease, color 0.15s ease;
|
||||
}
|
||||
|
||||
.action-loader-stop:hover {
|
||||
opacity: 1;
|
||||
color: color-mix(in srgb, currentColor 40%, #e74c3c 60%);
|
||||
}
|
||||
|
||||
/* Splash screen styles for branded loading */
|
||||
#loader.splash-screen {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4rem;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transition: all var(--animation-duration-2x) ease-out;
|
||||
}
|
||||
|
||||
#loader.splash-screen #load-spinner {
|
||||
position: static;
|
||||
top: unset;
|
||||
left: unset;
|
||||
}
|
||||
|
||||
.splash-logo {
|
||||
/* max original px, or 50% on mobile */
|
||||
width: min(150px, 50%);
|
||||
height: auto;
|
||||
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
|
||||
}
|
||||
|
||||
.splash-message {
|
||||
margin: 0;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 500;
|
||||
opacity: 0.9;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,56 @@
|
||||
grid-template-columns: repeat(var(--bg-thumb-columns, 3), 1fr);
|
||||
}
|
||||
|
||||
.bg_folder_grid {
|
||||
grid-template-columns: repeat(var(--bg-thumb-columns, 3), 1fr);
|
||||
}
|
||||
|
||||
.bg_folder_tile .bg_folder_tile_menu {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: scale(0.9);
|
||||
}
|
||||
|
||||
.bg_folder_tile:hover .bg_folder_tile_menu,
|
||||
.bg_folder_tile:focus-within .bg_folder_tile_menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bg_folder_tile.mobile-menu-open .bg_folder_tile_menu {
|
||||
display: flex;
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: scale(1);
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.bg_folder_tile.mobile-menu-open .mobile-only-menu-toggle {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bg_folder_tile .mobile-only-menu-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
color: white;
|
||||
border-radius: 6px;
|
||||
z-index: 3;
|
||||
cursor: pointer;
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.bg_folder_tile .jg-button {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.bg_list {
|
||||
width: unset;
|
||||
}
|
||||
@@ -102,10 +152,31 @@
|
||||
}
|
||||
|
||||
#add_background_button_top>span,
|
||||
#auto_background>span {
|
||||
#auto_background>span,
|
||||
#bg_add_folder_button>span,
|
||||
#bg_selection_mode_button>span:not(#bg_group_select_count),
|
||||
#bg_group_add_to_folder_button>span,
|
||||
#bg_folder_remove_selected_button>span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#bg_group_select_count:not(:empty) {
|
||||
display: inline !important;
|
||||
}
|
||||
|
||||
.bg_folder_breadcrumb {
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.bg_folder_breadcrumb .expander {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#bg_current_folder_name {
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
#extensions_settings,
|
||||
#extensions_settings2 {
|
||||
width: 100% !important;
|
||||
@@ -429,6 +500,11 @@
|
||||
.horde_multiple_hint {
|
||||
display: none;
|
||||
}
|
||||
|
||||
select[multiple] {
|
||||
max-height: 50px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/*landscape mode phones and ipads*/
|
||||
|
||||
@@ -161,6 +161,10 @@ body.no-blur .popup[open]::backdrop {
|
||||
.popup-inputs {
|
||||
margin-top: 10px;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.popup-inputs label span {
|
||||
/* Make the title of the custom inputs a bit darker, but keep their text at default opacity. */
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,236 @@
|
||||
/* ─────────────────────────────────────────────────────────────────────────────
|
||||
Streaming Display — floating toast panel for live LLM generation output.
|
||||
Shows reasoning (thinking) and content as they stream in.
|
||||
Used by extensions that leverage ConnectionManagerRequestService streaming.
|
||||
───────────────────────────────────────────────────────────────────────────── */
|
||||
|
||||
.streaming-display {
|
||||
position: fixed;
|
||||
bottom: max(calc(var(--bottomFormBlockSize) + 5px), 20px);
|
||||
right: 20px;
|
||||
width: min(550px, calc(100vw - 40px));
|
||||
max-height: 70vh;
|
||||
background: var(--SmartThemeBlurTintColor);
|
||||
border: 1px solid var(--SmartThemeBorderColor);
|
||||
border-radius: 10px;
|
||||
padding: 14px;
|
||||
z-index: 9000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
transition: opacity var(--animation-duration, 125ms) ease, transform var(--animation-duration, 125ms) ease;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.streaming-display-visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* Header label with animated activity indicator */
|
||||
.streaming-display-label {
|
||||
font-weight: 600;
|
||||
font-size: 0.95em;
|
||||
color: var(--SmartThemeBodyColor);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* LED status indicator - pulsing while streaming */
|
||||
.streaming-display-led {
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: rgb(225, 138, 36);
|
||||
animation: streaming-display-pulse 1.5s ease-in-out infinite;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Completed state: solid green LED */
|
||||
.streaming-display-complete .streaming-display-led {
|
||||
background: #4caf50;
|
||||
animation: none;
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
|
||||
}
|
||||
|
||||
/* Stopped state: solid red LED */
|
||||
.streaming-display-stopped .streaming-display-led {
|
||||
background: #f44336;
|
||||
animation: none;
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
|
||||
}
|
||||
|
||||
@keyframes streaming-display-pulse {
|
||||
0%, 100% { opacity: 0.4; transform: scale(0.9); }
|
||||
50% { opacity: 1; transform: scale(1.1); }
|
||||
}
|
||||
|
||||
/* Label text takes available space */
|
||||
.streaming-display-label-text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Window control buttons container */
|
||||
.streaming-display-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-left: auto;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Window control buttons */
|
||||
.streaming-display-btn {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
color: var(--SmartThemeBodyColor);
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0.6;
|
||||
transition: opacity 0.15s ease, background-color 0.15s ease;
|
||||
}
|
||||
|
||||
.streaming-display-btn:hover {
|
||||
opacity: 1;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.streaming-display-btn-close:hover {
|
||||
background-color: rgba(244, 67, 54, 0.2);
|
||||
}
|
||||
|
||||
.streaming-display-btn-stop {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.streaming-display-btn-stop:hover {
|
||||
background-color: rgba(244, 150, 36, 0.2);
|
||||
color: rgb(225, 138, 36);
|
||||
}
|
||||
|
||||
/* Content container - collapsible for minimize */
|
||||
.streaming-display-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow: hidden;
|
||||
transition: max-height var(--animation-duration, 125ms) ease, opacity var(--animation-duration, 125ms) ease;
|
||||
}
|
||||
|
||||
/* Minimized state - hide content sections */
|
||||
.streaming-display-minimized .streaming-display-content {
|
||||
max-height: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.streaming-display-minimized {
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
/* Model/API icon in the label */
|
||||
.streaming-display-icon {
|
||||
width: 1.1em;
|
||||
height: 1.1em;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Minimized state adjustments */
|
||||
.streaming-display-minimized.streaming-display {
|
||||
padding: 10px 14px;
|
||||
}
|
||||
|
||||
/* Reasoning (thinking) section */
|
||||
.streaming-display-reasoning {
|
||||
background: color-mix(in srgb, var(--SmartThemeBodyColor) 5%, transparent);
|
||||
border-radius: 6px;
|
||||
padding: 8px 10px;
|
||||
border-left: 3px solid color-mix(in srgb, var(--SmartThemeBodyColor) 25%, transparent);
|
||||
}
|
||||
|
||||
.streaming-display-reasoning-label {
|
||||
font-size: 0.8em;
|
||||
font-weight: 600;
|
||||
opacity: 0.5;
|
||||
margin-bottom: 4px;
|
||||
letter-spacing: 0.03em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.streaming-display-reasoning-content {
|
||||
font-size: 0.82em;
|
||||
opacity: 0.65;
|
||||
max-height: 25vh;
|
||||
overflow-y: auto;
|
||||
word-break: break-word;
|
||||
line-height: 1.45;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.streaming-display-reasoning-content p {
|
||||
margin: 0.3em 0;
|
||||
}
|
||||
|
||||
.streaming-display-reasoning-content p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.streaming-display-reasoning-content p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Main content section */
|
||||
.streaming-display-text {
|
||||
border-top: 1px solid color-mix(in srgb, var(--SmartThemeBorderColor) 50%, transparent);
|
||||
padding-top: 8px;
|
||||
min-height: 1.5em;
|
||||
}
|
||||
|
||||
.streaming-display-text-content {
|
||||
font-size: 0.9em;
|
||||
color: var(--SmartThemeBodyColor);
|
||||
max-height: 40vh;
|
||||
overflow-y: auto;
|
||||
word-break: break-word;
|
||||
line-height: 1.5;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.streaming-display-text-content p {
|
||||
margin: 0.4em 0;
|
||||
}
|
||||
|
||||
.streaming-display-text-content p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.streaming-display-text-content p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Strip auto-added quotes from <q> tags, as message formatting adds them */
|
||||
.streaming-display-reasoning-content q:before,
|
||||
.streaming-display-reasoning-content q:after,
|
||||
.streaming-display-text-content q:before,
|
||||
.streaming-display-text-content q:after {
|
||||
content: '';
|
||||
}
|
||||
@@ -565,6 +565,16 @@ label[for="bind_preset_to_connection"]:has(input:checked) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#openai_settings:has(#openai_function_calling:not(:checked)) #tool_call_recurse_limit_block {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#adaptive_p_block:has([data-tg-samplers="adaptive_target"][style*="display: none"]):has([data-tg-samplers="adaptive_decay"][style*="display: none"]) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#openrouter_provider_warning_text,
|
||||
#openrouter_provider_warning_chat {
|
||||
color: var(--warning);
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
.welcomePanel.recentHidden .welcomeRecent,
|
||||
.welcomePanel.recentHidden .recentChatsTitle,
|
||||
.welcomePanel.recentHidden .hideRecentChats,
|
||||
.welcomePanel.recentHidden .recentChatsSettings,
|
||||
.welcomePanel:not(.recentHidden) .showRecentChats {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import libs from './lib';
|
||||
import getContext from './scripts/st-context';
|
||||
import { power_user } from './scripts/power-user';
|
||||
import { power_user, getThemeObject } from './scripts/power-user';
|
||||
import { QuickReplyApi } from './scripts/extensions/quick-reply/api/QuickReplyApi';
|
||||
import { oai_settings } from './scripts/openai';
|
||||
import { textgenerationwebui_settings } from './scripts/textgen-settings';
|
||||
@@ -21,6 +21,7 @@ declare global {
|
||||
type MessageTimestamp = string | number | Date;
|
||||
type Character = import('./scripts/char-data').v1CharData;
|
||||
type ChatMessageExtra = BaseMessageExtra & Partial<ReasoningMessageExtra> & Record<string, any>;
|
||||
type Theme = ReturnType<typeof getThemeObject>;
|
||||
|
||||
interface Group {
|
||||
id: string;
|
||||
@@ -138,6 +139,8 @@ declare global {
|
||||
interface ImageGenerationAttachmentProps {
|
||||
generation_type?: number;
|
||||
negative?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
}
|
||||
|
||||
interface ImageCaptionAttachmentProps {
|
||||
|
||||
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 2.1 KiB |
@@ -1,48 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
version="1.0"
|
||||
width="431.92484pt"
|
||||
height="430.70734pt"
|
||||
viewBox="0 0 431.92484 430.70734"
|
||||
preserveAspectRatio="xMidYMid"
|
||||
id="svg8"
|
||||
sodipodi:docname="koboldhorde.svg"
|
||||
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs12" />
|
||||
<sodipodi:namedview
|
||||
id="namedview10"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:document-units="pt"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.5043945"
|
||||
inkscape:cx="237.63713"
|
||||
inkscape:cy="285.82928"
|
||||
inkscape:window-width="2560"
|
||||
inkscape:window-height="1377"
|
||||
inkscape:window-x="5112"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg8" />
|
||||
<g
|
||||
transform="matrix(0.1,0,0,-0.1,-40.075165,470.78832)"
|
||||
stroke="none"
|
||||
id="g6">
|
||||
<path
|
||||
d="m 2495,4698 c -3,-7 -6,-76 -7,-153 l -3,-140 -115,-5 c -63,-3 -114,-9 -114,-14 1,-4 34,-41 74,-82 l 72,-74 -4,-125 -3,-124 -65,-67 c -74,-75 -224,-205 -257,-223 -27,-14 -54,-3 -89,38 -22,26 -24,26 -156,26 -132,0 -135,0 -172,28 -52,40 -60,67 -41,135 9,30 14,56 11,59 -7,7 -47,-16 -77,-43 l -25,-24 -18,41 c -10,23 -39,56 -68,80 -63,49 -110,53 -160,12 -58,-49 -67,-65 -68,-118 0,-49 2,-53 63,-113 62,-61 63,-62 118,-62 h 56 l 72,-80 73,-80 h 51 c 61,0 66,-3 92,-53 11,-21 46,-69 77,-105 l 58,-67 -320,-3 -321,-2 -55,26 c -47,22 -67,42 -131,125 -79,102 -128,139 -186,139 -23,0 -27,-4 -27,-28 0,-61 91,-163 177,-198 64,-27 97,-59 167,-162 36,-55 75,-107 86,-117 24,-22 80,-108 80,-123 0,-6 -15,-35 -34,-64 -18,-29 -66,-113 -106,-185 l -72,-133 h -80 -79 l 2,80 c 1,44 0,83 -4,86 -3,3 -31,-8 -63,-24 -67,-33 -197,-82 -220,-82 -9,0 -34,-13 -57,-29 -36,-25 -55,-30 -129,-36 -77,-6 -87,-9 -92,-28 -13,-48 -15,-47 157,-47 90,0 232,-3 315,-7 l 152,-6 v -39 -38 h 281 280 l 57,47 c 31,25 80,56 109,69 87,39 78,44 -89,45 -84,1 -232,4 -328,8 l -175,6 55,28 c 30,15 63,27 72,27 16,0 58,44 58,61 0,17 92,150 113,164 12,7 57,17 100,21 l 77,7 62,-43 c 49,-35 72,-45 115,-48 31,-3 53,0 53,5 0,11 -93,102 -156,152 l -42,32 -4,90 c -2,50 -9,94 -16,101 -7,7 -12,16 -12,20 0,4 56,8 123,8 68,0 212,3 319,7 l 195,6 -56,50 c -72,65 -71,63 -71,125 0,29 -7,69 -15,89 -8,19 -15,37 -15,39 0,2 28,4 61,4 57,0 65,3 110,41 l 49,41 v 69 70 l 55,51 c 106,98 95,132 95,-292 v -371 l -45,-42 -44,-42 -2,-194 c -2,-219 -6,-209 76,-210 22,-1 50,-8 62,-16 18,-13 23,-13 30,-2 5,9 33,16 71,20 35,3 66,8 69,11 3,3 8,93 11,199 l 5,194 -47,32 -46,32 v 202 c 0,111 -3,281 -7,377 l -6,174 39,-31 c 107,-86 106,-85 111,-143 7,-89 10,-96 65,-134 43,-29 62,-36 101,-36 h 48 l -5,-32 c -3,-18 -8,-64 -10,-103 l -5,-70 -56,-50 c -30,-28 -55,-53 -55,-55 0,-3 78,-3 172,-2 95,2 237,1 315,-3 l 142,-7 -14,-29 c -9,-17 -15,-56 -15,-97 0,-85 -1,-86 -161,-228 -66,-58 -118,-111 -116,-118 9,-27 130,16 213,76 45,32 47,33 164,34 l 118,2 78,-114 c 44,-62 79,-122 79,-131 0,-16 -18,-19 -205,-24 -113,-3 -238,-7 -277,-8 -40,0 -73,-5 -73,-11 0,-5 21,-18 48,-30 26,-12 81,-43 123,-70 l 75,-50 h 316 316 l 9,38 9,37 58,3 c 53,3 58,1 51,-15 -4,-10 -11,-39 -15,-66 -5,-35 -15,-57 -40,-82 -40,-41 -33,-57 13,-30 18,11 79,35 137,55 l 105,35 9,50 c 5,28 14,53 20,57 6,4 52,8 103,8 h 91 l 11,31 c 6,18 11,33 11,34 0,2 -46,4 -103,7 -96,3 -106,5 -152,36 -27,18 -67,37 -89,43 -44,12 -112,44 -136,64 -8,7 -27,15 -42,17 -27,5 -27,5 -34,-73 l -7,-79 h -89 -89 l -57,118 c -31,64 -69,137 -84,161 -22,36 -28,57 -28,102 0,56 2,60 54,116 29,32 81,98 116,147 49,69 76,96 122,125 138,84 191,138 202,204 l 7,37 h -41 c -59,0 -88,-19 -159,-104 -65,-78 -120,-127 -181,-165 -34,-20 -46,-21 -362,-21 -192,0 -328,4 -328,9 0,5 19,24 42,42 22,18 61,64 85,101 44,68 44,68 90,68 44,0 49,3 134,86 84,82 89,86 122,80 49,-9 84,7 145,67 50,49 52,53 52,105 0,65 -10,84 -62,122 -61,45 -119,42 -165,-6 -18,-20 -43,-54 -54,-75 -10,-21 -22,-39 -26,-39 -3,0 -20,9 -37,19 -17,11 -40,21 -50,23 -17,3 -19,-3 -17,-57 1,-46 -3,-68 -19,-93 -31,-51 -68,-61 -191,-55 -131,7 -152,2 -179,-42 -12,-19 -29,-35 -38,-35 -17,0 -405,306 -429,337 -7,10 -13,45 -13,80 v 63 h 89 c 53,0 93,4 96,11 4,6 -4,22 -16,36 -32,34 -134,120 -150,125 -9,3 -13,49 -13,180 -1,97 -3,178 -6,181 -3,3 -33,8 -67,12 -49,5 -64,4 -68,-7 z"
|
||||
id="path2" />
|
||||
<path
|
||||
d="m 2166,2764 c -3,-9 -6,-59 -6,-112 v -97 l -49,-42 -50,-43 h -145 -146 v -110 -110 h -25 c -17,0 -43,-16 -75,-46 -53,-49 -96,-63 -164,-50 -30,6 -42,18 -89,89 -30,45 -61,97 -70,114 -16,30 -20,31 -83,35 -36,1 -68,0 -71,-5 -2,-4 25,-67 61,-140 36,-72 68,-150 72,-173 6,-38 3,-44 -33,-80 -21,-21 -62,-58 -91,-82 -29,-24 -61,-60 -71,-80 -26,-49 -106,-125 -161,-152 -56,-28 -116,-83 -141,-132 -36,-70 -25,-84 51,-64 48,12 64,25 154,118 149,155 126,148 509,148 174,0 317,-4 317,-8 0,-5 -14,-21 -31,-38 -17,-16 -53,-63 -81,-104 l -50,-75 -57,-6 c -54,-7 -58,-9 -122,-79 l -67,-73 -58,6 c -71,8 -88,0 -149,-71 -34,-41 -45,-62 -45,-88 0,-51 23,-98 64,-129 31,-24 43,-27 85,-23 73,7 121,50 145,130 5,16 8,16 48,-2 63,-29 69,-27 62,20 -6,34 -2,45 20,75 48,63 67,70 182,66 134,-3 172,4 180,35 13,52 26,48 147,-43 63,-49 167,-130 231,-182 l 116,-94 v -57 -57 l -86,-6 c -48,-3 -89,-8 -91,-11 -3,-3 26,-33 63,-68 136,-125 121,-89 123,-288 1,-96 4,-176 6,-179 3,-2 22,12 44,32 22,19 51,43 65,52 25,17 26,20 26,126 v 109 h 119 c 66,0 122,4 125,9 3,5 -33,46 -80,90 l -86,82 7,109 c 8,130 17,146 140,256 43,38 100,90 127,117 64,61 94,63 137,8 l 32,-40 145,-3 146,-3 30,-34 c 27,-30 30,-39 26,-82 -5,-48 -4,-49 21,-48 14,1 40,4 56,8 26,5 32,2 45,-21 8,-15 32,-46 53,-68 35,-36 44,-40 86,-40 38,0 57,7 90,30 45,33 61,63 61,116 0,27 -11,46 -52,91 -66,74 -63,73 -127,73 -53,0 -55,1 -132,75 l -79,75 h -79 c -51,0 -82,4 -89,13 -5,6 -15,38 -22,70 -8,38 -22,70 -41,92 -30,33 -30,34 -9,45 14,8 116,10 328,8 355,-3 350,-2 442,-101 150,-161 142,-154 194,-161 64,-10 75,1 51,55 -26,56 -86,105 -154,125 -45,13 -65,26 -101,67 -25,28 -75,83 -111,122 -37,38 -86,101 -109,140 l -42,69 32,56 c 40,70 140,277 140,291 0,10 -40,6 -112,-12 -30,-8 -42,-18 -59,-52 -28,-54 -75,-125 -107,-159 -49,-53 -158,-50 -221,7 -21,19 -49,38 -63,44 -21,8 -26,18 -31,63 -4,29 -7,78 -7,110 v 56 l -160,4 -159,3 -39,38 -39,38 -7,112 c -4,61 -8,113 -11,115 -8,9 -40,-21 -195,-186 -89,-95 -170,-177 -181,-183 -30,-15 -11,-34 -263,249 -60,67 -112,122 -116,122 -4,0 -11,-7 -14,-16 z m 388,-524 c 4,0 59,50 121,110 62,61 117,110 123,110 16,0 72,-75 72,-96 0,-18 -290,-304 -308,-304 -11,0 -326,287 -330,301 -4,10 41,75 65,95 10,9 38,-13 131,-102 64,-62 121,-114 126,-114 z m -759,-97 c 4,-21 7,-44 8,-52 2,-11 31,-14 143,-15 l 141,-1 69,-60 c 37,-33 128,-118 201,-190 l 133,-130 v -230 c 0,-218 -4,-275 -19,-275 -3,0 -35,24 -71,53 l -65,53 -12,79 c -6,44 -12,81 -12,81 -1,1 -17,14 -37,29 -25,20 -54,30 -93,34 -42,5 -55,10 -52,21 2,8 7,51 12,95 l 8,80 51,47 c 29,25 49,51 45,57 -4,7 -93,11 -268,12 -144,1 -295,4 -335,8 l -73,6 45,43 c 45,43 46,45 46,105 0,61 1,63 56,125 31,34 60,62 64,62 5,0 12,-17 15,-37 z m 1608,-34 47,-41 v -82 c 0,-69 3,-86 20,-104 12,-12 25,-22 31,-22 6,0 8,-4 5,-9 -3,-5 -71,-12 -150,-16 l -144,-7 -159,-148 c -87,-81 -187,-171 -223,-201 l -65,-55 -5,-66 c -3,-45 -11,-72 -24,-87 -36,-39 -125,-103 -136,-96 -6,4 -10,92 -10,254 v 248 l 103,99 c 108,106 215,206 285,267 l 42,37 h 149 c 158,0 161,1 161,51 0,29 20,23 73,-22 z"
|
||||
id="path4" />
|
||||
</g>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="svg8" width="431.92pt" height="430.69pt" preserveAspectRatio="xMidYMid" version="1.0" viewBox="0 0 431.92 430.69" xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="g3" transform="matrix(.1 0 0 -.1 -40.075 470.79)">
|
||||
<path id="path1" d="m2495 4698c-9-97-8-195-10-293-65-14-170 12-229-19 45-55 96-105 146-156-3-83-5-166-7-249-102-101-201-211-322-290-27-14-54-3-89 38-65 77-439-60-369 189 45 119-53 28-91-8-51 115-151 211-246 133-124-105-64-173-5-231 48-64 103-62 174-62 48-54 96-107 145-160 66 0 107 14 143-53 37-63 87-117 135-172-289 13-616-97-827 146-162 210-213 129-213 111 0-155 182-121 344-360 77-118 166-205 166-240-69-128-143-254-212-382h-159c-6 53 16 115-2 166-102-50-248-79-340-135-92-64-208-14-221-64-13-48-15-47 157-47 156 0 311-7 467-13v-77h561c52 44 105 87 166 116 87 39 78 44-89 45-145 2-166 2-503 14 42 19 81 47 127 55 43 0 115 188 171 225 56 21 118 23 177 28 56-38 107-85 177-91 31-3 53 0 53 5-53 72-127 130-198 184l-4 90c-5 123-28 104-28 121 210 14 425 14 637 21-58 55-127 86-127 175 0 72-30 121-30 128 0 2 28 4 61 4 68-7 111 42 159 82v139l55 51c106 98 95 132 95-292v-371c-30-28-59-56-89-84l-2-194c-2-219-6-209 76-210 22-1 50-8 62-16 18-13 23-13 30-2 5 9 33 16 71 20 35 3 66 8 69 11 6 6 10 155 16 393-31 21-62 43-93 64 3 251-4 502-13 753 60-51 142-89 150-174 7-89 10-96 65-134 44-37 95-36 149-36-12-68-15-137-20-205-37-35-78-66-111-105 0-22 2 19 629-12-23-39-28-82-29-126 0-85-1-86-161-228-66-58-118-111-116-118 9-27 130 16 213 76 45 32 47 33 164 34l118 2c46-83 124-154 157-245 0-47-496-7-555-43 81-49 166-97 246-150h632l18 75c20-2 119 19 109-12-20-51-3-96-55-148-40-41-33-57 13-30 32 20 119 49 242 90 9 34 6 78 29 107 12 8 86 8 194 8 4 12 22 62 22 65 0 2-46 4-103 7-194 6-120 46-241 79-97 26-138 76-178 81-44 11-38-118-41-152h-178c-47 93-87 190-141 279-88 140 63 263 142 365 149 210 291 154 331 366-217 0-138-117-381-269-71-42-690-15-690-12 70 58 140 211 217 211 110 0 171 181 256 166 107-20 302 172 135 294-157 116-226-120-245-120-9 0-60 37-87 42-17 3-19-3-17-57 6-274-307-57-389-190-12-19-29-35-38-35-17 0-405 306-429 337-18 45-13 96-13 143h89c53 0 93 4 96 11 17 26-154 157-166 161-21 7-9 351-19 361-2 2-126 29-135 5z"/>
|
||||
<path id="path3" d="m2160 2555c-33-28-66-57-99-85h-291v-220c-128 0-96-128-264-96-55 11-143 173-159 203-19 41-119 33-154 30-6-12 122-252 133-313 15-96-132-130-195-242-71-133-240-162-302-284-36-70-25-84 51-64 48 12 64 25 154 118 149 155 126 148 509 148 174 0 317-4 317-8-60-67-112-142-162-217-114 4-177-83-246-158-101 14-134 18-207-65-166-201 173-364 249-110 15 49 125-85 110 18-4 24-16 149 202 141 134-3 172 4 180 35 13 52 26 48 147-43 117-90 232-183 347-276v-114c-58-3-122-7-177-17-3-3 26-33 63-68 136-125 121-89 123-288 1-96 4-176 6-179 114 63 135 89 135 210v109c78 11 169-18 244 9-43 65-109 118-166 172-24 285 101 312 274 482 81 84 115 36 169-32l291-6c34-35 60-64 56-116-12-117 80 11 122-61 123-230 398-46 238 129-66 74-63 73-127 73-88 2-151 93-211 150h-79c-93 0-94 3-111 83-25 121-96 113-50 137 14 8 116 10 328 8 355-3 350-2 442-101 150-161 142-154 194-161 138-22 24 143-103 180-112 52-233 185-363 398 58 114 136 224 172 347 0 10-40 6-112-12-75-20-186-386-387-204-48 42-86 37-94 107-8 55-7 111-7 166-106 3-213 5-319 7l-78 76c-6 74-9 151-18 227-18 20-336-347-376-369-60-30-362 398-379 371-15-25-20-173-20-225zm394-315c12 0 229 220 244 220 16 0 72-75 72-96 0-18-290-304-308-304-11 0-326 287-330 301-4 10 41 75 65 95 23 20 239-216 257-216zm-751-149c84-11 197-15 284-16 140-120 271-251 403-380-10-256-8-257-19-505 0-5-57 42-136 106-8 53-16 107-24 160-89 89-191 52-182 84 3 11 9 61 20 175 54 50 55 51 96 104-12 21-352-1-676 26 51 48 91 72 91 148-4 72 60 129 120 187 7 7 17-43 23-89zm1647-23c1-67-10-140 20-186 6-15 39-17 36-31-5-9-121-15-294-23-146-138-294-274-447-404-8-49 3-111-29-153-36-39-125-103-136-96-8 6-10 64-10 502 141 137 282 273 430 403 299-9 306-19 310 51 16 48 96-42 120-63z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 3.8 KiB |
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="svg1" width="329.35" height="307.64" version="1.1" viewBox="0 0 329.35 307.64" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g id="layer1" transform="translate(-779.42 -7.5519)"><path id="path9" transform="translate(429.83 -2.2682)" d="m647.8 18.2-1.9 3.5-45 0.1-36.5 42.6c-20.2-12.3-43-0.7-48.7 9.8-1 1.8-1.4 1.5-5.9-3.1-14.2-15-34.2-11.1-39.7-8.4-4.7 2.3-4.9 2.3-6.6 0.5-12.3-13.8-24.3-27.7-36.4-41.5l-44.3-0.1-2-3.2c-8.1-12.9-28.1-9.2-30.9 5.7-3.4 18.1 22.4 28.1 31.1 11.8l1.8-3.2h39.3l34 39c-2.7 5.4-6 10.6-7.3 16.6-0.5 3.2-1.4 4.3-4.8 6.3-5 3-9.2 7.1-13.5 11.1-10.6 0.1-23.9 1.6-25.6-12-0.4-14.2-13.9-20.4-24.7-14.7-11.9 6.3-11.7 24.3 0.4 30.1 4.2 2 10.8 2.1 14.5 0.2 7.5-3.9 4.9 7.4 21.5 7.4 6.2 0 6.9 0.2 6.2 1.8-1 13.1-3.6 10.8-10.2 38.8l-24.5 0.6-4.2-4.4c-11.8-12.6-29.6-5.5-29.6 10.5 0 16.3 20.2 24.6 31.3 8.1l2.9-4.3 24.2 0.6c5.7 25.5 10.2 17.2 7.7 27.1-1.9 18.1-6.8 13.4-21.7 13.4l-12 8.9c-27.2-8.2-33.1 21.6-18.3 29.1 11.7 6 24.9-1.8 24.9-14.6 0-5.1 0.1-5.4 4.7-8.9 6-5.1 14.3-3.3 21.6-3 5.3 9.6 12.3 18.6 24 20.1 9.1 1.2 4.4 5.9 14.5 18l-31.9 36.4h-30.6l-2.4-3.7c-6.3-9.5-21.8-10.7-28.7 1.3-8 14 7.1 29.9 21.3 23.5 3.8-1.7 9.5-7.2 9.5-9.2 12-1.6 24.4-0.9 36.5-0.9l17.4-20.1c14.3-16.5 17.8-20 19.5-19.6 20.4 5.4 32.4 0 45.7-14.6 2.9 3.8 17 20.1 39 14.8 6.9-1.7 7-1.7 8.7 0.3 11.2 13 22.5 26 33.7 39l36.2 0.1 2.4 3.8c9 14 32.2 8.1 30.7-10.4-1.5-18.4-23.8-19.2-30.8-7.9l-2.2 3.5h-30.7l-32-37.1c4.1-4.8 7.2-10 9.2-16 1.3-4.1 17 1.6 29.6-21.9 10.6-0.2 25.6-1.4 27.1 12.4 0 12.9 13.2 20.6 24.9 14.6 14.8-7.5 11.1-39.7-18.3-29.1-10.3-8.2-9.6-8.9-21.7-8.9-14.3 1.2-9.6-5.6-12.1-15.1-2.5-8.3 1.7-1.7 7.4-25.9h25.6l1.2 3c5.8 13.9 32 13.5 32-7.1 0-19.1-23.6-21.3-30.4-9.8l-1.7 2.9c-4.7-0.4-26.5 1.8-26.9-2.3 0-10.3-7.7-17.7-9-37.7 6.7 0 12.9 0.5 18.2-4.7 5.3-4 6.3-4.5 8-3.4 12.7 7.9 33.4-9.6 21.3-25.4-9.5-12.5-31.4-5.7-30.4 11.2-0.4 12.3-14.3 11.3-23.3 11.3-4.8-4.3-9.6-8.9-15.2-12.1-8.9-4.7-2.6-7.7-12.6-21.7 11.2-13 22.3-26.1 33.5-39.1h40l2 3.2c10 15.8 35.5 5.4 30.5-13.1-4.8-18-24-15.5-30.5-4.8zm-84.2 59.5c6.4 7.1 8.3 15.9 5.5 25.2-1.5 5.1-8.2 12.6-13.3 14.9-14.8 6.7-2.7-13.1-13.5-13.1-4.8 0-5.6 2-4.1 10.1 1.1 6.4 0.4 12.6-0.5 19 2.8 0 8.7 1.8 10.5-0.2 0.3-0.5 1.8-4 4.1-4.4 21.3-3.4 27.1-26.6 28-26.6 2.1 0 24.8 17.7 13.8 37.2-6.5-1.8-21.6-21.7-24.8-7.4 0 3.7 22.3 19.3 21.5 26.5-1 9.3 5.3 9.7 7.9 7.1 1.3-1.3 1.6-3.3 1.4-10 1.4-31.4 10.3 28.3-1.6 22.5-6.4-5.6-20-8.6-24.8-5.4-3.9 2.5-4.2 10.6 3.8 9.1 7.5-1.4 15.7 3.3 19.2 11 6.5 14.3 2.4 30.5-9.1 35.7-17.5 7.9-2.6-46.6-54.6-12.9-5.9 5.2-7.2 8.1-4.8 10.6 3.8 2.7 27.5-9.9 32.5-11.9 12.3 5.4 14.8 35-7.5 42.6-12.4 4.2-25.4-1.4-31.4-13.4-2.3-4.5-2.3-5-2.6-49.3v-84c0.4-23.8 1-26.2 7.6-33.1 9.3-9.7 26-11.8 36.8 0.2zm-55.3 163.3c-0.1 5.9-9.8 17.8-24.5 17.8-16.2 0-41.9-21.7-10.9-53.5 6.7 7.1 11.7 16.1 19.9 21.6 7.5 4.7 10.5-1.9 8.1-5.6-1-1.5-10.4-12.7-16.6-19.1 0.1-6.2 0-13.1 0-19.3-0.7 0-8.7-0.2-9 0-0.3 0.3-0.5 6.1-0.5 10-0.9 9.4-21.7 8.8-25.2 34.6-1.4 9.9-16.6-1-19.1-9.4-1.5-5.2-1.5-16.4 0-21.6 3.3-10.9 17.3-15.3 21.2-16.4-2.1-2.5-4.8-4.9-5.9-8.1 0-3.8-17.3 9.8-18.6 7.8-9.4-14.6 2.1-52.8 1.1-22.2-0.3 8.2 0.7 10.2 5 10.2 3.6 0 4.9-2.4 4.2-7.6-0.6-4.3 8.7-25.5 21.1-25.5-4-19.2-24 14.8-27-0.7-3.6-18.7 15.7-30.2 16.5-30.2 0.5 0 5.3 15.4 17.5 22.5 7.8 4.6 16.2 7.4 25.2 7.4-3.8-25.1 4.9-28.9-4.2-28.9-9 0-1.8 17.9-11.8 14.5-14.2-4.9-20.9-22.1-13.8-35.6 11.6-22.2 42.9-14.1 44.8 0.6z" fill="#a11b1b"/><path id="path2" transform="translate(429.83 -2.2682)" d="m461.3 217.7c-20-1-19-0.4-19-10.1 0-4.4 0.4-7.8 0.8-7.5s11.1 0.8 23.8 1.1c27.9 0.8 26.9 1.1 26.9-9.7v-7.3h-17.5c-25.1 0-30.4-2.1-33.7-13.4-2.4-8.1-1.5-24.5 1.5-29.4 4.3-6.9 7.7-8.1 25.1-8.9 9.7-0.4 15.7-0.6 39 0.5v15.7h-18.9c-18.3 0-23.6 0.7-25.3 3.3-1.3 2-0.9 10.2 0.6 12.2 3.5 4.8 31.3-0.3 41.5 5.4 6.9 3.8 7.9 8.6 8.3 21.4 0.4 12.6-0.2 17.1-4.4 21.4-6.1 6.2-12.7 6.9-48.9 5.1zm78.9-0.7c0.5-22.6-0.3-45.2-0.4-67.8l-25.5 0.2v-17.2h72.5l0.6 16.4-25.6 0.6c-0.5 22.2 0.5 45.5-0.3 67.8-0.3 3.3-21.3 2.3-21.3 0z" fill="#fff"/></g></svg>
|
||||
|
After Width: | Height: | Size: 3.9 KiB |
@@ -0,0 +1 @@
|
||||
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Minimax</title><path d="M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 2.5 KiB |
@@ -1,60 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="8.2832384mm"
|
||||
height="9.4351206mm"
|
||||
viewBox="0 0 8.2832384 9.4351206"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xml:space="preserve"
|
||||
inkscape:version="1.3 (0e150ed, 2023-07-21)"
|
||||
sodipodi:docname="scale.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.0289025"
|
||||
inkscape:cx="8.7471843"
|
||||
inkscape:cy="8.2612296"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="688"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="25"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1" /><defs
|
||||
id="defs1" /><g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-88.746886,-143.1532)"><g
|
||||
id="g1"
|
||||
transform="matrix(0.26458333,0,0,0.26458333,88.077577,143.1532)"><path
|
||||
d="m 14.3423,8.42148 0.0218,-0.00723 2.1725,-0.51502 c 0.4642,-0.10879 0.8631,-0.40619 1.1025,-0.81965 l 0.5041,-0.87044 0.0146,-0.02902 0.0145,0.02902 0.5041,0.87044 c 0.2394,0.41346 0.6383,0.71086 1.1025,0.81965 l 2.1725,0.51502 0.0254,0.01087 H 21.9514 L 19.7789,8.94737 C 19.3147,9.0562 18.9158,9.35359 18.6764,9.76705 l -0.5041,0.87045 -0.0145,0.029 -0.0146,-0.029 -0.5041,-0.87045 C 17.3997,9.35359 17.0008,9.0562 16.5366,8.94737 L 14.3641,8.43239 14.3423,8.42512 Z"
|
||||
id="path10" /><path
|
||||
d="M 14.3423,2.245 14.3641,2.23775 16.5366,1.72274 C 17.0008,1.61393 17.3997,1.31653 17.6391,0.903078 L 18.1432,0.0290146 18.1578,0 18.1723,0.0290146 18.6764,0.899453 C 18.9158,1.31291 19.3147,1.61031 19.7789,1.71911 L 21.9514,2.23412 21.9768,2.245 H 21.9514 L 19.7789,2.76726 C 19.3147,2.87607 18.9158,3.17347 18.6764,3.58692 L 18.1723,4.45738 18.1578,4.48639 18.1432,4.45738 17.6391,3.58692 C 17.3997,3.17347 17.0008,2.87607 16.5366,2.76726 L 14.3641,2.25225 Z"
|
||||
id="path11" /><path
|
||||
d="M 18.183,15.7998 C 17.9328,13.7832 16.754,11.9807 14.9697,10.9507 11.749,9.03938 8.96364,8.82176 6.23265,6.73999 L 2.52967,8.79638 18.183,17.8344 33.8364,8.79638 30.1334,6.74359 c -2.731,2.08181 -5.5164,2.29943 -8.737,4.21071 -1.7844,1.0301 -2.9631,2.8326 -3.2134,4.8491 z"
|
||||
id="path12" /><path
|
||||
d="M 18.183,35.6603 C 17.824,35.653 17.4649,35.5551 17.1458,35.3701 L 2.52967,26.9269 V 8.79646 L 17.1458,17.236 c 0.3227,0.185 0.6782,0.2829 1.0372,0.2902 0.3591,-0.0073 0.7181,-0.1052 1.0373,-0.2902 L 33.8364,8.79646 V 26.9306 l -14.6161,8.4395 c -0.3228,0.185 -0.6782,0.2829 -1.0373,0.2902 z"
|
||||
id="path13" /><path
|
||||
d="m 18.183,35.6603 c 0.3591,-0.0073 0.7181,-0.1052 1.0373,-0.2902 l 14.616,-8.4395 V 8.79646 L 19.2203,17.236 c -0.3228,0.185 -0.6782,0.2829 -1.0373,0.2902"
|
||||
id="path14" /><path
|
||||
d="M 18.183,17.5262 C 17.824,17.5189 17.4649,17.421 17.1458,17.236 L 2.52967,8.79646 V 26.9306 l 14.61613,8.4395 c 0.3227,0.185 0.6782,0.2829 1.0372,0.2902"
|
||||
id="path15" /><path
|
||||
d="M 18.1831,17.5262 C 17.824,17.5189 17.465,17.421 17.1458,17.236 l -1.4507,-0.8378 v 18.1341 l 1.4507,0.8378 c 0.3228,0.185 0.6782,0.2829 1.0373,0.2902 0.359,-0.0073 0.7181,-0.1052 1.0372,-0.2902 l 1.4508,-0.8378 V 16.3946 l -1.4508,0.8378 c -0.3227,0.1849 -0.6782,0.2829 -1.0372,0.2901 z"
|
||||
id="path16" /><path
|
||||
d="M 9,5.32055 9.02174,5.31328 11.1942,4.79826 c 0.4643,-0.10879 0.8632,-0.40618 1.1026,-0.81964 l 0.5041,-0.87044 0.0145,-0.02902 0.0145,0.02902 0.5041,0.87044 c 0.2394,0.41346 0.6384,0.71085 1.1026,0.81964 l 2.1725,0.51502 0.0253,0.01087 H 16.6091 L 14.4366,5.84644 C 13.9724,5.95523 13.5734,6.25263 13.334,6.66609 L 12.8299,7.53653 12.8154,7.56555 12.8009,7.53653 12.2968,6.66609 C 12.0574,6.25263 11.6585,5.95523 11.1942,5.84644 L 9.02174,5.33142 9,5.32415 Z"
|
||||
id="path17" /><path
|
||||
d="m 19.6593,5.32055 0.0218,-0.00727 2.1724,-0.51502 c 0.4642,-0.10879 0.8632,-0.40618 1.1026,-0.81964 l 0.5041,-0.87044 0.0145,-0.02902 0.0145,0.02902 0.5042,0.87044 c 0.2393,0.41346 0.6383,0.71085 1.1025,0.81964 l 2.1724,0.51502 0.0255,0.01087 H 27.2683 L 25.0959,5.84644 C 24.6317,5.95523 24.2327,6.25263 23.9934,6.66609 L 23.4892,7.53653 23.4747,7.56555 23.4602,7.53653 22.9561,6.66609 C 22.7167,6.25263 22.3177,5.95523 21.8535,5.84644 L 19.6811,5.33142 19.6593,5.32415 Z"
|
||||
id="path18" /></g></g></svg>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="svg1" width="8.28mm" height="9.4349mm" version="1.1" viewBox="0 0 8.28 9.4349" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path id="path9" d="m4.14 0c-0.05 0.08-0.1 0.16-0.14 0.24-0.07 0.11-0.17 0.19-0.29 0.22-0.2 0.04-0.39 0.09-0.58 0.13 0.19 0.05 0.38 0.1 0.58 0.14 0.12 0.03 0.22 0.11 0.29 0.22 0.04 0.08 0.09 0.16 0.14 0.24 0.04-0.08 0.09-0.16 0.13-0.24 0.07-0.11 0.17-0.19 0.29-0.22 0.2-0.04 0.39-0.09 0.59-0.14-0.2-0.04-0.39-0.09-0.59-0.14-0.12-0.02-0.22-0.1-0.29-0.21-0.04-0.08-0.09-0.16-0.13-0.24zm-1.42 0.81c-0.04 0.08-0.09 0.16-0.14 0.24-0.06 0.11-0.16 0.19-0.29 0.22-0.19 0.05-0.38 0.09-0.58 0.14 0.19 0.05 0.39 0.09 0.58 0.14 0.12 0.03 0.23 0.11 0.29 0.22 0.05 0.08 0.09 0.16 0.14 0.24 0.05-0.09 0.09-0.17 0.14-0.25 0.06-0.11 0.17-0.18 0.29-0.21 0.19-0.05 0.39-0.1 0.58-0.14-0.19-0.05-0.39-0.09-0.58-0.14-0.12-0.03-0.23-0.11-0.29-0.22-0.05-0.08-0.09-0.16-0.14-0.24zm2.82 0c-0.04 0.08-0.09 0.16-0.14 0.24-0.06 0.11-0.16 0.19-0.29 0.22-0.19 0.05-0.38 0.09-0.58 0.14 0.19 0.05 0.39 0.09 0.58 0.14 0.12 0.03 0.23 0.11 0.29 0.22 0.05 0.08 0.09 0.16 0.14 0.24 0.05-0.09 0.09-0.17 0.14-0.25 0.06-0.11 0.17-0.18 0.29-0.21 0.19-0.05 0.39-0.1 0.58-0.14-0.19-0.05-0.39-0.09-0.58-0.14-0.12-0.03-0.23-0.11-0.29-0.22-0.05-0.08-0.09-0.16-0.14-0.24zm-1.4 0.83c-0.05 0.07-0.1 0.15-0.14 0.23-0.07 0.11-0.17 0.19-0.29 0.22-0.2 0.05-0.39 0.09-0.58 0.14 0.19 0.05 0.39 0.09 0.58 0.14 0.12 0.03 0.23 0.11 0.29 0.22 0.05 0.08 0.09 0.16 0.14 0.24 0.04-0.09 0.09-0.17 0.13-0.25 0.07-0.11 0.17-0.18 0.29-0.21 0.2-0.05 0.39-0.1 0.59-0.14-0.2-0.05-0.39-0.09-0.59-0.14-0.12-0.03-0.22-0.11-0.29-0.22-0.04-0.08-0.09-0.16-0.13-0.23zm-3.16 0.14-0.98 0.55v4.8c1.29 0.74 2.58 1.49 3.87 2.23 0.25 0.14 0.46 0.05 0.55 0 1.29-0.75 2.57-1.49 3.86-2.23v-4.8l-0.98-0.55c-1.11 0.86-2.96 0.79-3.16 2.4-0.2-1.61-2.04-1.55-3.16-2.4z"/></svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -1,88 +1,7 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||
width="1280.000000pt" height="1217.000000pt" viewBox="0 0 1280.000000 1217.000000"
|
||||
preserveAspectRatio="xMidYMid meet">
|
||||
<metadata>
|
||||
Created by potrace 1.15, written by Peter Selinger 2001-2017
|
||||
</metadata>
|
||||
<g transform="translate(0.000000,1217.000000) scale(0.100000,-0.100000)" stroke="none">
|
||||
<path d="M7704 12160 c-84 -17 -256 -71 -307 -96 -186 -94 -274 -202 -399
|
||||
-492 -32 -74 -72 -152 -90 -175 -80 -100 -141 -163 -211 -215 -41 -32 -145
|
||||
-120 -232 -197 -228 -203 -324 -268 -491 -331 -160 -60 -436 -92 -899 -104
|
||||
-428 -11 -478 -15 -585 -50 -499 -163 -1061 -520 -1543 -979 l-78 -75 -100 49
|
||||
c-54 27 -99 52 -99 55 0 3 35 46 77 95 131 154 287 370 387 537 77 130 96 168
|
||||
96 200 0 36 -2 38 -25 32 -15 -4 -39 0 -60 10 -29 14 -42 15 -77 5 -147 -39
|
||||
-405 -230 -705 -523 -79 -76 -143 -136 -143 -132 0 3 37 49 81 102 45 54 132
|
||||
165 195 248 64 86 132 166 159 186 95 72 107 84 129 129 13 25 33 91 45 146
|
||||
12 55 29 120 38 144 22 59 11 76 -53 78 -27 0 -63 4 -80 8 -23 5 -44 0 -85
|
||||
-20 -78 -39 -264 -232 -441 -455 -80 -102 -192 -243 -249 -315 -135 -171 -213
|
||||
-258 -273 -306 -57 -46 -91 -50 -108 -14 -16 35 15 222 42 250 10 11 35 65 54
|
||||
120 19 55 69 182 110 283 42 100 75 186 74 190 -1 4 4 25 11 46 14 39 12 113
|
||||
-5 328 l-7 77 -72 6 c-80 8 -99 2 -153 -49 -101 -93 -192 -314 -302 -728 -110
|
||||
-413 -138 -498 -195 -589 -13 -20 -79 -99 -145 -175 -206 -235 -338 -412 -628
|
||||
-844 -188 -278 -318 -656 -353 -1020 -16 -171 -1 -459 33 -638 9 -50 15 -62
|
||||
29 -60 11 2 31 -19 60 -62 60 -88 105 -118 205 -134 140 -22 189 -10 460 118
|
||||
49 24 131 68 182 99 51 31 92 51 92 44 0 -7 -34 -185 -75 -396 l-74 -383 41
|
||||
-67 c23 -36 53 -82 67 -101 l25 -35 -33 30 c-51 46 -34 16 56 -98 105 -132
|
||||
471 -492 628 -618 130 -105 509 -381 670 -489 384 -257 905 -493 1135 -515 49
|
||||
-4 137 -27 255 -65 192 -63 338 -106 475 -140 47 -11 92 -23 99 -26 23 -8 -73
|
||||
-49 -282 -120 -492 -168 -840 -315 -1062 -447 -330 -197 -432 -274 -532 -403
|
||||
-27 -35 -57 -53 -210 -124 -124 -57 -199 -86 -248 -95 -118 -21 -186 -60 -221
|
||||
-127 -14 -28 -17 -124 -5 -168 4 -15 1 -43 -10 -70 -19 -51 -16 -70 11 -70 14
|
||||
0 21 -10 25 -37 4 -21 12 -49 18 -63 21 -43 179 -193 257 -243 41 -27 134 -87
|
||||
205 -133 209 -137 484 -268 770 -367 55 -19 163 -62 240 -94 77 -33 201 -81
|
||||
275 -107 74 -27 191 -68 260 -93 179 -65 382 -113 721 -172 271 -47 301 -50
|
||||
350 -40 36 8 116 10 239 6 276 -8 386 -41 584 -172 53 -35 153 -111 222 -169
|
||||
145 -121 277 -222 384 -293 143 -96 584 -356 659 -390 42 -19 87 -40 101 -48
|
||||
14 -7 41 -16 62 -20 45 -9 93 23 107 69 5 17 12 39 16 49 5 12 2 17 -8 17 -8
|
||||
0 -29 21 -45 47 -30 46 -189 207 -322 326 l-65 59 63 -47 c34 -26 110 -92 168
|
||||
-147 93 -89 129 -111 129 -82 0 5 4 16 9 23 7 11 -13 36 -81 100 -108 103
|
||||
-189 162 -433 316 -185 117 -268 185 -336 277 -19 25 -39 60 -45 78 -10 27 -9
|
||||
34 10 54 27 28 108 40 386 57 219 13 1193 2 1213 -13 27 -22 132 15 132 46 0
|
||||
8 -16 33 -35 56 -19 23 -35 50 -35 60 0 18 -46 35 -55 19 -3 -4 -31 1 -63 12
|
||||
-149 52 -318 76 -737 105 -235 16 -261 16 -435 1 -102 -10 -214 -17 -250 -17
|
||||
-114 0 -360 70 -360 103 0 16 32 46 80 75 45 26 325 127 407 146 34 8 75 23
|
||||
90 34 60 42 161 85 358 152 235 80 316 118 406 190 81 65 86 74 65 117 -9 18
|
||||
-16 44 -16 57 l0 23 -162 -3 c-129 -1 -190 -7 -295 -28 -222 -44 -459 -119
|
||||
-758 -238 -238 -95 -287 -112 -425 -144 -169 -38 -325 -50 -487 -36 -76 7
|
||||
-160 18 -188 26 l-50 13 28 12 c16 6 30 11 32 11 12 0 345 143 470 202 332
|
||||
157 506 266 675 420 l73 67 -12 55 c-7 31 -20 65 -29 76 -101 125 -621 -82
|
||||
-1438 -572 -133 -80 -241 -138 -256 -138 -49 0 -615 99 -802 140 -252 56 -364
|
||||
92 -411 135 -20 19 -45 37 -56 40 -21 7 -24 32 -6 56 22 29 245 92 467 133 47
|
||||
8 213 36 370 61 476 76 694 134 917 244 131 65 236 136 357 244 45 40 140 120
|
||||
211 178 161 132 280 255 324 339 33 62 34 65 28 156 -5 80 -10 102 -38 155
|
||||
-31 58 -117 153 -186 206 -18 14 -116 65 -219 114 -243 116 -360 193 -504 333
|
||||
-188 183 -293 261 -565 422 -82 48 -171 105 -198 125 l-47 38 42 5 c24 3 111
|
||||
12 193 21 493 52 979 180 1545 407 263 106 500 246 735 435 126 101 364 329
|
||||
502 482 101 111 328 407 426 556 40 61 57 80 53 60 -125 -518 -151 -1060 -65
|
||||
-1343 25 -80 96 -214 139 -262 18 -19 27 -27 20 -17 -7 9 -10 17 -8 17 3 0 43
|
||||
-25 89 -55 171 -113 412 -161 1029 -206 451 -32 470 -33 734 -14 271 19 415
|
||||
17 541 -10 110 -23 118 -29 72 -51 -41 -20 -43 -23 -24 -47 10 -14 18 -14 53
|
||||
-5 34 9 53 8 105 -6 90 -25 320 -118 479 -193 230 -110 431 -199 535 -238 124
|
||||
-46 312 -95 385 -99 30 -2 83 -9 117 -17 61 -13 62 -13 65 -48 2 -30 7 -37 28
|
||||
-39 51 -8 174 54 178 89 1 8 5 31 8 51 5 28 1 46 -16 72 -82 134 -460 330
|
||||
-1014 527 -140 50 -173 65 -155 70 96 28 461 151 584 196 326 121 639 263 813
|
||||
371 42 26 99 58 125 71 114 55 208 178 193 251 -9 45 -55 100 -101 121 -162
|
||||
74 -676 -86 -1330 -413 -73 -37 -114 -53 -105 -42 8 11 56 66 105 124 50 58
|
||||
110 130 135 160 65 82 184 203 275 280 76 64 84 74 145 194 54 107 65 136 68
|
||||
190 6 87 -5 103 -73 111 -67 9 -106 -5 -219 -76 -219 -139 -550 -418 -1035
|
||||
-873 l-223 -210 -114 38 c-63 20 -114 39 -114 40 0 2 14 34 31 72 18 38 61
|
||||
139 96 224 36 85 80 191 98 235 19 44 41 121 50 170 9 50 25 132 36 183 10 51
|
||||
19 108 19 128 0 45 -23 100 -48 113 -32 17 -92 13 -127 -9 -111 -69 -302 -428
|
||||
-489 -918 -22 -56 -32 -72 -45 -68 -53 17 -275 68 -386 90 -242 47 -310 55
|
||||
-500 60 -119 3 -209 10 -240 19 -107 30 -209 104 -164 119 16 5 -5 45 -43 80
|
||||
-32 30 -33 46 -14 140 25 118 65 191 296 548 48 74 101 169 118 210 16 41 50
|
||||
125 76 185 84 204 97 320 50 450 -40 112 -41 105 27 155 85 63 378 365 475
|
||||
490 101 130 244 343 354 526 46 76 124 201 172 278 49 76 100 166 114 200 28
|
||||
66 55 121 281 566 218 431 289 627 323 890 6 47 18 125 27 173 14 75 14 101 4
|
||||
165 -19 128 -101 273 -210 375 -28 26 -51 50 -51 52 0 3 14 5 30 5 17 0 30 3
|
||||
30 8 -1 22 -136 101 -289 167 -216 95 -278 115 -466 153 -304 63 -465 66 -712
|
||||
13 -355 -76 -560 -80 -928 -16 -304 53 -410 63 -501 45z m2941 -1516 c-15 -49
|
||||
-44 -132 -67 -184 -59 -140 -200 -441 -204 -437 -2 2 28 75 66 162 69 155 185
|
||||
443 210 518 24 75 20 29 -5 -59z m-3225 -9228 c92 -8 187 -23 215 -32 l50 -18
|
||||
-35 -7 c-87 -19 -329 -31 -406 -21 -443 60 -615 88 -588 94 48 12 586 0 764
|
||||
-16z"/>
|
||||
</g>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="svg1" width="1281.8pt" height="1215.8pt" preserveAspectRatio="xMidYMid" version="1.0" viewBox="0 0 1281.8 1215.8" xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata id="metadata1">Created by potrace 1.15, written by Peter Selinger 2001-2017</metadata>
|
||||
<g id="g1" transform="matrix(.1 0 0 -.1 1.9156 1216.5)">
|
||||
<path id="path1" d="m6998 11572c-96-258-333-414-533-587-370-329-494-412-1390-435-874 36-1595-534-2206-1104-62 39-142 56-199 104 0 9 262 294 464 632 74 121 192 285-66 247-417-111-1220-1151-572-305 100 137 564 539 318 683-471 46-1109-1370-1236-1102 23 505 514 977 207 1300-445 44-287-954-795-1541-1448-1651-1018-2700-654-2758 335-53 734 316 734 261 0-180-204-689-108-846 752-1155 2134-1636 3377-2057 99-35-1443-411-1876-970-121-157-587-192-679-346-256-719 2022-1610 3117-1657 812 100 1428-660 2088-1018 130-59 213-134 286 50-220 493-1110 853-956 1021 132 137 1731-15 1731 90 0 8-16 33-35 56-357 414-1665-11-1935 283 0 119 972 340 1341 597 121 97 56 186-113 194-574-4-1043-309-1478-410-184-41-447-69-725 3 83 35 240 88 530 225 448 212 563 317 748 487-10 44-16 92-41 131-101 125-621-82-1438-572-133-80-241-138-256-138-49 0-615 99-802 140-338 75-525 153-473 231 22 29 245 92 467 133 435 77 883 115 1287 305 216 102 386 272 568 422 257 211 446 400 314 650-170 319-510 265-909 653-388 377-556 379-810 585 78 10 157 17 235 26 2709 261 3344 2357 3261 1940-125-518-151-1060-65-1343 200-639 1746-555 2003-537 674 40 1167-320 1761-550 726-269 856-137 765 9-161 263-1223 582-1169 597 508 133 2142 769 1614 1010-297 136-1465-492-1435-455 91 57 965 1014 655 1059-597-178-1028-736-1477-1159-75 29-155 45-228 78 0 20 239 507 275 701 27 105 141 556-120 415-211-131-498-997-534-986-290 78-585 141-886 150-236-1-496 47-461 358 71 337 157 167 490 943 217 528-107 470 77 605 459 340 1060 1370 1115 1494 351 733 1106 1835 145 2401-1027 452-1067-31-2106 150-558 97-937 83-1207-543z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="64" height="64">
|
||||
<path d="M8.16 23h21.177v-5.86l-4.023-2.307-.694-.3-16.46.113z" fill="none" />
|
||||
<path
|
||||
d="M22.012 22.222c.197-.675.122-1.294-.206-1.754-.3-.422-.807-.666-1.416-.694l-11.545-.15c-.075 0-.14-.038-.178-.094s-.047-.13-.028-.206c.038-.113.15-.197.272-.206l11.648-.15c1.38-.066 2.88-1.182 3.404-2.55l.666-1.735a.38.38 0 0 0 .02-.225c-.75-3.395-3.78-5.927-7.4-5.927-3.34 0-6.17 2.157-7.184 5.15-.657-.488-1.5-.75-2.392-.666-1.604.16-2.9 1.444-3.048 3.048a3.58 3.58 0 0 0 .084 1.191A4.84 4.84 0 0 0 0 22.1c0 .234.02.47.047.703.02.113.113.197.225.197H21.58a.29.29 0 0 0 .272-.206l.16-.572z"
|
||||
/>
|
||||
<path
|
||||
d="M25.688 14.803l-.32.01c-.075 0-.14.056-.17.13l-.45 1.566c-.197.675-.122 1.294.206 1.754.3.422.807.666 1.416.694l2.457.15c.075 0 .14.038.178.094s.047.14.028.206c-.038.113-.15.197-.272.206l-2.56.15c-1.388.066-2.88 1.182-3.404 2.55l-.188.478c-.038.094.028.188.13.188h8.797a.23.23 0 0 0 .225-.169A6.41 6.41 0 0 0 32 21.106a6.32 6.32 0 0 0-6.312-6.302"
|
||||
/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -697,7 +697,7 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,claude,aimlapi,openrouter,ai21,makersuite,vertexai,mistralai,custom,cohere,perplexity,groq,siliconflow,electronhub,chutes,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,zai">
|
||||
<div class="range-block" data-source="openai,claude,aimlapi,openrouter,ai21,makersuite,vertexai,mistralai,custom,cohere,perplexity,groq,siliconflow,minimax,electronhub,chutes,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,zai,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Temperature">
|
||||
Temperature
|
||||
</div>
|
||||
@@ -710,7 +710,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,custom,cohere,perplexity,groq,siliconflow,mistralai,electronhub,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,chutes">
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,custom,cohere,perplexity,groq,siliconflow,mistralai,electronhub,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,chutes,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Frequency Penalty">
|
||||
Frequency Penalty
|
||||
</div>
|
||||
@@ -723,7 +723,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,custom,cohere,perplexity,groq,siliconflow,mistralai,electronhub,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,chutes">
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,custom,cohere,perplexity,groq,siliconflow,mistralai,electronhub,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,chutes,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Presence Penalty">
|
||||
Presence Penalty
|
||||
</div>
|
||||
@@ -736,7 +736,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="claude,aimlapi,openrouter,makersuite,vertexai,cohere,perplexity,electronhub,chutes,nanogpt">
|
||||
<div class="range-block" data-source="claude,aimlapi,openrouter,makersuite,vertexai,cohere,perplexity,electronhub,chutes,nanogpt,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Top K">
|
||||
Top K
|
||||
</div>
|
||||
@@ -749,7 +749,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,claude,aimlapi,openrouter,ai21,makersuite,vertexai,mistralai,custom,cohere,perplexity,groq,siliconflow,electronhub,chutes,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,zai">
|
||||
<div class="range-block" data-source="openai,claude,aimlapi,openrouter,ai21,makersuite,vertexai,mistralai,custom,cohere,perplexity,groq,siliconflow,minimax,electronhub,chutes,nanogpt,deepseek,xai,pollinations,moonshot,fireworks,cometapi,azure_openai,zai,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Top P">
|
||||
Top P
|
||||
</div>
|
||||
@@ -762,7 +762,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openrouter,nanogpt,chutes">
|
||||
<div class="range-block" data-source="openrouter,nanogpt,chutes,workers_ai">
|
||||
<div class="range-block-title" data-i18n="Repetition Penalty">
|
||||
Repetition Penalty
|
||||
</div>
|
||||
@@ -809,18 +809,21 @@
|
||||
<div class="inline-drawer-content">
|
||||
<div class="range-block m-t-1">
|
||||
<div class="justifyLeft" data-i18n="Main">Main</div>
|
||||
<i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="main_prompt_quick_edit_textarea" data-i18n="[title]Expand the editor"></i>
|
||||
<div class="wide100p">
|
||||
<textarea id="main_prompt_quick_edit_textarea" class="text_pole textarea_compact autoSetHeight" rows="6" placeholder="—" data-pm-prompt="main"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block m-t-1">
|
||||
<div class="justifyLeft" data-i18n="Auxiliary">Auxiliary</div>
|
||||
<i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="nsfw_prompt_quick_edit_textarea" data-i18n="[title]Expand the editor"></i>
|
||||
<div class="wide100p">
|
||||
<textarea id="nsfw_prompt_quick_edit_textarea" class="text_pole textarea_compact autoSetHeight" rows="6" placeholder="—" data-pm-prompt="nsfw"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block m-t-1">
|
||||
<div class="justifyLeft" data-i18n="Post-History Instructions">Post-History Instructions</div>
|
||||
<i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="jailbreak_prompt_quick_edit_textarea" data-i18n="[title]Expand the editor"></i>
|
||||
<div class="wide100p">
|
||||
<textarea id="jailbreak_prompt_quick_edit_textarea" class="text_pole textarea_compact autoSetHeight" rows="6" placeholder="—" data-pm-prompt="jailbreak"></textarea>
|
||||
</div>
|
||||
@@ -986,7 +989,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,openrouter,mistralai,custom,cohere,groq,electronhub,chutes,nanogpt,xai,pollinations,aimlapi,makersuite,vertexai,azure_openai">
|
||||
<div class="range-block" data-source="openai,openrouter,mistralai,custom,cohere,groq,electronhub,chutes,nanogpt,xai,pollinations,aimlapi,makersuite,vertexai,azure_openai,workers_ai">
|
||||
<div class="range-block-title justifyLeft" data-i18n="Seed">
|
||||
Seed
|
||||
</div>
|
||||
@@ -1269,8 +1272,8 @@
|
||||
<span data-i18n="Top K">Top K</span>
|
||||
<div class="fa-solid fa-circle-info opacity50p" title="Top K sets a maximum amount of top tokens that can be chosen from. E.g Top K is 20, this means only the 20 highest ranking tokens will be kept (regardless of their probabilities being diverse or limited). Set to 0 (or -1, depending on your backend) to disable." data-i18n="[title]Top_K_desc"></div>
|
||||
</small>
|
||||
<input class="neo-range-slider" type="range" id="top_k_textgenerationwebui" name="volume" min="-1" max="200" step="1">
|
||||
<input class="neo-range-input" type="number" min="-1" max="200" step="1" data-for="top_k_textgenerationwebui" id="top_k_counter_textgenerationwebui">
|
||||
<input class="neo-range-slider" type="range" id="top_k_textgenerationwebui" name="volume" min="-1" max="500" step="1">
|
||||
<input class="neo-range-input" type="number" min="-1" max="500" step="1" data-for="top_k_textgenerationwebui" id="top_k_counter_textgenerationwebui">
|
||||
</div>
|
||||
<div data-tg-samplers="top_p" class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
|
||||
<small>
|
||||
@@ -1400,7 +1403,7 @@
|
||||
<input class="neo-range-input" type="number" min="0" max="20" step="1" data-for="max_tokens_second_textgenerationwebui" id="max_tokens_second_counter_textgenerationwebui">
|
||||
</div>
|
||||
|
||||
<div data-tg-type="koboldcpp, llamacpp, tabby" id="adaptive_p_block" class="wide100p">
|
||||
<div data-tg-type="koboldcpp, llamacpp, ooba, tabby" id="adaptive_p_block" class="wide100p">
|
||||
<h4 class="wide100p textAlignCenter">
|
||||
<label data-i18n="Adaptive-P">Adaptive-P</label>
|
||||
<a href="https://github.com/MrJackSpade/adaptive-p-docs" target="_blank">
|
||||
@@ -1831,6 +1834,7 @@
|
||||
<div data-name="tfs" draggable="true"><span>Tail Free Sampling</span><small></small></div>
|
||||
<div data-name="top_a" draggable="true"><span>Top A</span><small></small></div>
|
||||
<div data-name="min_p" draggable="true"><span>Min P</span><small></small></div>
|
||||
<div data-name="adaptive_p" draggable="true"><span>Adaptive-P</span><small></small></div>
|
||||
<div data-name="mirostat" draggable="true"><span>Mirostat</span><small></small></div>
|
||||
<div data-name="xtc" draggable="true"><span>XTC</span><small></small></div>
|
||||
<div data-name="encoder_repetition_penalty" draggable="true"><span>Encoder Repetition Penalty</span><small></small></div>
|
||||
@@ -1982,7 +1986,7 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="makersuite,vertexai,aimlapi,openrouter,claude,xai,electronhub,chutes,nanogpt">
|
||||
<div class="range-block" data-source="makersuite,vertexai,aimlapi,openrouter,claude,electronhub,chutes,nanogpt">
|
||||
<label for="openai_enable_web_search" class="checkbox_label flexWrap widthFreeExpand">
|
||||
<input id="openai_enable_web_search" type="checkbox" />
|
||||
<span data-i18n="Enable web search">Enable web search</span>
|
||||
@@ -1996,7 +2000,7 @@
|
||||
</b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,cohere,mistralai,custom,claude,aimlapi,openrouter,groq,siliconflow,deepseek,makersuite,vertexai,ai21,xai,pollinations,moonshot,fireworks,cometapi,electronhub,chutes,azure_openai,zai,nanogpt">
|
||||
<div class="range-block" data-source="openai,cohere,mistralai,custom,claude,aimlapi,openrouter,groq,siliconflow,minimax,deepseek,makersuite,vertexai,ai21,xai,pollinations,moonshot,fireworks,cometapi,electronhub,chutes,azure_openai,zai,nanogpt,workers_ai">
|
||||
<label for="openai_function_calling" class="checkbox_label flexWrap widthFreeExpand">
|
||||
<input id="openai_function_calling" type="checkbox" />
|
||||
<span data-i18n="Enable function calling">Enable function calling</span>
|
||||
@@ -2010,8 +2014,46 @@
|
||||
<span data-i18n="enable_functions_desc_3">Can be utilized by various extensions to provide additional functionality.</span>
|
||||
<strong data-i18n="enable_functions_desc_4">Not supported when Prompt Post-Processing with "no tools" is used!</strong>
|
||||
</div>
|
||||
<div id="tool_call_recurse_limit_block" class="range-block wide100p">
|
||||
<div class="range-block-title">
|
||||
<small data-i18n="Tool Call Recurse Limit">Tool Call Recurse Limit</small>
|
||||
<div class="fa-solid fa-circle-info opacity50p margin5" data-i18n="[title]Maximum number of tool call recursion steps per generation." title="Maximum number of tool call recursion steps per generation."></div>
|
||||
</div>
|
||||
<div class="range-block-range-and-counter">
|
||||
<div class="range-block-range">
|
||||
<input type="range" id="tool_call_recurse_limit" name="tool_call_recurse_limit" min="1" max="50" step="1">
|
||||
</div>
|
||||
<div class="range-block-counter">
|
||||
<input type="number" min="1" max="50" step="1" data-for="tool_call_recurse_limit" id="tool_call_recurse_limit_counter">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,mistralai,makersuite,vertexai,claude,custom,xai,pollinations,moonshot,cohere,cometapi,nanogpt,electronhub,azure_openai,zai,siliconflow,chutes">
|
||||
<div class="range-block" data-source="openrouter,custom">
|
||||
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10">
|
||||
<div class="flex-container oneline-dropdown">
|
||||
<label for="tool_reasoning_mode" data-i18n="Interleaved Thinking">
|
||||
Interleaved Thinking
|
||||
</label>
|
||||
<select id="tool_reasoning_mode">
|
||||
<option data-i18n="Disabled" value="disabled">Disabled</option>
|
||||
<option data-i18n="Since Last User Message" value="since_last_user">Since Last User Message</option>
|
||||
<option data-i18n="Active Tool Chain" value="active_chain">Active Tool Chain</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="toggle-description justifyLeft">
|
||||
<span data-i18n="openrouter_interleaved_thinking_hint">
|
||||
Sends reasoning from preceding assistant turns with tool-call requests to maintain interleaved thinking context.
|
||||
</span>
|
||||
</div>
|
||||
<div id="openrouter_interleaved_thinking_disabled_hint" class="toggle-description justifyLeft" style="display:none;">
|
||||
<em data-i18n="Enable "Request model reasoning" to use Interleaved Thinking.">
|
||||
Enable "Request model reasoning" to use Interleaved Thinking.
|
||||
</em>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="openai,aimlapi,openrouter,mistralai,makersuite,vertexai,claude,custom,xai,pollinations,moonshot,cohere,cometapi,nanogpt,electronhub,azure_openai,zai,siliconflow,chutes,workers_ai">
|
||||
<label for="openai_media_inlining" class="checkbox_label flexWrap widthFreeExpand">
|
||||
<input id="openai_media_inlining" type="checkbox" />
|
||||
<span data-i18n="Send inline media">Send inline media</span>
|
||||
@@ -2035,7 +2077,7 @@
|
||||
<strong data-source="makersuite,vertexai" data-i18n="video_inlining_hint_4">Videos must be less than 20 MB and under 1 minute long.</strong>
|
||||
<strong data-source="makersuite,vertexai" data-i18n="audio_inlining_hint_2">Audio must be less than 20 MB.</strong>
|
||||
</div>
|
||||
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,xai,pollinations,cohere,cometapi,nanogpt,moonshot,aimlapi,openrouter,mistralai,electronhub,azure_openai,zai,siliconflow,chutes,makersuite,vertexai">
|
||||
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,xai,pollinations,cohere,cometapi,nanogpt,moonshot,aimlapi,openrouter,mistralai,electronhub,azure_openai,zai,siliconflow,chutes,makersuite,vertexai,workers_ai">
|
||||
<div class="flex-container oneline-dropdown">
|
||||
<label for="openai_inline_image_quality" data-i18n="Inline Image Quality">
|
||||
Inline Image Quality
|
||||
@@ -2096,7 +2138,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="deepseek,aimlapi,openrouter,custom,claude,xai,makersuite,vertexai,pollinations,moonshot,mistralai,fireworks,cometapi,electronhub,chutes,azure_openai,nanogpt,zai">
|
||||
<div class="range-block" data-source="deepseek,aimlapi,openrouter,custom,claude,xai,makersuite,vertexai,pollinations,moonshot,mistralai,fireworks,cometapi,electronhub,chutes,azure_openai,nanogpt,zai,workers_ai">
|
||||
<label for="openai_show_thoughts" class="checkbox_label widthFreeExpand">
|
||||
<input id="openai_show_thoughts" type="checkbox" />
|
||||
<span data-i18n="Request model reasoning">Request model reasoning</span>
|
||||
@@ -2105,12 +2147,15 @@
|
||||
<span data-i18n="Allows the model to return its thinking process.">
|
||||
Allows the model to return its thinking process.
|
||||
</span>
|
||||
<strong data-i18n="This setting affects visibility only." data-source-mode="except" data-source="zai,moonshot">
|
||||
<strong data-i18n="This setting enables or disables reasoning generation by the model." data-source="deepseek,zai,moonshot">
|
||||
This setting enables or disables reasoning generation by the model.
|
||||
</strong>
|
||||
<strong data-i18n="This setting affects visibility only." data-source-mode="except" data-source="zai,moonshot,openrouter,deepseek">
|
||||
This setting affects visibility only.
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,claude,xai,makersuite,vertexai,aimlapi,openrouter,pollinations,perplexity,cometapi,electronhub,azure_openai,chutes,nanogpt">
|
||||
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,claude,xai,makersuite,vertexai,aimlapi,openrouter,pollinations,perplexity,cometapi,electronhub,azure_openai,chutes,nanogpt,deepseek">
|
||||
<div class="flex-container oneline-dropdown" title="Constrains effort on reasoning for reasoning models. 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.">
|
||||
<label for="openai_reasoning_effort">
|
||||
<span data-i18n="Reasoning Effort">Reasoning Effort</span>
|
||||
@@ -2127,6 +2172,9 @@
|
||||
<div class="toggle-description justifyLeft marginBot5" data-source="openai,custom,xai,aimlapi,openrouter,pollinations,perplexity,cometapi,electronhub,azure_openai,chutes" data-i18n="OpenAI-style options: low, medium, high. Minimum and maximum are aliased to low and high. Auto does not send an effort level.">
|
||||
OpenAI-style options: low, medium, high. Minimum and maximum are aliased to low and high. Auto does not send an effort level.
|
||||
</div>
|
||||
<strong class="toggle-description justifyLeft marginBot5" data-source="openrouter">
|
||||
Request model reasoning = Off with Reasoning Effort = Minimum disables reasoning entirely on models that support that, but can cause errors with some models.
|
||||
</strong>
|
||||
<div class="toggle-description justifyLeft marginBot5" data-source="claude" data-i18n="Allocates a portion of the response length for thinking (min: 1024 tokens, low: 10%, medium: 25%, high: 50%, max: 95%), but minimum 1024 tokens. Auto does not request thinking.">
|
||||
Allocates a portion of the response length for thinking (min: 1024 tokens, low: 10%, medium: 25%, high: 50%, max: 95%), but minimum 1024 tokens. Auto does not request thinking.
|
||||
</div>
|
||||
@@ -2155,6 +2203,9 @@
|
||||
<div class="toggle-description justifyLeft marginBot5" data-i18n="Constrains the verbosity of the model's response.">
|
||||
Constrains the verbosity of the model's response.
|
||||
</div>
|
||||
<strong class="toggle-description justifyLeft marginBot5" data-source="claude">
|
||||
On Opus 4.6 / Sonnet 4.6, a non-automatic Reasoning Effort takes precedence over Verbosity.
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block" data-source="claude">
|
||||
@@ -2415,7 +2466,8 @@
|
||||
<small data-i18n="Click Authorize below or get the key from">
|
||||
Click "Authorize" below or get the key from </small> <a target="_blank" href="https://openrouter.ai/keys/">OpenRouter</a>.
|
||||
<br>
|
||||
<a href="https://openrouter.ai/account" target="_blank" data-i18n="View Remaining Credits">View Remaining Credits</a>
|
||||
<a href="https://openrouter.ai/settings/credits" target="_blank" class="openrouter_view_credits" data-i18n="View Remaining Credits">View Remaining Credits</a>
|
||||
<span class="openrouter_credits_display marginLeft5"></span>
|
||||
</div>
|
||||
<div class="flex-container">
|
||||
<input id="api_key_openrouter-tg" name="api_key_openrouter" class="text_pole flex1 api_key_openrouter" value="" type="text" autocomplete="off">
|
||||
@@ -2433,10 +2485,13 @@
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<h4 data-i18n="Model Providers">Model Providers</h4>
|
||||
<h4>
|
||||
<span data-i18n="Model Providers">Model Providers</span>
|
||||
<i id="openrouter_provider_warning_text" class="fa-solid fa-circle-exclamation displayNone" title="Deselect inapplicable provider(s) or select an applicable provider to avoid a 404 error."></i>
|
||||
</h4>
|
||||
<select id="openrouter_providers_text" class="openrouter_providers" multiple>
|
||||
</select>
|
||||
<label class="checkbox_label" data-tg-samplers="openrouter_allow_fallbacks" data-i18n="[title]Automatically chooses an alternative provider if chosen providers can't serve your request." for="openrouter_allow_fallbacks_textgenerationwebui" title="Automatically chooses an alternative provider if chosen providers can't serve your request.">
|
||||
<label class="checkbox_label" data-i18n="[title]Automatically chooses an alternative provider if chosen providers can't serve your request." for="openrouter_allow_fallbacks_textgenerationwebui" title="Automatically chooses an alternative provider if chosen providers can't serve your request.">
|
||||
<input id="openrouter_allow_fallbacks_textgenerationwebui" type="checkbox" />
|
||||
<span data-i18n="Allow fallback providers">Allow fallback providers</span>
|
||||
</label>
|
||||
@@ -2861,6 +2916,7 @@
|
||||
<option value="azure_openai">Azure OpenAI</option>
|
||||
<option value="chutes">Chutes</option>
|
||||
<option value="claude">Claude</option>
|
||||
<option value="workers_ai">Cloudflare Workers AI</option>
|
||||
<option value="cohere">Cohere</option>
|
||||
<!-- Temporarily disabled. -->
|
||||
<!-- <option value="cometapi">CometAPI</option> -->
|
||||
@@ -2871,6 +2927,7 @@
|
||||
<option value="makersuite">Google AI Studio</option>
|
||||
<option value="vertexai">Google Vertex AI</option>
|
||||
<option value="mistralai">MistralAI</option>
|
||||
<option value="minimax">MiniMax</option>
|
||||
<option value="moonshot">Moonshot AI</option>
|
||||
<option value="nanogpt">NanoGPT</option>
|
||||
<option value="openrouter">OpenRouter</option>
|
||||
@@ -2995,6 +3052,21 @@
|
||||
<div>
|
||||
<h4 data-i18n="OpenAI Model">OpenAI Model</h4>
|
||||
<select id="model_openai_select">
|
||||
<optgroup label="GPT-5.5">
|
||||
<option value="gpt-5.5">gpt-5.5</option>
|
||||
<option value="gpt-5.5-2026-04-23">gpt-5.5-2026-04-23</option>
|
||||
</optgroup>
|
||||
<optgroup label="GPT-5.4">
|
||||
<option value="gpt-5.4">gpt-5.4</option>
|
||||
<option value="gpt-5.4-2026-03-05">gpt-5.4-2026-03-05</option>
|
||||
<option value="gpt-5.4-mini">gpt-5.4-mini</option>
|
||||
<option value="gpt-5.4-mini-2026-03-17">gpt-5.4-mini-2026-03-17</option>
|
||||
<option value="gpt-5.4-nano">gpt-5.4-nano</option>
|
||||
<option value="gpt-5.4-nano-2026-03-17">gpt-5.4-nano-2026-03-17</option>
|
||||
</optgroup>
|
||||
<optgroup label="GPT-5.3">
|
||||
<option value="gpt-5.3-chat-latest">gpt-5.3-chat-latest</option>
|
||||
</optgroup>
|
||||
<optgroup label="GPT-5.2">
|
||||
<option value="gpt-5.2">gpt-5.2</option>
|
||||
<option value="gpt-5.2-2025-12-11">gpt-5.2-2025-12-11</option>
|
||||
@@ -3104,9 +3176,11 @@
|
||||
<h4 data-i18n="Claude Model">Claude Model</h4>
|
||||
<select id="model_claude_select">
|
||||
<optgroup label="Versions">
|
||||
<option value="claude-opus-4-7">claude-opus-4-7</option>
|
||||
<option value="claude-opus-4-6">claude-opus-4-6</option>
|
||||
<option value="claude-opus-4-5">claude-opus-4-5</option>
|
||||
<option value="claude-opus-4-5-20251101">claude-opus-4-5-20251101</option>
|
||||
<option value="claude-sonnet-4-6">claude-sonnet-4-6</option>
|
||||
<option value="claude-sonnet-4-5">claude-sonnet-4-5</option>
|
||||
<option value="claude-sonnet-4-5-20250929">claude-sonnet-4-5-20250929</option>
|
||||
<option value="claude-haiku-4-5">claude-haiku-4-5</option>
|
||||
@@ -3136,7 +3210,8 @@
|
||||
<small data-i18n="Click Authorize below or get the key from">
|
||||
Click "Authorize" below or get the key from </small> <a target="_blank" href="https://openrouter.ai/keys/">OpenRouter</a>.
|
||||
<br>
|
||||
<a href="https://openrouter.ai/account" target="_blank" data-i18n="View Remaining Credits">View Remaining Credits</a>
|
||||
<a href="https://openrouter.ai/settings/credits" target="_blank" class="openrouter_view_credits" data-i18n="View Remaining Credits">View Remaining Credits</a>
|
||||
<span class="openrouter_credits_display marginLeft5"></span>
|
||||
</div>
|
||||
<div class="flex-container">
|
||||
<input id="api_key_openrouter" name="api_key_openrouter" class="text_pole flex1 api_key_openrouter" value="" type="text" autocomplete="off">
|
||||
@@ -3155,38 +3230,11 @@
|
||||
<input id="openrouter_use_fallback" type="checkbox" />
|
||||
<span data-i18n="Allow fallback models">Allow fallback models</span>
|
||||
</label>
|
||||
<div class="marginTopBot5">
|
||||
<div class="inline-drawer wide100p">
|
||||
<div class="inline-drawer-toggle inline-drawer-header">
|
||||
<b data-i18n="OpenRouter Model Sorting">OpenRouter Model Sorting</b>
|
||||
<div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
|
||||
</div>
|
||||
<div class="inline-drawer-content m-b-1">
|
||||
<div class="marginTopBot5">
|
||||
<label for="openrouter_sort_models" class="checkbox_label">
|
||||
<select id="openrouter_sort_models">
|
||||
<option data-i18n="Alphabetically" value="alphabetically">Alphabetically</option>
|
||||
<option data-i18n="Price" value="pricing.prompt">Price (cheapest)</option>
|
||||
<option data-i18n="Context Size" value="context_length">Context Size</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="marginTopBot5">
|
||||
<label for="openrouter_group_models" class="checkbox_label">
|
||||
<input id="openrouter_group_models" type="checkbox" />
|
||||
<span data-i18n="Group by vendors">Group by vendors</span>
|
||||
</label>
|
||||
<div class="toggle-description justifyLeft wide100p">
|
||||
<span data-i18n="Group by vendors Description">
|
||||
Put OpenAI models in one group, Anthropic models in other group, etc. Can be combined with sorting.
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4 data-i18n="Model Providers">Model Providers</h4>
|
||||
<h4>
|
||||
<span data-i18n="Model Providers">Model Providers</span>
|
||||
<i id="openrouter_provider_warning_chat" class="fa-solid fa-circle-exclamation displayNone" title="Deselect inapplicable provider(s) or select an applicable provider to avoid a 404 error."></i>
|
||||
</h4>
|
||||
<select id="openrouter_providers_chat" class="openrouter_providers" multiple>
|
||||
</select>
|
||||
<label class="checkbox_label marginTopBot5" for="openrouter_allow_fallbacks" data-i18n="[title]Automatically chooses an alternative provider if chosen providers can't serve your request." title="Automatically chooses an alternative provider if chosen providers can't serve your request.">
|
||||
@@ -3259,6 +3307,11 @@
|
||||
<div>
|
||||
<h4 data-i18n="Google Model">Google Model</h4>
|
||||
<select id="model_google_select">
|
||||
<optgroup label="Gemini 3.1">
|
||||
<option value="gemini-3.1-pro-preview">gemini-3.1-pro-preview</option>
|
||||
<option value="gemini-3.1-flash-lite-preview">gemini-3.1-flash-lite-preview</option>
|
||||
<option value="gemini-3.1-flash-image-preview">gemini-3.1-flash-image-preview</option>
|
||||
</optgroup>
|
||||
<optgroup label="Gemini 3.0">
|
||||
<option value="gemini-3-pro-preview">gemini-3-pro-preview</option>
|
||||
<option value="gemini-3-pro-image-preview">gemini-3-pro-image-preview</option>
|
||||
@@ -3296,6 +3349,8 @@
|
||||
<option value="gemini-2.0-flash-lite">gemini-2.0-flash-lite</option>
|
||||
</optgroup>
|
||||
<optgroup label="Gemma">
|
||||
<option value="gemma-4-31b-it">gemma-4-31b-it</option>
|
||||
<option value="gemma-4-26b-a4b-it">gemma-4-26b-a4b-it</option>
|
||||
<option value="gemma-3n-e4b-it">gemma-3n-e4b-it</option>
|
||||
<option value="gemma-3n-e2b-it">gemma-3n-e2b-it</option>
|
||||
<option value="gemma-3-27b-it">gemma-3-27b-it</option>
|
||||
@@ -3432,6 +3487,11 @@
|
||||
<h4 data-i18n="Google Model">Google Model</h4>
|
||||
<select id="model_vertexai_select">
|
||||
<!-- data-mode="full" is for models that require a service account -->
|
||||
<optgroup label="Gemini 3.1">
|
||||
<option value="gemini-3.1-pro-preview">gemini-3.1-pro-preview</option>
|
||||
<option value="gemini-3.1-flash-lite-preview">gemini-3.1-flash-lite-preview</option>
|
||||
<option value="gemini-3.1-flash-image-preview">gemini-3.1-flash-image-preview</option>
|
||||
</optgroup>
|
||||
<optgroup label="Gemini 3.0">
|
||||
<option value="gemini-3-pro-preview">gemini-3-pro-preview</option>
|
||||
<option value="gemini-3-pro-image-preview">gemini-3-pro-image-preview</option>
|
||||
@@ -3503,11 +3563,42 @@
|
||||
<div data-for="api_key_siliconflow" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you click 'Connect'.">
|
||||
For privacy reasons, your API key will be hidden after you click 'Connect'.
|
||||
</div>
|
||||
<h4 data-i18n="SiliconFlow Endpoint">SiliconFlow Endpoint</h4>
|
||||
<select id="siliconflow_endpoint">
|
||||
<option value="global" data-i18n="Global (siliconflow.com)">Global (siliconflow.com)</option>
|
||||
<option value="cn" data-i18n="China (siliconflow.cn)">China (siliconflow.cn)</option>
|
||||
</select>
|
||||
<h4>SiliconFlow Model</h4>
|
||||
<select id="model_siliconflow_select">
|
||||
<option value="" data-i18n="-- Connect to the API --">-- Connect to the API --</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="minimax_form" data-source="minimax">
|
||||
<h4 data-i18n="MiniMax API Key">MiniMax API Key</h4>
|
||||
<div class="flex-container">
|
||||
<input id="api_key_minimax" name="api_key_minimax" class="text_pole flex1" value="" type="text" autocomplete="off">
|
||||
<div title="Manage API keys" data-i18n="[title]Manage API keys" class="menu_button fa-solid fa-key fa-fw manage-api-keys" data-key="api_key_minimax"></div>
|
||||
</div>
|
||||
<div data-for="api_key_minimax" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you click 'Connect'.">
|
||||
For privacy reasons, your API key will be hidden after you click 'Connect'.
|
||||
</div>
|
||||
<h4 data-i18n="MiniMax Endpoint">MiniMax Endpoint</h4>
|
||||
<select id="minimax_endpoint">
|
||||
<option value="global" data-i18n="Global (minimax.io)">Global (minimax.io)</option>
|
||||
<option value="cn" data-i18n="China (minimaxi.com)">China (minimaxi.com)</option>
|
||||
</select>
|
||||
<h4 data-i18n="MiniMax Model">MiniMax Model</h4>
|
||||
<select id="model_minimax_select">
|
||||
<option value="MiniMax-M2.7">MiniMax-M2.7</option>
|
||||
<option value="MiniMax-M2.7-highspeed">MiniMax-M2.7-highspeed</option>
|
||||
<option value="MiniMax-M2.5">MiniMax-M2.5</option>
|
||||
<option value="MiniMax-M2.5-highspeed">MiniMax-M2.5-highspeed</option>
|
||||
<option value="MiniMax-M2.1">MiniMax-M2.1</option>
|
||||
<option value="MiniMax-M2.1-highspeed">MiniMax-M2.1-highspeed</option>
|
||||
<option value="MiniMax-M2">MiniMax-M2</option>
|
||||
<option value="M2-her">M2-her</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="electronhub_form" data-source="electronhub">
|
||||
<h4 data-i18n="Electron Hub API Key">Electron Hub API Key</h4>
|
||||
<div>
|
||||
@@ -3526,37 +3617,6 @@
|
||||
<option value="" data-i18n="-- Connect to the API --">-- Connect to the API --</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="marginTopBot5">
|
||||
<div class="inline-drawer wide100p">
|
||||
<div class="inline-drawer-toggle inline-drawer-header">
|
||||
<b data-i18n="Electron Hub Model Sorting">Electron Hub Model Sorting</b>
|
||||
<div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
|
||||
</div>
|
||||
<div class="inline-drawer-content m-b-1">
|
||||
<div class="marginTopBot5">
|
||||
<label for="electronhub_sort_models" class="checkbox_label">
|
||||
<select id="electronhub_sort_models">
|
||||
<option data-i18n="Alphabetically" value="alphabetically">Alphabetically</option>
|
||||
<option data-i18n="Input Price" value="pricing.input">Input Price (cheapest)</option>
|
||||
<option data-i18n="Output Price" value="pricing.output">Output Price (cheapest)</option>
|
||||
<option data-i18n="Context Size" value="context_length">Context Size</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="marginTopBot5">
|
||||
<label for="electronhub_group_models" class="checkbox_label">
|
||||
<input id="electronhub_group_models" type="checkbox" />
|
||||
<span data-i18n="Group by vendors">Group by vendors</span>
|
||||
</label>
|
||||
<div class="toggle-description justifyLeft wide100p">
|
||||
<span data-i18n="Group by vendors Description">
|
||||
Put OpenAI models in one group, Anthropic models in other group, etc. Can be combined with sorting.
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="chutes_form" data-source="chutes">
|
||||
<h4 data-i18n="Chutes API Key">Chutes API Key</h4>
|
||||
@@ -3576,29 +3636,11 @@
|
||||
<option value="" data-i18n="-- Connect to the API --">-- Connect to the API --</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="marginTopBot5">
|
||||
<div class="inline-drawer wide100p">
|
||||
<div class="inline-drawer-toggle inline-drawer-header">
|
||||
<b data-i18n="Chutes Model Sorting">Chutes Model Sorting</b>
|
||||
<div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
|
||||
</div>
|
||||
<div class="inline-drawer-content m-b-1">
|
||||
<div class="marginTopBot5">
|
||||
<label for="chutes_sort_models" class="checkbox_label">
|
||||
<select id="chutes_sort_models">
|
||||
<option data-i18n="Alphabetically" value="alphabetically">Alphabetically</option>
|
||||
<option data-i18n="Input Price" value="pricing.input">Input Price (cheapest)</option>
|
||||
<option data-i18n="Output Price" value="pricing.output">Output Price (cheapest)</option>
|
||||
<option data-i18n="Context Size" value="context_length">Context Size</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="nanogpt_form" data-source="nanogpt">
|
||||
<h4 data-i18n="NanoGPT API Key">NanoGPT API Key</h4>
|
||||
<a href="https://nano-gpt.com/balance" target="_blank" rel="noopener noreferrer" class="nanogpt_view_credits" data-i18n="View Remaining Credits">View Remaining Credits</a>
|
||||
<span class="nanogpt_credits_display marginLeft5"></span>
|
||||
<div class="flex-container">
|
||||
<input id="api_key_nanogpt" name="api_key_nanogpt" class="text_pole flex1" value="" type="text" autocomplete="off">
|
||||
<div title="Manage API keys" data-i18n="[title]Manage API keys" class="menu_button fa-solid fa-key fa-fw manage-api-keys" data-key="api_key_nanogpt"></div>
|
||||
@@ -3612,6 +3654,39 @@
|
||||
<option value="" data-i18n="-- Connect to the API --">-- Connect to the API --</option>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<h4>
|
||||
<span data-i18n="Model Providers">Model Providers</span>
|
||||
<i id="nanogpt_provider_warning" class="fa-solid fa-circle-exclamation displayNone" title="Deselect inapplicable provider(s) or select an applicable provider to avoid a 404 error."></i>
|
||||
</h4>
|
||||
<select id="nanogpt_provider">
|
||||
<option value="" data-i18n="Auto">Auto</option>
|
||||
</select>
|
||||
<label class="checkbox_label marginTopBot5" for="nanogpt_payg_override" data-i18n="[title]Force NanoGPT pay-as-you-go billing for this request." title="Force NanoGPT pay-as-you-go billing for this request.">
|
||||
<input id="nanogpt_payg_override" type="checkbox" />
|
||||
<span data-i18n="Use pay-as-you-go billing">Use pay-as-you-go billing</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="workers_ai_form" data-source="workers_ai">
|
||||
<h4><a href="https://dash.cloudflare.com/?to=/:account/ai/workers-ai/api-quick-start" target="_blank" rel="noopener noreferrer" data-i18n="Cloudflare Workers AI API Key">Cloudflare Workers AI API Key</a></h4>
|
||||
<div class="flex-container">
|
||||
<input id="api_key_workers_ai" name="api_key_workers_ai" class="text_pole flex1" value="" type="text" autocomplete="off">
|
||||
<div title="Manage API keys" data-i18n="[title]Manage API keys" class="menu_button fa-solid fa-key fa-fw manage-api-keys" data-key="api_key_workers_ai"></div>
|
||||
</div>
|
||||
<div data-for="api_key_workers_ai" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you click 'Connect'.">
|
||||
For privacy reasons, your API key will be hidden after you click 'Connect'.
|
||||
</div>
|
||||
<h4><a href="https://dash.cloudflare.com/?to=/:account/workers-and-pages" target="_blank" rel="noopener noreferrer" data-i18n="Cloudflare Account ID">Cloudflare Account ID</a></h4>
|
||||
<div class="flex-container">
|
||||
<input id="workers_ai_account_id" class="text_pole flex1" value="" type="text" autocomplete="off" placeholder="e.g. 023e105f4ecef8ad9ca31a8372d0c353" data-i18n="[placeholder]e.g. 023e105f4ecef8ad9ca31a8372d0c353">
|
||||
</div>
|
||||
<div>
|
||||
<h4 data-i18n="Workers AI Model">Workers AI Model</h4>
|
||||
<select id="model_workers_ai_select">
|
||||
<option value="" data-i18n="-- Connect to the API --">-- Connect to the API --</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div id="deepseek_form" data-source="deepseek">
|
||||
<h4 data-i18n="DeepSeek API Key">DeepSeek API Key</h4>
|
||||
@@ -3625,9 +3700,7 @@
|
||||
<div>
|
||||
<h4 data-i18n="DeepSeek Model">DeepSeek Model</h4>
|
||||
<select id="model_deepseek_select">
|
||||
<option value="deepseek-chat">deepseek-chat</option>
|
||||
<option value="deepseek-coder">deepseek-coder</option>
|
||||
<option value="deepseek-reasoner">deepseek-reasoner</option>
|
||||
<option value="" data-i18n="-- Connect to the API --">-- Connect to the API --</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -3865,6 +3938,9 @@
|
||||
</select>
|
||||
<h4 data-i18n="Z.AI Model">Z.AI Model</h4>
|
||||
<select id="model_zai_select">
|
||||
<option value="glm-5-turbo">glm-5-turbo</option>
|
||||
<option value="glm-5v-turbo">glm-5v-turbo</option>
|
||||
<option value="glm-5.1">glm-5.1</option>
|
||||
<option value="glm-5">glm-5</option>
|
||||
<option value="glm-4.7">glm-4.7</option>
|
||||
<option value="glm-4.7-flash">glm-4.7-flash</option>
|
||||
@@ -3926,6 +4002,37 @@
|
||||
<small data-i18n="The underlying model of your deployment. This is detected automatically when you connect.">The underlying model of your deployment. This is detected automatically when you connect.</small>
|
||||
</div>
|
||||
</div>
|
||||
<div id="model_sorting_form" data-source="openrouter,chutes,electronhub,nanogpt,aimlapi">
|
||||
<div class="inline-drawer wide100p">
|
||||
<div class="inline-drawer-toggle inline-drawer-header">
|
||||
<b data-i18n="Model Sorting">Model Sorting</b>
|
||||
<div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
|
||||
</div>
|
||||
<div class="inline-drawer-content m-b-1">
|
||||
<div class="marginTopBot5">
|
||||
<label for="cc_sort_models" class="checkbox_label">
|
||||
<select id="cc_sort_models">
|
||||
<option data-i18n="Alphabetically" value="alphabetically">Alphabetically</option>
|
||||
<option data-i18n="Prompt Price (cheapest)" value="pricing.prompt">Prompt Price (cheapest)</option>
|
||||
<option data-i18n="Completion Price (cheapest)" value="pricing.completion">Completion Price (cheapest)</option>
|
||||
<option data-i18n="Context Size" value="context_length">Context Size</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="marginTopBot5">
|
||||
<label for="cc_group_models" class="checkbox_label">
|
||||
<input id="cc_group_models" type="checkbox" />
|
||||
<span data-i18n="Group by vendors">Group by vendors</span>
|
||||
</label>
|
||||
<div class="toggle-description justifyLeft wide100p">
|
||||
<span data-i18n="Group by vendors Description">
|
||||
Put OpenAI models in one group, Anthropic models in other group, etc. Can be combined with sorting.
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="prompt_post_processing_form">
|
||||
<h4>
|
||||
<span data-i18n="Prompt Post-Processing">
|
||||
@@ -4305,7 +4412,7 @@
|
||||
<small data-i18n="First User Prefix">First User Prefix</small>
|
||||
<textarea id="instruct_first_input_sequence" data-macros class="text_pole textarea_compact autoSetHeight"></textarea>
|
||||
</div>
|
||||
<div class="flexAuto" title="Inserted before the last User's message." data-i18n="[title]instruct_last_input_sequence">
|
||||
<div class="flexAuto" title="Inserted before the last User's message or as a last prompt line when generating an impersonation." data-i18n="[title]instruct_last_input_sequence">
|
||||
<small data-i18n="Last User Prefix">Last User Prefix</small>
|
||||
<textarea id="instruct_last_input_sequence" data-macros class="text_pole wide100p textarea_compact autoSetHeight"></textarea>
|
||||
</div>
|
||||
@@ -4715,7 +4822,7 @@
|
||||
<input type="file" id="world_import_file" accept=".json,.lorebook,.png" name="avatar" hidden>
|
||||
<div id="world_create_button" class="menu_button menu_button_icon">
|
||||
<i class="fa-solid fa-globe"></i>
|
||||
<span data-i18n="New">New</span>
|
||||
<span data-i18n="Create">Create</span>
|
||||
</div>
|
||||
<small data-i18n="or">or</small>
|
||||
<select id="world_editor_select">
|
||||
@@ -5557,6 +5664,10 @@
|
||||
<i class="fa-solid fa-wand-magic"></i>
|
||||
<span data-i18n="Auto-select">Auto-select</span>
|
||||
</div>
|
||||
<button id="bg_add_folder_button" class="menu_button menu_button_icon" data-i18n="[title]New Folder" title="New Folder">
|
||||
<i class="fa-solid fa-folder-plus"></i>
|
||||
<span data-i18n="New Folder">New Folder</span>
|
||||
</button>
|
||||
<label for="add_bg_button" id="add_background_button_top" class="menu_button menu_button_icon" data-i18n="[title]Add a new background" title="Add a new background">
|
||||
<i class="fa-solid fa-upload"></i>
|
||||
<span data-i18n="Add Background">Add Background</span>
|
||||
@@ -5581,6 +5692,14 @@
|
||||
<a href="#bg_chat_tab" data-i18n="Chat">Chat</a>
|
||||
</li>
|
||||
<div class="heading-controls">
|
||||
<button id="bg_group_add_to_folder_button" class="menu_button menu_button_icon" style="display:none;" data-i18n="[title]Add selected backgrounds to folder" title="Add selected backgrounds to folder">
|
||||
<i class="fa-solid fa-folder-tree"></i>
|
||||
<span data-i18n="Add to Folder">Add to Folder</span>
|
||||
</button>
|
||||
<button id="bg_selection_mode_button" class="menu_button menu_button_icon" data-i18n="[title]Select backgrounds for bulk folder actions" title="Select backgrounds for bulk folder actions">
|
||||
<i class="fa-solid fa-edit"></i>
|
||||
<span id="bg_group_select_count" style="display:none;"></span>
|
||||
</button>
|
||||
<button id="bg_thumb_zoom_out" class="menu_button menu_button_icon" title="Make thumbnails smaller" data-i18n="[title]Make thumbnails smaller">
|
||||
<i class="fa-solid fa-minus"></i>
|
||||
</button>
|
||||
@@ -5590,6 +5709,19 @@
|
||||
</div>
|
||||
</ul>
|
||||
<div id="bg_global_tab" class="bg_tab_panel">
|
||||
<div id="bg_folder_breadcrumb" class="bg_folder_breadcrumb" style="display:none;">
|
||||
<button id="bg_back_to_folders" class="menu_button menu_button_icon">
|
||||
<i class="fa-solid fa-arrow-left"></i>
|
||||
<span data-i18n="Back">Back</span>
|
||||
</button>
|
||||
<span id="bg_current_folder_name" class="bg_current_folder_name"></span>
|
||||
<span class="expander"></span>
|
||||
<button id="bg_folder_remove_selected_button" class="menu_button menu_button_icon" style="display:none;" data-i18n="[title]Remove selected backgrounds from this folder" title="Remove selected backgrounds from this folder">
|
||||
<i class="fa-solid fa-folder-minus"></i>
|
||||
<span data-i18n="Remove from Folder">Remove from Folder</span>
|
||||
</button>
|
||||
</div>
|
||||
<div id="bg_folder_grid" class="bg_list bg_folder_grid"></div>
|
||||
<div id="bg_menu_content" class="bg_list"></div>
|
||||
</div>
|
||||
<div id="bg_chat_tab" class="bg_tab_panel">
|
||||
@@ -5754,12 +5886,18 @@
|
||||
<div class="persona_controls_buttons_block buttons_block">
|
||||
<div id="persona_rename_button" class="menu_button fa-solid fa-pencil" title="Rename Persona" data-i18n="[title]Rename Persona"></div>
|
||||
<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>
|
||||
<div id="persona_lore_button" class="menu_button fa-solid fa-globe" title="Persona Lore Alt+Click to open the lorebook" data-i18n="[title]Persona Lore Alt+Click to open the lorebook"></div>
|
||||
<div id="persona_lore_button" class="menu_button fa-solid fa-globe" title="Persona Lore Click to load Shift/Alt-click or long-press to open 'Link to Persona Lorebook' popup" data-i18n="[title]persona_lore_button_title"></div>
|
||||
|
||||
<div id="persona_set_image_button" class="menu_button fa-solid fa-image" title="Change Persona Image" data-i18n="[title]Change Persona Image"></div>
|
||||
<div id="persona_duplicate_button" class="menu_button fa-solid fa-clone" title="Duplicate Persona" data-i18n="[title]Duplicate Persona"></div>
|
||||
<div id="persona_delete_button" class="menu_button fa-solid fa-skull red_button" title="Delete Persona" data-i18n="[title]Delete Persona"></div>
|
||||
</div>
|
||||
<label class="flex1 height100p" for="persona-management-dropdown">
|
||||
<select id="persona-management-dropdown" class="text_pole">
|
||||
<option value="default" disabled selected data-i18n="More...">More...</option>
|
||||
<option id="persona_lorebook_link" data-i18n="Link to Persona Lorebook">Link to Persona Lorebook</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<h4 class="flex-container alignItemsBaseline">
|
||||
@@ -5925,8 +6063,8 @@
|
||||
<div id="favorite_button" class="menu_button fa-solid fa-star" title="Add to Favorites" data-i18n="[title]Add to Favorites"></div>
|
||||
<input type="hidden" id="fav_checkbox" name="fav" />
|
||||
<div id="advanced_div" class="menu_button fa-solid fa-book " title="Advanced Definitions" data-i18n="[title]Advanced Definition"></div>
|
||||
<div id="world_button" class="menu_button fa-solid fa-globe" title="Character Lore Click to load Shift-click to open 'Link to World Info' popup" data-i18n="[title]world_button_title"></div>
|
||||
<div class="chat_lorebook_button menu_button fa-solid fa-passport" title="Chat Lore Alt+Click to open the lorebook" data-i18n="[title]Chat Lore Alt+Click to open the lorebook"></div>
|
||||
<div id="world_button" class="menu_button fa-solid fa-globe" title="Character Lore Click to load Shift/Alt-click or long-press to open 'Link to World Info' popup" data-i18n="[title]world_button_title"></div>
|
||||
<div class="chat_lorebook_button menu_button fa-solid fa-passport" title="Chat Lore Click to load Shift/Alt-click or long-press to open 'Link to Chat Lorebook' popup" data-i18n="[title]chat_lorebook_button_title"></div>
|
||||
<div id="char_connections_button" class="menu_button fa-solid fa-face-smile" title="Connected Personas" data-i18n="[title]Connected Personas"></div>
|
||||
<div id="export_button" class="menu_button fa-solid fa-file-export " title="Export and Download" data-i18n="[title]Export and Download"></div>
|
||||
<!-- <div id="set_chat_character_settings" class="menu_button fa-solid fa-scroll" title="Set a chat scenario override"></div> -->
|
||||
@@ -6077,8 +6215,14 @@
|
||||
<div id="group-metadata-controls" class="marginTopBot5">
|
||||
<div class="flex-container wide100p">
|
||||
<input id="rm_group_chat_name" class="text_pole flex1" type="text" name="chat_name" data-i18n="[placeholder]Chat Name (Optional)" placeholder="Chat Name (Optional)" />
|
||||
<div class="chat_lorebook_button menu_button fa-solid fa-passport" title="Chat Lore" data-i18n="[title]Chat Lore"></div>
|
||||
<div class="chat_lorebook_button menu_button fa-solid fa-passport" title="Chat Lore Click to load Shift/Alt-click or long-press to open 'Link to Chat Lorebook' popup" data-i18n="[title]chat_lorebook_button_title"></div>
|
||||
</div>
|
||||
<label class="flex1 height100p" for="group-chat-lorebook-dropdown">
|
||||
<select id="group-chat-lorebook-dropdown" class="text_pole">
|
||||
<option value="default" disabled selected data-i18n="More...">More...</option>
|
||||
<option id="group_chat_lorebook_link" data-i18n="Link to Chat Lorebook">Link to Chat Lorebook</option>
|
||||
</select>
|
||||
</label>
|
||||
<div id="group_tags_div" class="wide100p">
|
||||
<div class="tag_controls">
|
||||
<input id="groupTagInput" class="text_pole textarea_compact tag_input flex1 margin0" data-i18n="[placeholder]Search / Create Tags" placeholder="Search / Create tags" />
|
||||
@@ -6558,10 +6702,34 @@
|
||||
<div data-action="copy" class="jg-button jg-copy fa-solid fa-file-arrow-up" data-i18n="[title]Copy to global backgrounds" title="Copy to global backgrounds"></div>
|
||||
<div data-action="edit" class="jg-button jg-edit fa-solid fa-pen-to-square fa-fw pointer" data-i18n="[title]Rename Background" title="Rename Background"></div>
|
||||
<div data-action="delete" class="jg-button jg-delete fa-solid fa-trash-can fa-fw pointer" data-i18n="[title]Delete Background" title="Delete Background"></div>
|
||||
<div data-action="folder" class="jg-button jg-folder fa-solid fa-folder fa-fw pointer" data-i18n="[title]Add to folder" title="Add to folder"></div>
|
||||
<div data-action="set-cover" class="jg-button jg-set-cover fa-solid fa-image fa-fw pointer" data-i18n="[title]Set as folder cover" title="Set as folder cover"></div>
|
||||
</div>
|
||||
<div class="BGSampleTitle"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="bg_folder_tile_template" class="template_element">
|
||||
<div class="bg_folder_tile" data-folder-id="">
|
||||
<div class="bg_folder_tile_cover"></div>
|
||||
<div class="bg_folder_tile_overlay">
|
||||
<i class="fa-solid fa-folder"></i>
|
||||
<span class="bg_folder_tile_name"></span>
|
||||
</div>
|
||||
<div class="mobile-only-menu-toggle">
|
||||
<i class="fa-solid fa-ellipsis-vertical"></i>
|
||||
</div>
|
||||
<div class="bg_folder_tile_menu jg-menu">
|
||||
<div data-action="rename-folder" class="jg-button fa-solid fa-pen-to-square fa-fw pointer" data-i18n="[title]Rename folder" title="Rename folder"></div>
|
||||
<div data-action="delete-folder" class="jg-button fa-solid fa-trash-can fa-fw pointer" data-i18n="[title]Delete folder" title="Delete folder"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="bg_new_folder_template" class="template_element">
|
||||
<div class="bg_folder_tile bg_new_folder_tile">
|
||||
<i class="fa-solid fa-folder-plus fa-2x"></i>
|
||||
<span data-i18n="New Folder">New Folder</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- templates for JS to reuse when needed -->
|
||||
<div id="character_world_template" class="template_element">
|
||||
<div class="character_world range-block flexFlowColumn flex-container">
|
||||
@@ -6612,7 +6780,7 @@
|
||||
<small class="chat_file_size select_chat_block_filename_item"></small>
|
||||
<small class="chat_messages_num select_chat_block_filename_item"></small>
|
||||
</div>
|
||||
<div class="flex-container gap10px">
|
||||
<div class="select_chat_actions flex-container gap10px">
|
||||
<div title="Export JSONL chat file" data-format="jsonl" class="exportRawChatButton opacity50p hoverglow fa-solid fa-file-export" data-i18n="[title]Export JSONL chat file"></div>
|
||||
<div title="Download chat as plain text document" data-format="txt" class="exportChatButton opacity50p hoverglow fa-solid fa-file-lines" data-i18n="[title]Download chat as plain text document"></div>
|
||||
<div title="Delete chat file" file_name="" class="PastChat_cross opacity50p hoverglow fa-solid fa-skull" data-i18n="[title]Delete chat file"></div>
|
||||
@@ -7245,6 +7413,7 @@
|
||||
<div title="Toggle media display style" class="mes_button mes_media_gallery fa-solid fa-photo-film" data-i18n="[title]Toggle media display style"></div>
|
||||
<div title="Toggle media display style" class="mes_button mes_media_list fa-solid fa-table-cells-large" data-i18n="[title]Toggle media display style"></div>
|
||||
<div title="Embed file or image" class="mes_button mes_embed fa-solid fa-paperclip" data-i18n="[title]Embed file or image"></div>
|
||||
<div title="Jump to swipe history" class="mes_button mes_swipe_picker fa-solid fa-bookmark" data-i18n="[title]Jump to swipe history" style="display: none;"></div>
|
||||
<div title="Create checkpoint" class="mes_button mes_create_bookmark fa-regular fa-solid fa-flag-checkered" data-i18n="[title]Create checkpoint"></div>
|
||||
<div title="Create branch" class="mes_button mes_create_branch fa-regular fa-code-branch" data-i18n="[title]Create Branch"></div>
|
||||
<div title="Copy" class="mes_button mes_copy fa-solid fa-copy " data-i18n="[title]Copy"></div>
|
||||
|
||||
@@ -23,6 +23,8 @@ import { toggle as slideToggle } from 'slidetoggle';
|
||||
import chalk from 'chalk';
|
||||
import yaml from 'yaml';
|
||||
import * as chevrotain from 'chevrotain';
|
||||
import { gzipSync, gzip } from 'fflate';
|
||||
import { sha256 } from 'js-sha256';
|
||||
|
||||
/**
|
||||
* Expose the libraries to the 'window' object.
|
||||
@@ -102,6 +104,9 @@ export default {
|
||||
chalk,
|
||||
yaml,
|
||||
chevrotain,
|
||||
gzipSync,
|
||||
gzip,
|
||||
sha256,
|
||||
};
|
||||
|
||||
export {
|
||||
@@ -127,4 +132,7 @@ export {
|
||||
chalk,
|
||||
yaml,
|
||||
chevrotain,
|
||||
gzipSync,
|
||||
gzip,
|
||||
sha256,
|
||||
};
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "مفتاح koboldcpp API (اختياري)",
|
||||
"Example: http://127.0.0.1:5001": "مثال: http://127.0.0.1:5001",
|
||||
"Authorize": "تفويض",
|
||||
"OpenRouter API key already exists": "مفتاح API OpenRouter موجود بالفعل",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "هل تريد حقاً إنشاء مفتاح OpenRouter جديد؟ لن يتم حذف مفتاحك الموجود.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "احصل على رمز واجهة برمجة التطبيقات الخاص بك لموزع الاتصالات باستخدام تدفق OAuth. سيتم توجيهك إلى openrouter.ai",
|
||||
"Bypass status check": "تجاوز فحص الحالة",
|
||||
"Chat Completion Source": "مصدر استكمال الدردشة",
|
||||
@@ -1438,5 +1440,19 @@
|
||||
"Still have questions?": "هل ما زالت لديك اسئلة؟",
|
||||
"Join the SillyTavern Discord": "انضم إلى ديسكورد SillyTavern",
|
||||
"Post a GitHub issue": "نشر مشكلة على GitHub",
|
||||
"Contact the developers": "الاتصال بالمطورين"
|
||||
"Contact the developers": "الاتصال بالمطورين",
|
||||
"Interleaved Thinking": "التفكير المتداخل",
|
||||
"Since Last User Message": "منذ آخر رسالة من المستخدم",
|
||||
"Active Tool Chain": "سلسلة الأدوات النشطة",
|
||||
"openrouter_interleaved_thinking_hint": "يرسل الاستدلال من رسائل المساعد السابقة مع طلبات استدعاء الأدوات للحفاظ على سياق التفكير المتداخل.",
|
||||
"SillyTavern Logo": "شعار SillyTavern",
|
||||
"Initializing…": "جارٍ التهيئة…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "الاسم غير مقبول، لأنه نفسه كما كان من قبل (تجاهل حالة الأحرف والنبرات).",
|
||||
"Rename Chat": "إعادة تسمية المحادثة",
|
||||
"Renaming chat…": "جارٍ إعادة تسمية المحادثة…",
|
||||
"Delete Chat": "حذف المحادثة",
|
||||
"Deleting chat…": "جارٍ حذف المحادثة…",
|
||||
"Loading chat…": "جارٍ تحميل المحادثة…",
|
||||
"Bulk Delete": "حذف جماعي",
|
||||
"Deleting ${0} character(s)…": "جارٍ حذف ${0} شخصية (شخصيات)…"
|
||||
}
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "koboldcpp API-Schlüssel (optional)",
|
||||
"Example: http://127.0.0.1:5001": "Beispiel: http://127.0.0.1:5001",
|
||||
"Authorize": "Autorisieren",
|
||||
"OpenRouter API key already exists": "OpenRouter API-Schlüssel existiert bereits",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Möchten Sie wirklich einen neuen OpenRouter API-Schlüssel erstellen? Ihr vorhandener Schlüssel wird nicht gelöscht.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Hole dein OpenRouter-API-Token mit OAuth-Fluss. Du wirst zu openrouter.ai weitergeleitet",
|
||||
"Bypass status check": "Umgehe Statusüberprüfung",
|
||||
"Chat Completion Source": "Quelle für Chat-Vervollständigung",
|
||||
@@ -1438,5 +1440,19 @@
|
||||
"Still have questions?": "Hast du immer noch Fragen?",
|
||||
"Join the SillyTavern Discord": "Trete dem SillyTavern Discord bei",
|
||||
"Post a GitHub issue": "Veröffentliche ein GitHub-Problem",
|
||||
"Contact the developers": "Kontaktiere die Entwickler"
|
||||
"Contact the developers": "Kontaktiere die Entwickler",
|
||||
"Interleaved Thinking": "Verschränktes Denken",
|
||||
"Since Last User Message": "Seit letzter Nutzernachricht",
|
||||
"Active Tool Chain": "Aktive Tool-Kette",
|
||||
"openrouter_interleaved_thinking_hint": "Sendet Begründungen aus vorherigen Assistentennachrichten mit Tool-Aufrufen, um den Kontext für verschränktes Denken zu erhalten.",
|
||||
"SillyTavern Logo": "SillyTavern-Logo",
|
||||
"Initializing…": "Initialisierung…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Name nicht akzeptiert, da er derselbe wie zuvor ist (Groß-/Kleinschreibung und Akzente ignoriert).",
|
||||
"Rename Chat": "Chat umbenennen",
|
||||
"Renaming chat…": "Chat wird umbenannt…",
|
||||
"Delete Chat": "Chat löschen",
|
||||
"Deleting chat…": "Chat wird gelöscht…",
|
||||
"Loading chat…": "Chat wird geladen…",
|
||||
"Bulk Delete": "Massenlöschung",
|
||||
"Deleting ${0} character(s)…": "${0} Charakter(e) werden gelöscht…"
|
||||
}
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "Clave API de koboldcpp (opcional)",
|
||||
"Example: http://127.0.0.1:5001": "Ejemplo: http://127.0.0.1:5001",
|
||||
"Authorize": "Autorizar",
|
||||
"OpenRouter API key already exists": "La clave de API de OpenRouter ya existe",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "¿Realmente deseas crear una nueva clave de API de OpenRouter? Tu clave existente no será eliminada.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Obtenga su token de API de OpenRouter utilizando el flujo OAuth. Será redirigido a openrouter.ai",
|
||||
"Bypass status check": "Saltar la verificación del estado",
|
||||
"Chat Completion Source": "Fuente de Completado de Chat",
|
||||
@@ -1545,5 +1547,19 @@
|
||||
"Toggles sharing world tint with character sprites (This will override Character Tint)": "Alterna el tinte mundial compartido con los sprites de personajes (esto anulará el tinte de personajes)",
|
||||
"Sets the expression of the user sprite": "Establece la expresión del sprite de usuario",
|
||||
"Sets the user sprite set to use for the user sprite": "Establece el conjunto de sprites de usuario para usar en el sprite de usuario",
|
||||
"Toggles the user sprite on the VN UI": "Alterna el sprite de usuario en la interfaz VN"
|
||||
"Toggles the user sprite on the VN UI": "Alterna el sprite de usuario en la interfaz VN",
|
||||
"Interleaved Thinking": "Razonamiento intercalado",
|
||||
"Since Last User Message": "Desde el último mensaje del usuario",
|
||||
"Active Tool Chain": "Cadena de herramientas activa",
|
||||
"openrouter_interleaved_thinking_hint": "Envía razonamiento de turnos anteriores del asistente junto con solicitudes de herramientas para mantener el contexto del razonamiento intercalado.",
|
||||
"SillyTavern Logo": "Logo de SillyTavern",
|
||||
"Initializing…": "Inicializando…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Nombre no aceptado, ya que es el mismo que antes (ignorando mayúsculas y acentos).",
|
||||
"Rename Chat": "Renombrar chat",
|
||||
"Renaming chat…": "Renombrando chat…",
|
||||
"Delete Chat": "Eliminar chat",
|
||||
"Deleting chat…": "Eliminando chat…",
|
||||
"Loading chat…": "Cargando chat…",
|
||||
"Bulk Delete": "Eliminación masiva",
|
||||
"Deleting ${0} character(s)…": "Eliminando ${0} personaje(s)…"
|
||||
}
|
||||
|
||||
@@ -320,6 +320,8 @@
|
||||
"koboldcpp API key (optional)": "Clé API koboldcpp (facultatif)",
|
||||
"Example: http://127.0.0.1:5001": "Exemple : http://127.0.0.1:5001",
|
||||
"Authorize": "Autoriser",
|
||||
"OpenRouter API key already exists": "La clé API OpenRouter existe déjà",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Voulez-vous vraiment créer une nouvelle clé OpenRouter ? Votre clé existante ne sera pas supprimée.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Obtenez votre jeton API OpenRouter en utilisant le flux OAuth. Vous serez redirigé vers openrouter.ai",
|
||||
"Bypass status check": "Contourner la vérification de l'état",
|
||||
"Chat Completion Source": "Source de complétion de chat",
|
||||
@@ -1516,10 +1518,10 @@
|
||||
"Contain": "Contenir",
|
||||
"Stretch": "Étirer",
|
||||
"Center": "Centrer",
|
||||
"Persona Lore Alt+Click to open the lorebook": "Lore de persona\nAlt+Click pour ouvrir le lorebook",
|
||||
"persona_lore_button_title": "Lore de persona\n\nCliquer pour charger\nMajuscule/Alt-clic ou appui long pour ouvrir la fenêtre contextuelle « Lien vers le Lorebook de persona ».",
|
||||
"None (disabled)": "Aucun (désactivé)",
|
||||
"world_button_title": "Lore de personnage\n\nCliquer pour charger\nMajuscule-clic pour ouvrir la fenêtre contextuelle « Lien vers le Wold Info ».",
|
||||
"Chat Lore Alt+Click to open the lorebook": "Lore du chat\nAlt+Click pour ouvrir le lorebook",
|
||||
"world_button_title": "Lore de personnage\n\nCliquer pour charger\nMajuscule/Alt-clic ou appui long pour ouvrir la fenêtre contextuelle « Lien vers le World Info ».",
|
||||
"chat_lorebook_button_title": "Lore du chat\n\nCliquer pour charger\nMajuscule/Alt-clic ou appui long pour ouvrir la fenêtre contextuelle « Lien vers le Lorebook du chat ».",
|
||||
"Manual": "Manuel",
|
||||
"Duplicate persona": "Dupliquer la persona",
|
||||
"popup-button-crop": "Recadrer",
|
||||
@@ -2012,7 +2014,7 @@
|
||||
"Downloader Options": "Options de téléchargement",
|
||||
"Extra parameters for downloading/HuggingFace API": "Paramètres supplémentaires pour le téléchargement/HuggingFace API.\rSi vous n'êtes pas sûr, laissez ces paramètres vides.",
|
||||
"Revision": "Révision",
|
||||
"Folder Name": "Nom du dossier de sortie",
|
||||
"Output Folder Name": "Nom du dossier de sortie",
|
||||
"HF Token": "Token HF",
|
||||
"Include Patterns": "Inclure les patterns",
|
||||
"Glob patterns of files to include in the download.": "Patterns globaux de fichiers à inclure dans le téléchargement.\rSéparer chaque pattern par une nouvelle ligne.",
|
||||
@@ -2046,5 +2048,19 @@
|
||||
"System Prompt Name": "Nom du prompt système:",
|
||||
"Instruct Mode": "Mode Instruction:",
|
||||
"Save and Update": "Sauvegarder et mettre à jour",
|
||||
"Don't ask again for this URL": "Ne plus demander pour cette URL"
|
||||
"Don't ask again for this URL": "Ne plus demander pour cette URL",
|
||||
"Interleaved Thinking": "Raisonnement intercalé",
|
||||
"Since Last User Message": "Depuis le dernier message utilisateur",
|
||||
"Active Tool Chain": "Chaîne d'outils active",
|
||||
"openrouter_interleaved_thinking_hint": "Envoie le raisonnement des tours précédents de l'assistant avec les requêtes d'outils pour conserver le contexte du raisonnement intercalé.",
|
||||
"SillyTavern Logo": "Logo SillyTavern",
|
||||
"Initializing…": "Initialisation…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Nom non accepté, car il est identique à l'ancien (en ignorant la casse et les accents).",
|
||||
"Rename Chat": "Renommer la discussion",
|
||||
"Renaming chat…": "Renommage de la discussion…",
|
||||
"Delete Chat": "Supprimer la discussion",
|
||||
"Deleting chat…": "Suppression de la discussion…",
|
||||
"Loading chat…": "Chargement de la discussion…",
|
||||
"Bulk Delete": "Suppression groupée",
|
||||
"Deleting ${0} character(s)…": "Suppression de ${0} personnage(s)…"
|
||||
}
|
||||
|
||||
@@ -335,6 +335,8 @@
|
||||
"koboldcpp API key (optional)": "koboldcpp API lykill (valfrjálst)",
|
||||
"Example: http://127.0.0.1:5001": "Dæmi: http://127.0.0.1:5001",
|
||||
"Authorize": "Heimild",
|
||||
"OpenRouter API key already exists": "OpenRouter API lykill er þegar til",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Viltu virkilega búa til nýjan OpenRouter lykil? Núverandi lykill þinn verður ekki eytt.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Fáðu API lykilinn þinn fyrir OpenRouter með því að nota OAuth strauminn. Þú verður endurvísað(ð/ur) á openrouter.ai",
|
||||
"Bypass status check": "Hlaupa framhjá stöðutík",
|
||||
"Chat Completion Source": "Heimild að fullvirkni spjalls",
|
||||
@@ -1436,5 +1438,19 @@
|
||||
"Still have questions?": "Ertu enn með spurningar?",
|
||||
"Join the SillyTavern Discord": "Skráðu þig í SillyTavern Discord",
|
||||
"Post a GitHub issue": "Senda inn GitHub málefni",
|
||||
"Contact the developers": "Hafa samband við þróunaraðila"
|
||||
"Contact the developers": "Hafa samband við þróunaraðila",
|
||||
"Interleaved Thinking": "Fléttuð hugsun",
|
||||
"Since Last User Message": "Frá síðustu notandaskilaboðum",
|
||||
"Active Tool Chain": "Virk verkfærakeðja",
|
||||
"openrouter_interleaved_thinking_hint": "Sendir röksemdir úr fyrri aðstoðarskilaboðum með verkfæraköllum til að viðhalda samhengi fléttaðrar hugsunar.",
|
||||
"SillyTavern Logo": "SillyTavern merki",
|
||||
"Initializing…": "Ræsir…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Nafn ekki samþykkt, því það er það sama og áður (hunsar há-/lágstafi og brottmerki).",
|
||||
"Rename Chat": "Endurnefna spjall",
|
||||
"Renaming chat…": "Endurnefni spjall…",
|
||||
"Delete Chat": "Eyða spjalli",
|
||||
"Deleting chat…": "Eyði spjalli…",
|
||||
"Loading chat…": "Hleð spjalli…",
|
||||
"Bulk Delete": "Fjöldaeyðing",
|
||||
"Deleting ${0} character(s)…": "Eyði ${0} persónu(m)…"
|
||||
}
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "Chiave API koboldcpp (opzionale)",
|
||||
"Example: http://127.0.0.1:5001": "Esempio: http://127.0.0.1:5001",
|
||||
"Authorize": "Autorizzare",
|
||||
"OpenRouter API key already exists": "La chiave API di OpenRouter esiste già",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Desideri veramente creare una nuova chiave API di OpenRouter? La tua chiave esistente non verrà eliminata.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Ottieni il tuo token API di OpenRouter utilizzando il flusso OAuth. Sarai reindirizzato su openrouter.ai",
|
||||
"Bypass status check": "Ignora controllo stato",
|
||||
"Chat Completion Source": "Fonte di Completamento della Chat",
|
||||
@@ -1438,5 +1440,19 @@
|
||||
"Still have questions?": "Hai ancora domande?",
|
||||
"Join the SillyTavern Discord": "Unisciti al SillyTavern Discord",
|
||||
"Post a GitHub issue": "Pubblica un problema su GitHub",
|
||||
"Contact the developers": "Contatta gli sviluppatori"
|
||||
"Contact the developers": "Contatta gli sviluppatori",
|
||||
"Interleaved Thinking": "Ragionamento intercalato",
|
||||
"Since Last User Message": "Dall'ultimo messaggio utente",
|
||||
"Active Tool Chain": "Catena di strumenti attiva",
|
||||
"openrouter_interleaved_thinking_hint": "Invia il ragionamento dai turni precedenti dell'assistente con le richieste di strumenti per mantenere il contesto del ragionamento intercalato.",
|
||||
"SillyTavern Logo": "Logo SillyTavern",
|
||||
"Initializing…": "Inizializzazione…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Nome non accettato, poiché è lo stesso di prima (ignorando maiuscole e accenti).",
|
||||
"Rename Chat": "Rinomina chat",
|
||||
"Renaming chat…": "Rinominazione chat…",
|
||||
"Delete Chat": "Elimina chat",
|
||||
"Deleting chat…": "Eliminazione chat…",
|
||||
"Loading chat…": "Caricamento chat…",
|
||||
"Bulk Delete": "Eliminazione multipla",
|
||||
"Deleting ${0} character(s)…": "Eliminazione di ${0} personaggio/i…"
|
||||
}
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "koboldcpp API キー (オプション)",
|
||||
"Example: http://127.0.0.1:5001": "例: http://127.0.0.1:5001",
|
||||
"Authorize": "承認",
|
||||
"OpenRouter API key already exists": "OpenRouter API キーは既に存在します",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "新しい OpenRouter キーを作成してもよろしいですか?既存のキーは削除されません。",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "OAuthフローを使用してOpenRouter APIトークンを取得します。 openrouter.aiにリダイレクトされます",
|
||||
"Bypass status check": "ステータスのチェックをバイパスする",
|
||||
"Chat Completion Source": "チャット補完ソース",
|
||||
@@ -1443,5 +1445,19 @@
|
||||
"Contact the developers": "開発者に連絡",
|
||||
"Stop Inspecting": "検査を停止",
|
||||
"Inspect Prompts": "プロンプトを検査",
|
||||
"Toggle prompt inspection": "プロンプト検査の切り替え"
|
||||
"Toggle prompt inspection": "プロンプト検査の切り替え",
|
||||
"Interleaved Thinking": "インターリーブ思考",
|
||||
"Since Last User Message": "直前のユーザーメッセージ以降",
|
||||
"Active Tool Chain": "アクティブなツールチェーン",
|
||||
"openrouter_interleaved_thinking_hint": "インターリーブ思考の文脈を維持するため、直前のアシスタントターンの推論をツール呼び出しリクエストとともに送信します。",
|
||||
"SillyTavern Logo": "SillyTavernロゴ",
|
||||
"Initializing…": "初期化中…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "名前が受け入れられませんでした。以前と同じです(大文字小文字とアクセントを無視)。",
|
||||
"Rename Chat": "チャット名を変更",
|
||||
"Renaming chat…": "チャット名を変更中…",
|
||||
"Delete Chat": "チャットを削除",
|
||||
"Deleting chat…": "チャットを削除中…",
|
||||
"Loading chat…": "チャットを読み込み中…",
|
||||
"Bulk Delete": "一括削除",
|
||||
"Deleting ${0} character(s)…": "${0}人のキャラクターを削除中…"
|
||||
}
|
||||
|
||||
@@ -337,6 +337,8 @@
|
||||
"koboldcpp API key (optional)": "koboldcpp API 키(선택사항)",
|
||||
"Example: http://127.0.0.1:5001": "예: http://127.0.0.1:5001",
|
||||
"Authorize": "승인하기",
|
||||
"OpenRouter API key already exists": "OpenRouter API 키가 이미 존재합니다",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "정말 새로운 OpenRouter 키를 만들기를 원하십니까? 기존 키는 삭제되지 않습니다.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "OAuth 플로우를 사용하여 OpenRouter API 토큰을 가져옵니다. openrouter.ai로 리디렉션됩니다.",
|
||||
"Legacy API (pre-OAI, no streaming)": "레거시 API (OAI 이전, 스트리밍 없음)",
|
||||
"Bypass status check": "상태 확인 우회",
|
||||
@@ -1533,7 +1535,7 @@
|
||||
"Only apply color as accent": "색상은 오직 강조로써만 적용됩니다",
|
||||
"qr--colorClear": "색상 지우기",
|
||||
"Color": "색상",
|
||||
"world_button_title": "캐릭터 로어. 클릭하여 로드하세요. Shift를 클릭하면 '월드 인포 링크' 팝업이 열립니다.",
|
||||
"world_button_title": "캐릭터 로어. 클릭하여 로드하세요. Shift/Alt+클릭 또는 길게 누르면 '월드 인포 링크' 팝업이 열립니다.",
|
||||
"Select TTS Provider": "TTS 공급자 선택",
|
||||
"tts_enabled": "활성화",
|
||||
"Narrate user messages": "사용자 메시지 나레이션",
|
||||
@@ -1617,5 +1619,19 @@
|
||||
"to install additional features.": "으로 가세요.",
|
||||
"Master Import": "마스터 불러오기",
|
||||
"Master Export": "마스터 내보내기",
|
||||
"Chat Quick Reply Sets": "채팅 빠른 답장 세트들"
|
||||
"Chat Quick Reply Sets": "채팅 빠른 답장 세트들",
|
||||
"Interleaved Thinking": "인터리브드 사고",
|
||||
"Since Last User Message": "마지막 사용자 메시지 이후",
|
||||
"Active Tool Chain": "활성 도구 체인",
|
||||
"openrouter_interleaved_thinking_hint": "인터리브드 사고 컨텍스트를 유지하기 위해 이전 어시스턴트 턴의 추론을 도구 호출 요청과 함께 전송합니다.",
|
||||
"SillyTavern Logo": "SillyTavern 로고",
|
||||
"Initializing…": "초기화 중…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "이름이 승인되지 않았습니다. 이전과 동일합니다(대소문자 및 악센트 무시).",
|
||||
"Rename Chat": "채팅 이름 변경",
|
||||
"Renaming chat…": "채팅 이름 변경 중…",
|
||||
"Delete Chat": "채팅 삭제",
|
||||
"Deleting chat…": "채팅 삭제 중…",
|
||||
"Loading chat…": "채팅 불러오는 중…",
|
||||
"Bulk Delete": "대량 삭제",
|
||||
"Deleting ${0} character(s)…": "${0}개 캐릭터 삭제 중…"
|
||||
}
|
||||
|
||||
@@ -333,6 +333,8 @@
|
||||
"koboldcpp API key (optional)": "koboldcpp API-sleutel (optioneel)",
|
||||
"Example: http://127.0.0.1:5001": "Voorbeeld: http://127.0.0.1:5001",
|
||||
"Authorize": "Toestemming geven",
|
||||
"OpenRouter API key already exists": "OpenRouter API-sleutel bestaat al",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Wilt u echt een nieuwe OpenRouter API-sleutel maken? Uw bestaande sleutel wordt niet verwijderd.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Haal uw OpenRouter API-token op met behulp van OAuth-flow. U wordt doorgestuurd naar openrouter.ai",
|
||||
"Bypass status check": "Omzeil statuscontrole",
|
||||
"Chat Completion Source": "Bron voor Chatvoltooiing",
|
||||
@@ -1434,5 +1436,19 @@
|
||||
"Still have questions?": "Heb je nog vragen?",
|
||||
"Join the SillyTavern Discord": "Word lid van de SillyTavern Discord",
|
||||
"Post a GitHub issue": "Plaats een GitHub-probleem",
|
||||
"Contact the developers": "Neem contact op met de ontwikkelaars"
|
||||
"Contact the developers": "Neem contact op met de ontwikkelaars",
|
||||
"Interleaved Thinking": "Verweven redenering",
|
||||
"Since Last User Message": "Sinds laatste gebruikersbericht",
|
||||
"Active Tool Chain": "Actieve toolketen",
|
||||
"openrouter_interleaved_thinking_hint": "Verstuurt redenering uit eerdere assistentbeurten met tool-aanvragen om de context van verweven redenering te behouden.",
|
||||
"SillyTavern Logo": "SillyTavern-logo",
|
||||
"Initializing…": "Initialiseren…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Naam niet geaccepteerd, omdat deze hetzelfde is als voorheen (hoofdletters en accenten genegeerd).",
|
||||
"Rename Chat": "Chat hernoemen",
|
||||
"Renaming chat…": "Chat hernoemen…",
|
||||
"Delete Chat": "Chat verwijderen",
|
||||
"Deleting chat…": "Chat verwijderen…",
|
||||
"Loading chat…": "Chat laden…",
|
||||
"Bulk Delete": "Bulkverwijdering",
|
||||
"Deleting ${0} character(s)…": "${0} personage(s) verwijderen…"
|
||||
}
|
||||
|
||||
@@ -335,6 +335,8 @@
|
||||
"koboldcpp API key (optional)": "Chave API koboldcpp (opcional)",
|
||||
"Example: http://127.0.0.1:5001": "Exemplo: http://127.0.0.1:5001",
|
||||
"Authorize": "Autorizar",
|
||||
"OpenRouter API key already exists": "A chave de API do OpenRouter já existe",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Você realmente deseja criar uma nova chave OpenRouter? Sua chave existente não será excluída.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Obtenha seu token da API do OpenRouter usando o fluxo OAuth. Você será redirecionado para openrouter.ai",
|
||||
"Bypass status check": "Ignorar verificação de status",
|
||||
"Chat Completion Source": "Fonte de conclusão de chat",
|
||||
@@ -1436,5 +1438,19 @@
|
||||
"Still have questions?": "Ainda tem perguntas?",
|
||||
"Join the SillyTavern Discord": "Junte-se ao Discord do SillyTavern",
|
||||
"Post a GitHub issue": "Publicar um problema no GitHub",
|
||||
"Contact the developers": "Contatar os desenvolvedores"
|
||||
"Contact the developers": "Contatar os desenvolvedores",
|
||||
"Interleaved Thinking": "Raciocínio intercalado",
|
||||
"Since Last User Message": "Desde a última mensagem do utilizador",
|
||||
"Active Tool Chain": "Cadeia de ferramentas ativa",
|
||||
"openrouter_interleaved_thinking_hint": "Envia o raciocínio de turnos anteriores do assistente com pedidos de ferramentas para manter o contexto de raciocínio intercalado.",
|
||||
"SillyTavern Logo": "Logótipo do SillyTavern",
|
||||
"Initializing…": "A inicializar…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Nome não aceite, pois é o mesmo que antes (ignorando maiúsculas e acentos).",
|
||||
"Rename Chat": "Renomear chat",
|
||||
"Renaming chat…": "A renomear chat…",
|
||||
"Delete Chat": "Eliminar chat",
|
||||
"Deleting chat…": "A eliminar chat…",
|
||||
"Loading chat…": "A carregar chat…",
|
||||
"Bulk Delete": "Eliminação em massa",
|
||||
"Deleting ${0} character(s)…": "A eliminar ${0} personagem(ns)…"
|
||||
}
|
||||
|
||||
@@ -758,6 +758,8 @@
|
||||
"Doesn't work? Try adding": "Не работает? Попробуйте добавить в конце",
|
||||
"at the end!": "!",
|
||||
"Authorize": "Авторизоваться",
|
||||
"OpenRouter API key already exists": "Ключ API OpenRouter уже существует",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Вы действительно хотите создать новый ключ OpenRouter? Ваш существующий ключ не будет удален.",
|
||||
"No persona description": "[Нет описания]",
|
||||
"Not connected to API!": "Нет соединения с API!",
|
||||
"Type a message, or /? for help": "Введите сообщение, или /? для получения справки",
|
||||
@@ -1902,7 +1904,7 @@
|
||||
"Save": "Сохранить",
|
||||
"Chat Lorebook": "Лорбук для чата",
|
||||
"chat_world_template_txt": "Выбранный мир будет привязан к этому чату. Будет работать наряду с глобальным лорбуком и лором персонажа.",
|
||||
"world_button_title": "Лор персонажа\n\nНажмите, чтобы загрузить\nShift + ЛКМ, чтобы открыть диалог привязки мира",
|
||||
"world_button_title": "Лор персонажа\n\nНажмите, чтобы загрузить\nShift / Alt + ЛКМ или долгое нажатие, чтобы открыть диалог привязки мира",
|
||||
"No auxillary Lorebooks set. Click here to select.": "Вспомогательный лорбук не выбран. Нажмите, чтобы выбрать.",
|
||||
"ext_regex_user_input_desc": "Отправленные вами сообщения.",
|
||||
"ext_regex_ai_input_desc": "Полученные от API ответы.",
|
||||
@@ -2128,7 +2130,7 @@
|
||||
"openai_reasoning_effort_low": "Поверхностные",
|
||||
"openai_reasoning_effort_medium": "Обычные",
|
||||
"openai_reasoning_effort_high": "Подробные",
|
||||
"Persona Lore Alt+Click to open the lorebook": "Лорбук данной персоны\nAlt + ЛКМ чтобы открыть лорбук",
|
||||
"persona_lore_button_title": "Лорбук данной персоны\n\nНажмите, чтобы открыть\nShift / Alt + ЛКМ или долгое нажатие, чтобы открыть диалог привязки лорбука",
|
||||
"Persona Lorebook for": "Лорбук для персоны",
|
||||
"persona_world_template_txt": "Выбранный мир будет привязан к этой персоне. Будет работать вместе с глобальным лорбуком и лорбуками персонажа и чата.",
|
||||
"Global list": "Глобальный список",
|
||||
@@ -2143,7 +2145,7 @@
|
||||
"Enter a valid API URL": "Введите корректный адрес API",
|
||||
"No Ollama model selected.": "Не выбрана модель Ollama",
|
||||
"Background Fitting": "Способ подгонки фона под разрешение",
|
||||
"Chat Lore Alt+Click to open the lorebook": "Лорбук данного чата\nAlt + ЛКМ чтобы открыть лорбук",
|
||||
"chat_lorebook_button_title": "Лорбук данного чата\n\nНажмите, чтобы открыть\nShift / Alt + ЛКМ или долгое нажатие, чтобы открыть диалог привязки лорбука",
|
||||
"Token Counter": "Подсчитать токены",
|
||||
"Type / paste in the box below to see the number of tokens in the text.": "Введите или вставьте текст в окошко ниже, чтобы подсчитать количество токенов в нём.",
|
||||
"Selected tokenizer:": "Выбранный токенайзер:",
|
||||
@@ -2738,5 +2740,19 @@
|
||||
"Uses the voices provided by your operating system": "Используем стандартные голоса вашей ОС",
|
||||
"Your browser or operating system doesn't support speech synthesis": "Ваш браузер либо ОС не поддерживают синтез речи",
|
||||
"Works best when: Pass Asterisks to TTS Engine is enabled, and both Only narrate quotes and Ignore *text, even 'quotes', inside asterisks* are disabled.": "Работает лучше всего, когда: одновременно включена опция \"Передавать звёздочки TTS-движку\", а также отключены обе опции: \"Не озвучивать *текст, даже \"в кавычках\", если он внутри звёздочек*\", и \"Озвучивать только текст \"в кавычках\"\"",
|
||||
"Available voices": "Доступные голоса"
|
||||
"Available voices": "Доступные голоса",
|
||||
"Interleaved Thinking": "Чередующееся рассуждение",
|
||||
"Since Last User Message": "С момента последнего сообщения пользователя",
|
||||
"Active Tool Chain": "Активная цепочка инструментов",
|
||||
"openrouter_interleaved_thinking_hint": "Отправляет рассуждение из предыдущих ходов ассистента вместе с запросами вызова инструментов, чтобы сохранять контекст чередующегося рассуждения.",
|
||||
"SillyTavern Logo": "Логотип SillyTavern",
|
||||
"Initializing…": "Инициализация…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Имя не принято, так как оно совпадает с предыдущим (игнорируя регистр и акценты).",
|
||||
"Rename Chat": "Переименовать чат",
|
||||
"Renaming chat…": "Переименование чата…",
|
||||
"Delete Chat": "Удалить чат",
|
||||
"Deleting chat…": "Удаление чата…",
|
||||
"Loading chat…": "Загрузка чата…",
|
||||
"Bulk Delete": "Массовое удаление",
|
||||
"Deleting ${0} character(s)…": "Удаление ${0} персонажа(ей)…"
|
||||
}
|
||||
|
||||
@@ -339,6 +339,8 @@
|
||||
"koboldcpp API key (optional)": "คีย์ API ของ koboldcpp (เพิ่มเติม)",
|
||||
"Example: http://127.0.0.1:5001": "ตัวอย่าง: http://127.0.0.1:5001",
|
||||
"Authorize": "อนุญาต",
|
||||
"OpenRouter API key already exists": "คีย์ API ของ OpenRouter มีอยู่แล้ว",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "คุณต้องการสร้างคีย์ OpenRouter ใหม่จริง ๆ หรือไม่ คีย์ที่มีอยู่ของคุณจะไม่ถูกลบ",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "โปรดเข้าสู่ระบบเพื่อรับ OpenRouter API Token โดยใช้ OAuth Flow จากนั้นคุณจะถูกเปลี่ยนเส้นทางไปยังเว็บไซต์ของ openrouter.ai",
|
||||
"Bypass status check": "ข้ามการตรวจสอบสถานะ",
|
||||
"Chat Completion Source": "แหล่งที่มาของ Chat Completion",
|
||||
@@ -1455,5 +1457,19 @@
|
||||
"Contact the developers": "ติดต่อผู้พัฒนา",
|
||||
"Stop Inspecting": "Stop Inspecting",
|
||||
"Inspect Prompts": "ตรวจสอบ Prompt",
|
||||
"Toggle prompt inspection": "สลับการตรวจสอบ Prompt"
|
||||
"Toggle prompt inspection": "สลับการตรวจสอบ Prompt",
|
||||
"Interleaved Thinking": "การคิดแบบสลับขั้น",
|
||||
"Since Last User Message": "ตั้งแต่ข้อความล่าสุดของผู้ใช้",
|
||||
"Active Tool Chain": "สายโซ่เครื่องมือที่ใช้งานอยู่",
|
||||
"openrouter_interleaved_thinking_hint": "ส่งเหตุผลจากเทิร์นก่อนหน้าของผู้ช่วยไปพร้อมกับคำขอเรียกใช้เครื่องมือ เพื่อคงบริบทการคิดแบบสลับขั้นไว้",
|
||||
"SillyTavern Logo": "โลโก้ SillyTavern",
|
||||
"Initializing…": "กำลังเริ่มต้น…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "ชื่อไม่ได้รับการยอมรับ เนื่องจากเหมือนกับก่อนหน้านี้ (ไม่สนใจตัวพิมพ์ใหญ่เล็กและเครื่องหมายเสียง)",
|
||||
"Rename Chat": "เปลี่ยนชื่อแชท",
|
||||
"Renaming chat…": "กำลังเปลี่ยนชื่อแชท…",
|
||||
"Delete Chat": "ลบแชท",
|
||||
"Deleting chat…": "กำลังลบแชท…",
|
||||
"Loading chat…": "กำลังโหลดแชท…",
|
||||
"Bulk Delete": "ลบจำนวนมาก",
|
||||
"Deleting ${0} character(s)…": "กำลังลบ ${0} ตัวละคร…"
|
||||
}
|
||||
|
||||
@@ -335,6 +335,8 @@
|
||||
"koboldcpp API key (optional)": "API-ключ koboldcpp (необов’язково)",
|
||||
"Example: http://127.0.0.1:5001": "Приклад: http://127.0.0.1:5001",
|
||||
"Authorize": "Авторизувати",
|
||||
"OpenRouter API key already exists": "API ключ OpenRouter вже існує",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Ви дійсно бажаєте створити новий ключ OpenRouter API? Ваш існуючий ключ не буде видалено.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Отримайте свій токен API OpenRouter за допомогою OAuth. Вас буде перенаправлено на openrouter.ai",
|
||||
"Bypass status check": "Обійти перевірку статусу",
|
||||
"Chat Completion Source": "Джерело Chat Completion",
|
||||
@@ -1436,5 +1438,19 @@
|
||||
"Still have questions?": "Все ще є питання?",
|
||||
"Join the SillyTavern Discord": "Приєднуйтесь до SillyTavern Discord",
|
||||
"Post a GitHub issue": "Опублікуйте проблему на GitHub",
|
||||
"Contact the developers": "Зв'яжіться з розробниками"
|
||||
"Contact the developers": "Зв'яжіться з розробниками",
|
||||
"Interleaved Thinking": "Черговане мислення",
|
||||
"Since Last User Message": "Від останнього повідомлення користувача",
|
||||
"Active Tool Chain": "Активний ланцюжок інструментів",
|
||||
"openrouter_interleaved_thinking_hint": "Надсилає міркування з попередніх ходів асистента разом із запитами виклику інструментів, щоб зберегти контекст чергованого мислення.",
|
||||
"SillyTavern Logo": "Логотип SillyTavern",
|
||||
"Initializing…": "Ініціалізація…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Ім'я не прийнято, оскільки воно збігається з попереднім (ігноруючи регістр та акценти).",
|
||||
"Rename Chat": "Перейменувати чат",
|
||||
"Renaming chat…": "Перейменування чату…",
|
||||
"Delete Chat": "Видалити чат",
|
||||
"Deleting chat…": "Видалення чату…",
|
||||
"Loading chat…": "Завантаження чату…",
|
||||
"Bulk Delete": "Масове видалення",
|
||||
"Deleting ${0} character(s)…": "Видалення ${0} персонажа(ів)…"
|
||||
}
|
||||
|
||||
@@ -335,6 +335,8 @@
|
||||
"koboldcpp API key (optional)": "Key API koboldcpp (tùy chọn)",
|
||||
"Example: http://127.0.0.1:5001": "Ví dụ: http://127.0.0.1:5001",
|
||||
"Cho phép": "Ủy quyền",
|
||||
"OpenRouter API key already exists": "Key API OpenRouter đã tồn tại",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "Bạn có thực sự muốn tạo khóa OpenRouter mới không? Khóa hiện có của bạn sẽ không bị xóa.",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "Nhận mã thông báo API OpenRouter của bạn bằng cách sử dụng luồng OAuth. Bạn sẽ được chuyển hướng đến openrouter.ai",
|
||||
"Bypass status check": "Bỏ qua check trạng thái",
|
||||
"Chat Completion Source": "Nguồn cho Chat Completion",
|
||||
@@ -1436,5 +1438,19 @@
|
||||
"Still have questions?": "Bạn còn thắc mắc?",
|
||||
"Join the SillyTavern Discord": "Tham gia Kênh Discord của SillyTavern",
|
||||
"Post a GitHub issue": "Đăng một vấn đề trên GitHub",
|
||||
"Contact the developers": "Liên hệ với Devs"
|
||||
"Contact the developers": "Liên hệ với Devs",
|
||||
"Interleaved Thinking": "Lập luận xen kẽ",
|
||||
"Since Last User Message": "Kể từ tin nhắn người dùng gần nhất",
|
||||
"Active Tool Chain": "Chuỗi công cụ đang hoạt động",
|
||||
"openrouter_interleaved_thinking_hint": "Gửi lập luận từ các lượt trợ lý trước đó cùng với yêu cầu gọi công cụ để duy trì ngữ cảnh lập luận xen kẽ.",
|
||||
"SillyTavern Logo": "Logo SillyTavern",
|
||||
"Initializing…": "Đang khởi tạo…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "Tên không được chấp nhận vì giống như trước đó (bỏ qua chữ hoa/thường và dấu).",
|
||||
"Rename Chat": "Đổi tên cuộc trò chuyện",
|
||||
"Renaming chat…": "Đang đổi tên cuộc trò chuyện…",
|
||||
"Delete Chat": "Xóa cuộc trò chuyện",
|
||||
"Deleting chat…": "Đang xóa cuộc trò chuyện…",
|
||||
"Loading chat…": "Đang tải cuộc trò chuyện…",
|
||||
"Bulk Delete": "Xóa hàng loạt",
|
||||
"Deleting ${0} character(s)…": "Đang xóa ${0} nhân vật…"
|
||||
}
|
||||
|
||||
@@ -334,6 +334,8 @@
|
||||
"koboldcpp API key (optional)": "KoboldCpp API 金鑰(可選)",
|
||||
"Example: http://127.0.0.1:5001": "範例:http://127.0.0.1:5001",
|
||||
"Authorize": "授權",
|
||||
"OpenRouter API key already exists": "OpenRouter API 密鑰已存在",
|
||||
"Do you really wish to create a new OpenRouter key? Your existing key will not be deleted.": "您確定要建立新的 OpenRouter API 金鑰嗎?您現有的金鑰不會被刪除。",
|
||||
"Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai": "使用 OAuth 流程取得您的 OpenRouter API 符元。您將被重新導向到 openrouter.ai",
|
||||
"Bypass status check": "繞過狀態檢查",
|
||||
"Chat Completion Source": "聊天補全來源",
|
||||
@@ -1541,7 +1543,7 @@
|
||||
"When enabled, nodes that have swipes splitting off of them will appear subtly larger, in addition to having the double border.": "啟用後,具分支滑動的節點將顯示雙重邊框,還會略微放大。",
|
||||
"WI Entry Status:🔵 Constant🟢 Normal🔗 Vectorized": "世界資訊條目狀態:\\r🔵 恆定\\r🟢 正常\\r🔗 向量化",
|
||||
"Width of a node, in pixels at zoom level 1.0.": "縮放等級為 1.0 時,節點的像素寬度。",
|
||||
"world_button_title": "角色背景設定\n「Shift+點選」可開啟「連結至世界資訊」彈窗",
|
||||
"world_button_title": "角色背景設定\n「Shift/Alt+點選」或長按可開啟「連結至世界資訊」彈窗",
|
||||
"# of Beams": "# of Beams",
|
||||
"Additional Parameters": "其他參數",
|
||||
"All": "全部",
|
||||
@@ -2093,7 +2095,7 @@
|
||||
"Downloader Options": "下載選項",
|
||||
"Extra parameters for downloading/HuggingFace API": "下載/使用 HuggingFace API 的額外參數。\r若不確定,請留空。",
|
||||
"Revision": "修訂",
|
||||
"Folder Name": "輸出資料夾名稱",
|
||||
"Output Folder Name": "輸出資料夾名稱",
|
||||
"HF Token": "HF 符元",
|
||||
"Include Patterns": "包含模式",
|
||||
"Glob patterns of files to include in the download.": "要包含於下載中文件的全域模式。\r每行輸入一個模式。",
|
||||
@@ -2365,8 +2367,8 @@
|
||||
"Contain": "自適應",
|
||||
"Stretch": "拉伸",
|
||||
"Center": "置中",
|
||||
"Persona Lore Alt+Click to open the lorebook": "「Alt+點選」可開啟角色知識書",
|
||||
"Chat Lore Alt+Click to open the lorebook": "「Alt+點選」可開啟聊天知識書",
|
||||
"persona_lore_button_title": "人設知識書\n\n點選以載入\nShift/Alt+點選或長按開啟「連結人設知識書」彈窗",
|
||||
"chat_lorebook_button_title": "聊天知識書\n\n點選以載入\nShift/Alt+點選或長按開啟「連結聊天知識書」彈窗",
|
||||
"Function Tool": "功能工具",
|
||||
"Functions in this category are for advanced users only. Don't click anything if you're not sure about the consequences.": "此類功能僅供高階使用者使用。若不確定後果,請勿點選任何內容。",
|
||||
"Are you sure you want to delete this user?": "確定要刪除該使用者嗎?",
|
||||
@@ -2758,5 +2760,19 @@
|
||||
"[title]Create a new": "新增",
|
||||
"[title]Delete a ": "刪除 ",
|
||||
"[title]Rename a ": "重新命名 ",
|
||||
"completions note prefix": "完成提示前綴"
|
||||
"completions note prefix": "完成提示前綴",
|
||||
"Interleaved Thinking": "交錯思維",
|
||||
"Since Last User Message": "自上一則使用者訊息起",
|
||||
"Active Tool Chain": "使用中的工具鏈",
|
||||
"openrouter_interleaved_thinking_hint": "會在工具呼叫請求中附帶先前助理回合的推理,以維持交錯思維的上下文。",
|
||||
"SillyTavern Logo": "SillyTavern 標誌",
|
||||
"Initializing…": "正在初始化…",
|
||||
"Name not accepted, as it is the same as before (ignoring case and accents).": "名稱不被接受,因為它與之前相同(忽略大小寫和重音)。",
|
||||
"Rename Chat": "重新命名聊天",
|
||||
"Renaming chat…": "正在重新命名聊天…",
|
||||
"Delete Chat": "刪除聊天",
|
||||
"Deleting chat…": "正在刪除聊天…",
|
||||
"Loading chat…": "正在載入聊天…",
|
||||
"Bulk Delete": "批次刪除",
|
||||
"Deleting ${0} character(s)…": "正在刪除 ${0} 個角色…"
|
||||
}
|
||||
|
||||
@@ -14,10 +14,11 @@ import {
|
||||
} from '../script.js';
|
||||
|
||||
import { favsToHotswap } from './RossAscends-mods.js';
|
||||
import { hideLoader, showLoader } from './loader.js';
|
||||
import { loader } from './action-loader.js';
|
||||
import { convertCharacterToPersona } from './personas.js';
|
||||
import { callGenericPopup, POPUP_TYPE } from './popup.js';
|
||||
import { createTagInput, getTagKeyForEntity, getTagsList, printTagList, tag_map, compareTagsForSort, removeTagFromMap, importTags, tag_import_setting } from './tags.js';
|
||||
import { t } from './i18n.js';
|
||||
|
||||
/**
|
||||
* Static object representing the actions of the
|
||||
@@ -101,7 +102,7 @@ class CharacterContextMenu {
|
||||
* @param {number} characterId
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
static persona = async (characterId) => void(await convertCharacterToPersona(characterId));
|
||||
static persona = async (characterId) => void (await convertCharacterToPersona(characterId));
|
||||
|
||||
/**
|
||||
* Delete one or more characters,
|
||||
@@ -754,7 +755,7 @@ class BulkEditOverlay {
|
||||
|
||||
handleContextMenuShow = (event) => {
|
||||
event.preventDefault();
|
||||
const [x,y] = this.#getContextMenuPosition(event);
|
||||
const [x, y] = this.#getContextMenuPosition(event);
|
||||
CharacterContextMenu.show(x, y);
|
||||
this.#contextMenuOpen = true;
|
||||
};
|
||||
@@ -846,15 +847,16 @@ class BulkEditOverlay {
|
||||
|
||||
const deleteChats = checkbox.prop('checked') ?? false;
|
||||
|
||||
showLoader();
|
||||
const toast = toastr.info('We\'re deleting your characters, please wait...', 'Working on it');
|
||||
const loaderHandle = loader.show({
|
||||
slug: 'bulk-delete',
|
||||
title: t`Bulk Delete`,
|
||||
message: t`Deleting ${characterIds.length} character(s)…`,
|
||||
toastMode: loader.ToastMode.STATIC,
|
||||
});
|
||||
const avatarList = characterIds.map(id => characters[id]?.avatar).filter(a => a);
|
||||
return CharacterContextMenu.delete(avatarList, deleteChats)
|
||||
.then(() => this.browseState())
|
||||
.finally(() => {
|
||||
toastr.clear(toast);
|
||||
hideLoader();
|
||||
});
|
||||
.finally(() => loaderHandle.hide());
|
||||
});
|
||||
|
||||
// At this moment the popup is already changed in the dom, but not yet closed/resolved. We build the avatar list here
|
||||
|
||||
@@ -986,7 +986,6 @@ class PromptManager {
|
||||
* @returns {void}
|
||||
*/
|
||||
addPrompt(prompt, identifier) {
|
||||
|
||||
if (typeof prompt !== 'object' || prompt === null) throw new Error('Object is not a prompt');
|
||||
|
||||
const newPrompt = {
|
||||
@@ -1301,7 +1300,7 @@ class PromptManager {
|
||||
const prompt = this.getPromptById(identifier);
|
||||
const textareaIdentifier = `${identifier}_prompt_quick_edit_textarea`;
|
||||
const html = `<div class="range-block m-t-1">
|
||||
<div class="justifyLeft" data-i18n="${title}">${title}</div>
|
||||
<div class="justifyLeft">${title}</div>
|
||||
<div class="wide100p">
|
||||
<textarea id="${textareaIdentifier}" class="text_pole textarea_compact" rows="6" placeholder="">${prompt.content}</textarea>
|
||||
</div>
|
||||
@@ -1318,7 +1317,6 @@ class PromptManager {
|
||||
this.updatePromptByIdentifier(identifier, prompt);
|
||||
debouncedSaveServiceSettings().then(() => this.render());
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -101,7 +101,6 @@ observer.observe(document.documentElement, observerConfig);
|
||||
* @returns {string} - A human-readable string that represents the time spent generating characters.
|
||||
*/
|
||||
export function humanizeGenTime(total_gen_time) {
|
||||
|
||||
//convert time_spent to humanized format of "_ Hours, _ Minutes, _ Seconds" from milliseconds
|
||||
let time_spent = total_gen_time || 0;
|
||||
time_spent = Math.floor(time_spent / 1000);
|
||||
@@ -380,8 +379,7 @@ function RA_autoconnect(PrevApi) {
|
||||
|| (textgen_settings.type === textgen_types.FEATHERLESS && secret_state[SECRET_KEYS.FEATHERLESS])
|
||||
) {
|
||||
$('#api_button_textgenerationwebui').trigger('click');
|
||||
}
|
||||
else if (isValidUrl(getTextGenServer())) {
|
||||
} else if (isValidUrl(getTextGenServer())) {
|
||||
$('#api_button_textgenerationwebui').trigger('click');
|
||||
}
|
||||
break;
|
||||
@@ -409,6 +407,8 @@ function RA_autoconnect(PrevApi) {
|
||||
|| (secret_state[SECRET_KEYS.COMETAPI] && oai_settings.chat_completion_source == chat_completion_sources.COMETAPI)
|
||||
|| (secret_state[SECRET_KEYS.ZAI] && oai_settings.chat_completion_source == chat_completion_sources.ZAI)
|
||||
|| (secret_state[SECRET_KEYS.POLLINATIONS] && oai_settings.chat_completion_source === chat_completion_sources.POLLINATIONS)
|
||||
|| (secret_state[SECRET_KEYS.WORKERS_AI] && oai_settings.chat_completion_source == chat_completion_sources.WORKERS_AI)
|
||||
|| (secret_state[SECRET_KEYS.MINIMAX] && oai_settings.chat_completion_source == chat_completion_sources.MINIMAX)
|
||||
|| (isValidUrl(oai_settings.custom_url) && oai_settings.chat_completion_source == chat_completion_sources.CUSTOM)
|
||||
|| (secret_state[SECRET_KEYS.AZURE_OPENAI] && oai_settings.chat_completion_source == chat_completion_sources.AZURE_OPENAI)
|
||||
) {
|
||||
@@ -1054,8 +1054,7 @@ export function initRossMods() {
|
||||
$('#send_textarea').trigger('focus');
|
||||
reasoningMesDone.trigger('click');
|
||||
return;
|
||||
}
|
||||
else if (is_send_press == false) {
|
||||
} else if (is_send_press == false) {
|
||||
const skipConfirmKey = 'RegenerateWithCtrlEnter';
|
||||
const skipConfirm = accountStorage.getItem(skipConfirmKey) === 'true';
|
||||
function doRegenerate() {
|
||||
@@ -1228,6 +1227,16 @@ export function initRossMods() {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#logprobsViewer').is(':visible')) {
|
||||
$('#logprobsViewerClose').trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#cfgConfig').is(':visible')) {
|
||||
$('#CFGClose').trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#floatingPrompt').is(':visible')) {
|
||||
$('#ANClose').trigger('click');
|
||||
return;
|
||||
@@ -1238,22 +1247,13 @@ export function initRossMods() {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#cfgConfig').is(':visible')) {
|
||||
$('#CFGClose').trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#logprobsViewer').is(':visible')) {
|
||||
$('#logprobsViewerClose').trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
$('#movingDivs > div').each(function () {
|
||||
if ($(this).is(':visible')) {
|
||||
$('#movingDivs > div .floating_panel_close').trigger('click');
|
||||
const movingDivs = $('#movingDivs > div').toArray().reverse();
|
||||
for (const div of movingDivs) {
|
||||
if ($(div).is(':visible')) {
|
||||
$(div).find('.floating_panel_close, .dragClose').trigger('click');
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if ($('#left-nav-panel').is(':visible') &&
|
||||
$(LPanelPin).prop('checked') === false) {
|
||||
@@ -1274,8 +1274,6 @@ export function initRossMods() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (event.ctrlKey && /^[1-9]$/.test(event.key)) {
|
||||
// This will eventually be to trigger quick replies
|
||||
// event.preventDefault();
|
||||
|
||||
@@ -16,6 +16,7 @@ const buttonSelectors = [
|
||||
'.jg-menu .jg-button',
|
||||
'.bg_example .mobile-only-menu-toggle',
|
||||
'.paginationjs-pages li a',
|
||||
'#show_more_messages',
|
||||
].join(', ');
|
||||
|
||||
const listSelectors = [
|
||||
|
||||
@@ -0,0 +1,370 @@
|
||||
import { ActionLoaderToastMode, getActiveLoaderHandles, getLoaderHandleById, loader } from './action-loader.js';
|
||||
import { t } from './i18n.js';
|
||||
import { SlashCommand } from './slash-commands/SlashCommand.js';
|
||||
import { SlashCommandNamedArgument, ARGUMENT_TYPE, SlashCommandArgument } from './slash-commands/SlashCommandArgument.js';
|
||||
import { SlashCommandClosure } from './slash-commands/SlashCommandClosure.js';
|
||||
import { commonEnumProviders, enumIcons } from './slash-commands/SlashCommandCommonEnumsProvider.js';
|
||||
import { SlashCommandEnumValue, enumTypes } from './slash-commands/SlashCommandEnumValue.js';
|
||||
import { SlashCommandParser } from './slash-commands/SlashCommandParser.js';
|
||||
import { isFalseBoolean } from './utils.js';
|
||||
import { DOMPurify } from '../lib.js';
|
||||
|
||||
/**
|
||||
* Registers slash commands for the action loader module.
|
||||
*/
|
||||
export function registerActionLoaderSlashCommands() {
|
||||
/**
|
||||
* Helper to create a closure-based handler from a SlashCommandClosure argument.
|
||||
* Allows all possible slash command arg types to be passed in, but only closure is accepted.
|
||||
* @param {string | SlashCommandClosure | (string | SlashCommandClosure)[]} closure - The closure argument
|
||||
* @param {Object} options - Configuration options
|
||||
* @param {string} [options.argName='onStop'] - Name of the argument for error messages
|
||||
* @param {boolean} [options.throwInvalid=true] - Whether to throw an error for invalid input
|
||||
* @returns {(() => Promise<void>)|null} The handler function, or null if no closure
|
||||
*/
|
||||
function createClosureHandler(closure, { argName = 'onStop', throwInvalid = true } = {}) {
|
||||
if (!(closure instanceof SlashCommandClosure)) {
|
||||
if (closure && throwInvalid) {
|
||||
// Throw error on purpose. This is defined as a syntax error.
|
||||
throw new Error(t`Invalid argument for ${argName} provided. This is not a closure.`);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return async () => {
|
||||
try {
|
||||
const localClosure = closure.getCopy();
|
||||
localClosure.onProgress = () => { };
|
||||
await localClosure.execute();
|
||||
} catch (e) {
|
||||
console.error('Error executing closure handler', e);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// Shared loader enum providers
|
||||
const loaderEnumProviders = {
|
||||
toastModeEnumProvider: () => [
|
||||
new SlashCommandEnumValue(ActionLoaderToastMode.NONE, 'No toast displayed', enumTypes.enum, enumIcons.disabled),
|
||||
new SlashCommandEnumValue(ActionLoaderToastMode.STATIC, 'Static toast without stop button', enumTypes.enum, enumIcons.spinner),
|
||||
new SlashCommandEnumValue(ActionLoaderToastMode.STOPPABLE, 'Toast with stop button (default)', enumTypes.enum, enumIcons.stop),
|
||||
],
|
||||
loaderHandleProvider: () => getActiveLoaderHandles().map(
|
||||
handle => new SlashCommandEnumValue(handle.id, `Active loader: ${handle.id}`, enumTypes.enum, enumIcons.spinner),
|
||||
).concat(
|
||||
new SlashCommandEnumValue('Temporary loader handle', 'Any loader handle saved in variables or similar', 'enum', '📄', () => true, () => ''),
|
||||
),
|
||||
};
|
||||
|
||||
// /loader-wrap command - wraps a closure with loader display
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'loader-wrap',
|
||||
returns: 'result of the closure execution',
|
||||
helpString: `
|
||||
<div>
|
||||
Wraps a closure execution with an action loader overlay and optional toast notification.
|
||||
By default, the loader blocks UI interaction until the closure completes.
|
||||
Multiple loaders can be stacked - each gets its own toast, but the overlay stays single.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Toast modes:</strong>
|
||||
<ul>
|
||||
<li><code>stoppable</code> - Shows toast with a stop button (default)</li>
|
||||
<li><code>static</code> - Shows toast without stop button</li>
|
||||
<li><code>none</code> - No toast, only loader overlay</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
Set <code>blocking=false</code> to show only a toast without blocking the UI.
|
||||
Useful for background operations like image captioning or generation.
|
||||
</div>
|
||||
<div>
|
||||
The default stop behavior is calling <code>stopGeneration()</code>.
|
||||
If the wrapped action is doing something different than generating, a custom stop closure can be provided.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Examples:</strong>
|
||||
<ul>
|
||||
<li><pre><code class="language-stscript">/loader-wrap message="Generating summary..." {: /gen Summary of the last message | /echo Done :}</code></pre></li>
|
||||
<li><pre><code class="language-stscript">/loader-wrap blocking=false message="Captioning..." {: /caption :}</code></pre></li>
|
||||
<li><pre><code class="language-stscript">/loader-wrap toast=stoppable onStop={: /echo "Stopped by user" :} {: /delay 10000 :}</code></pre></li>
|
||||
</ul>
|
||||
</div>
|
||||
`,
|
||||
namedArgumentList: [
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'blocking',
|
||||
description: 'Whether to show blocking overlay. Set to false for non-blocking toast-only loaders.',
|
||||
typeList: [ARGUMENT_TYPE.BOOLEAN],
|
||||
defaultValue: 'true',
|
||||
enumList: commonEnumProviders.boolean()(),
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'toast',
|
||||
description: 'Toast display mode: stoppable (with stop button), static (no stop button), or none',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: ActionLoaderToastMode.STOPPABLE,
|
||||
enumList: loaderEnumProviders.toastModeEnumProvider(),
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'message',
|
||||
description: 'Message to display in the toast notification',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: 'Generating...',
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'title',
|
||||
description: 'Optional title for the toast notification',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'slug',
|
||||
description: 'Unique slug for the loader (to identify it easily via code or CSS)',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: 'slash-wrap',
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'stopTooltip',
|
||||
description: 'Tooltip text for the stop button (only used when toast=stoppable)',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: 'Stop',
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'onStop',
|
||||
description: 'Closure to execute when the stop button is clicked. If not provided, uses default stop behavior.',
|
||||
typeList: [ARGUMENT_TYPE.CLOSURE],
|
||||
}),
|
||||
],
|
||||
unnamedArgumentList: [
|
||||
SlashCommandArgument.fromProps({
|
||||
description: 'Closure to execute while the loader is displayed',
|
||||
typeList: [ARGUMENT_TYPE.CLOSURE],
|
||||
isRequired: true,
|
||||
}),
|
||||
],
|
||||
callback: async (args, value) => {
|
||||
if (!(value instanceof SlashCommandClosure)) {
|
||||
// Throw error on purpose. This is defined as a syntax error.
|
||||
throw new Error(t`Invalid argument for unnamed argument provided. This is not a closure.`);
|
||||
}
|
||||
|
||||
const blocking = !isFalseBoolean(String(args.blocking));
|
||||
const toastMode = Object.values(ActionLoaderToastMode).includes(String(args.toast))
|
||||
? String(args.toast)
|
||||
: ActionLoaderToastMode.STOPPABLE;
|
||||
const message = String(args.message ?? t`Generating...`);
|
||||
const title = args.title ? String(args.title) : '';
|
||||
const stopTooltip = String(args.stopTooltip ?? t`Stop`);
|
||||
|
||||
const actionLoader = loader.show({
|
||||
slug: typeof args.slug === 'string' ? String(args.slug) : 'slash-wrap',
|
||||
blocking,
|
||||
toastMode,
|
||||
message,
|
||||
title,
|
||||
stopTooltip,
|
||||
onStop: createClosureHandler(args.onStop),
|
||||
});
|
||||
|
||||
try {
|
||||
const closureCopy = value.getCopy();
|
||||
const result = await closureCopy.execute();
|
||||
return result.pipe;
|
||||
} finally {
|
||||
await actionLoader.hide();
|
||||
}
|
||||
},
|
||||
}));
|
||||
|
||||
// /loader-show command - manually show a loader, returns handle ID
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'loader-show',
|
||||
returns: 'loader handle ID (use with /loader-hide)',
|
||||
helpString: `
|
||||
<div>
|
||||
Manually shows an action loader. Returns a handle ID that can be used with <code>/loader-hide</code> to hide it.
|
||||
Use this for fine-grained control when you need to show/hide the loader at specific points.
|
||||
Multiple loaders can be stacked - each gets its own toast, but the overlay stays single.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Toast modes:</strong>
|
||||
<ul>
|
||||
<li><code>stoppable</code> - Shows toast with a stop button (default)</li>
|
||||
<li><code>static</code> - Shows toast without stop button</li>
|
||||
<li><code>none</code> - No toast, only loader overlay</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
Set <code>blocking=false</code> to show only a toast without blocking the UI.
|
||||
Useful for background operations like image captioning or generation.
|
||||
</div>
|
||||
<div>
|
||||
The default stop behavior is calling <code>stopGeneration()</code>.
|
||||
If the wrapped action is doing something different than generating, a custom stop closure can be provided.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Example:</strong>
|
||||
<pre>
|
||||
<code class="language-stscript">
|
||||
/loader-show message="Loading..." |
|
||||
/setvar key=myLoader |
|
||||
/some-operation |
|
||||
/loader-hide handle={{getvar::myLoader}}
|
||||
</code>
|
||||
</pre>
|
||||
</div>
|
||||
`,
|
||||
namedArgumentList: [
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'blocking',
|
||||
description: 'Whether to show blocking overlay. Set to false for non-blocking toast-only loaders.',
|
||||
typeList: [ARGUMENT_TYPE.BOOLEAN],
|
||||
defaultValue: 'true',
|
||||
enumList: commonEnumProviders.boolean()(),
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'toast',
|
||||
description: 'Toast display mode: stoppable (with stop button), static (no stop button), or none',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: ActionLoaderToastMode.STOPPABLE,
|
||||
enumList: loaderEnumProviders.toastModeEnumProvider(),
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'message',
|
||||
description: 'Message to display in the toast notification',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: 'Generating...',
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'title',
|
||||
description: 'Optional title for the toast notification',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'slug',
|
||||
description: 'Unique slug for the loader (to identify it easily via code or CSS)',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: 'slash-show',
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'stopTooltip',
|
||||
description: 'Tooltip text for the stop button (only used when toast=stoppable)',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
defaultValue: 'Stop',
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'onStop',
|
||||
description: 'Closure to execute when the stop button is clicked',
|
||||
typeList: [ARGUMENT_TYPE.CLOSURE],
|
||||
}),
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'onHide',
|
||||
description: 'Closure to execute when the loader is hidden (not stopped)',
|
||||
typeList: [ARGUMENT_TYPE.CLOSURE],
|
||||
}),
|
||||
],
|
||||
unnamedArgumentList: [],
|
||||
callback: async (args) => {
|
||||
const blocking = !isFalseBoolean(String(args.blocking));
|
||||
const toastMode = Object.values(ActionLoaderToastMode).includes(String(args.toast))
|
||||
? String(args.toast)
|
||||
: ActionLoaderToastMode.STOPPABLE;
|
||||
const message = String(args.message ?? t`Generating...`);
|
||||
const title = args.title ? String(args.title) : '';
|
||||
const stopTooltip = String(args.stopTooltip ?? t`Stop`);
|
||||
|
||||
const handle = loader.show({
|
||||
slug: typeof args.slug === 'string' ? String(args.slug) : 'slash-show',
|
||||
blocking,
|
||||
toastMode,
|
||||
message: DOMPurify.sanitize(message),
|
||||
title: DOMPurify.sanitize(title),
|
||||
stopTooltip,
|
||||
onStop: createClosureHandler(args.onStop),
|
||||
onHide: createClosureHandler(args.onHide, { argName: 'onHide' }),
|
||||
});
|
||||
|
||||
return handle.id;
|
||||
},
|
||||
}));
|
||||
|
||||
// /loader-hide command - manually hide a loader by handle ID
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'loader-hide',
|
||||
returns: 'true if an active loader was hidden, otherwise false',
|
||||
helpString: `
|
||||
<div>
|
||||
Hides an action loader that was shown with <code>/loader-show</code>.
|
||||
If no handle is provided, hides <strong>all</strong> active loaders.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Example:</strong>
|
||||
<pre><code class="language-stscript">/loader-hide handle={{getvar::myLoader}}</code></pre>
|
||||
</div>
|
||||
`,
|
||||
namedArgumentList: [
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'handle',
|
||||
description: 'Loader handle ID returned by /loader-show. If not provided, hides all active loaders.',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
enumProvider: loaderEnumProviders.loaderHandleProvider,
|
||||
}),
|
||||
],
|
||||
callback: async (args) => {
|
||||
const handleId = args.handle ? String(args.handle) : null;
|
||||
|
||||
if (handleId) {
|
||||
const handle = getLoaderHandleById(handleId);
|
||||
if (handle && handle.isActive) {
|
||||
await handle.hide();
|
||||
return 'true';
|
||||
}
|
||||
return 'false';
|
||||
}
|
||||
|
||||
// No handle provided - hide all active loaders
|
||||
const result = await loader.hide();
|
||||
return result ? 'true' : 'false';
|
||||
},
|
||||
}));
|
||||
|
||||
// /loader-stop command - trigger the stop action on a loader
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'loader-stop',
|
||||
returns: 'true if an active loader was stopped, otherwise false',
|
||||
helpString: `
|
||||
<div>
|
||||
Triggers the stop action on a specific action loader, as if the user clicked the stop button.
|
||||
Unlike <code>/loader-hide</code>, this command requires a handle - you must specify which loader to stop.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Example:</strong>
|
||||
<pre><code class="language-stscript">/loader-stop handle={{getvar::myLoader}}</code></pre>
|
||||
</div>
|
||||
`,
|
||||
namedArgumentList: [
|
||||
SlashCommandNamedArgument.fromProps({
|
||||
name: 'handle',
|
||||
description: 'Loader handle ID returned by /loader-show.',
|
||||
typeList: [ARGUMENT_TYPE.STRING],
|
||||
isRequired: true,
|
||||
enumProvider: loaderEnumProviders.loaderHandleProvider,
|
||||
}),
|
||||
],
|
||||
callback: async (args) => {
|
||||
const handleId = args.handle ? String(args.handle) : null;
|
||||
|
||||
if (!handleId) {
|
||||
toastr.warning(t`No handle provided. You must specify which loader to stop.`);
|
||||
return 'false';
|
||||
}
|
||||
|
||||
const handle = getLoaderHandleById(handleId);
|
||||
if (handle && handle.isActive) {
|
||||
await handle.stop();
|
||||
return 'true';
|
||||
}
|
||||
|
||||
return 'false';
|
||||
},
|
||||
}));
|
||||
}
|
||||
@@ -0,0 +1,617 @@
|
||||
/**
|
||||
* Unified action loader system - shows loader overlay with optional toast notifications.
|
||||
* Designed to be flexible and reusable for various long-running operations.
|
||||
*
|
||||
* Features:
|
||||
* - Stacking multiple loaders - overlay stays single, but toasts can stack
|
||||
* - Blocking and non-blocking modes
|
||||
* - Stoppable or static toasts
|
||||
* - Class-based handle system for fine-grained control
|
||||
*
|
||||
* @module action-loader
|
||||
*/
|
||||
|
||||
import { t } from './i18n.js';
|
||||
import { stopGeneration } from '../script.js';
|
||||
import { Popup, POPUP_RESULT, POPUP_TYPE } from './popup.js';
|
||||
|
||||
/**
|
||||
* Enum representing the toast display mode for the action loader.
|
||||
* @readonly
|
||||
* @enum {string}
|
||||
*/
|
||||
export const ActionLoaderToastMode = {
|
||||
/** No toast is displayed */
|
||||
NONE: 'none',
|
||||
/** Toast is displayed without stop button (non-interactable) */
|
||||
STATIC: 'static',
|
||||
/** Toast is displayed with stop button (default) */
|
||||
STOPPABLE: 'stoppable',
|
||||
};
|
||||
|
||||
/**
|
||||
* @typedef {object} ActionLoaderOptions
|
||||
* @property {boolean} [blocking=true] - Whether to show the blocking overlay. Set to false for non-blocking toast-only loaders.
|
||||
* @property {ActionLoaderToastMode} [toastMode='stoppable'] - Toast display mode
|
||||
* @property {string} [slug=null] - Unique slug for the loader to identify it easily via code or CSS
|
||||
* @property {string} [message='Generating...'] - The message to display in the toast
|
||||
* @property {string} [title] - Optional title for the toast notification
|
||||
* @property {string} [stopTooltip='Stop'] - Tooltip text for the stop button
|
||||
* @property {HTMLElement|string|null} [overlayContent=null] - Custom content for the overlay (replaces default spinner)
|
||||
* @property {(() => void)|null} [onStop=null] - Custom stop handler. If null, calls `stopGeneration()`
|
||||
* @property {(() => void)|null} [onHide=null] - Custom hide handler. Called when the loader is hidden (not stopped).
|
||||
*/
|
||||
|
||||
/** Counter for generating unique loader IDs */
|
||||
let loaderIdCounter = 0;
|
||||
|
||||
/** @type {Set<ActionLoaderHandle>} Set of all active loader handles */
|
||||
const activeHandles = new Set();
|
||||
|
||||
/**
|
||||
* Generates a unique loader ID.
|
||||
* @returns {string} Unique loader ID
|
||||
*/
|
||||
function generateLoaderId() {
|
||||
return `loader_${++loaderIdCounter}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if there are any active blocking loaders.
|
||||
* @returns {boolean} True if at least one blocking loader is active
|
||||
*/
|
||||
function hasBlockingLoaders() {
|
||||
for (const handle of activeHandles) {
|
||||
if (handle.isBlocking && handle.isActive) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Class representing an action loader handle.
|
||||
* Manages its own toast, stop handler, and lifecycle.
|
||||
*/
|
||||
export class ActionLoaderHandle {
|
||||
/**
|
||||
* A special empty handle that is already disposed. Useful as a default value to avoid null checks.
|
||||
* Does not generate any id, toast, or overlay, and all its methods are no-ops.
|
||||
* @type {ActionLoaderHandle}
|
||||
*/
|
||||
static get EMPTY() {
|
||||
return new ActionLoaderHandle({ predisposed: true });
|
||||
}
|
||||
|
||||
/** @type {string} Unique identifier for this handle */
|
||||
#id;
|
||||
|
||||
/** @type {string|null} Unique slug for the loader */
|
||||
#slug = null;
|
||||
|
||||
/** @type {JQuery<HTMLElement>|null} The toast element for this loader */
|
||||
#toast = null;
|
||||
|
||||
/** @type {(() => void)|null} Custom stop handler */
|
||||
#onStop = null;
|
||||
|
||||
/** @type {(() => void)|null} Custom hide handler */
|
||||
#onHide = null;
|
||||
|
||||
/** @type {boolean} Whether this loader blocks the UI with an overlay */
|
||||
#blocking = true;
|
||||
|
||||
/** @type {boolean} Whether this handle has been disposed */
|
||||
#disposed = false;
|
||||
|
||||
/**
|
||||
* Creates a new ActionLoaderHandle.
|
||||
* @param {object} options - Configuration options
|
||||
* @param {boolean} [options.blocking=true] - Whether to show blocking overlay
|
||||
* @param {ActionLoaderToastMode} [options.toastMode] - Toast display mode
|
||||
* @param {string|null} [options.slug] - Unique slug for the loader (to identify it easily via code or CSS)
|
||||
* @param {string} [options.message='Generating...'] - Message to display in the toast
|
||||
* @param {string} [options.title] - Title for the toast notification
|
||||
* @param {string} [options.stopTooltip='Stop'] - Tooltip for the stop button
|
||||
* @param {boolean} [options.predisposed=false] - Whether this handle is already disposed (for special use)
|
||||
* @param {HTMLElement|string|null} [options.overlayContent] - Custom content for the overlay (replaces default spinner)
|
||||
* @param {(() => void)|null} [options.onStop] - Custom stop handler
|
||||
* @param {(() => void)|null} [options.onHide] - Custom hide handler
|
||||
*/
|
||||
constructor({
|
||||
blocking = true,
|
||||
toastMode = ActionLoaderToastMode.STOPPABLE,
|
||||
slug = null,
|
||||
message = t`Generating...`,
|
||||
title = '',
|
||||
stopTooltip = t`Stop`,
|
||||
overlayContent = null,
|
||||
onStop = null,
|
||||
onHide = null,
|
||||
predisposed = false,
|
||||
} = {}) {
|
||||
if (predisposed) {
|
||||
this.#disposed = true;
|
||||
return;
|
||||
}
|
||||
|
||||
this.#id = generateLoaderId();
|
||||
this.#slug = slug;
|
||||
this.#blocking = blocking;
|
||||
this.#onStop = onStop;
|
||||
this.#onHide = onHide;
|
||||
|
||||
// Warn if non-blocking loader has no toast - it won't be visible to the user
|
||||
if (!blocking && toastMode === ActionLoaderToastMode.NONE && !overlayContent) {
|
||||
console.warn('[ActionLoader] Non-blocking loader created without a toast. This loader will not be visible to the user.');
|
||||
}
|
||||
|
||||
// Show the blocking loader overlay if this is the first blocking handle
|
||||
if (blocking && !hasBlockingLoaders() && !isOverlayDisplayed()) {
|
||||
showOverlay(overlayContent);
|
||||
}
|
||||
|
||||
// Register this handle
|
||||
activeHandles.add(this);
|
||||
|
||||
// Create toast if needed
|
||||
if (toastMode !== ActionLoaderToastMode.NONE) {
|
||||
this.#createToast(message, title, toastMode, stopTooltip);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the toast element for this loader.
|
||||
* @param {string} message - Message to display
|
||||
* @param {string} title - Title for the toast
|
||||
* @param {ActionLoaderToastMode} toastMode - Toast mode
|
||||
* @param {string} stopTooltip - Tooltip for stop button
|
||||
*/
|
||||
#createToast(message, title, toastMode, stopTooltip) {
|
||||
const toastContent = document.createElement('div');
|
||||
toastContent.className = 'action-loader-toast';
|
||||
|
||||
if (this.#slug) {
|
||||
toastContent.dataset.slug = this.#slug;
|
||||
}
|
||||
toastContent.dataset.loaderId = this.#id;
|
||||
toastContent.dataset.blocking = this.#blocking.toString();
|
||||
|
||||
const messageSpan = document.createElement('span');
|
||||
messageSpan.className = 'action-loader-message';
|
||||
messageSpan.textContent = message;
|
||||
toastContent.appendChild(messageSpan);
|
||||
|
||||
// Add stop button if mode is STOPPABLE
|
||||
if (toastMode === ActionLoaderToastMode.STOPPABLE) {
|
||||
const stopButton = document.createElement('i');
|
||||
stopButton.className = 'fa-solid fa-stop-circle action-loader-stop interactable';
|
||||
stopButton.title = stopTooltip;
|
||||
stopButton.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
this.stop();
|
||||
});
|
||||
toastContent.appendChild(stopButton);
|
||||
}
|
||||
|
||||
// Show toast with no timeout (sticky)
|
||||
this.#toast = toastr.info($(toastContent), title, {
|
||||
timeOut: 0,
|
||||
extendedTimeOut: 0,
|
||||
tapToDismiss: false,
|
||||
escapeHtml: false,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the toast element for this loader.
|
||||
*/
|
||||
#clearToast() {
|
||||
if (this.#toast) {
|
||||
toastr.clear(this.#toast, { force: true }); // Need to force as the toast might have focus/hover
|
||||
this.#toast = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Disposes this handle, removing it from active handles and hiding overlay if last.
|
||||
*/
|
||||
async #dispose() {
|
||||
if (this.#disposed) return;
|
||||
this.#disposed = true;
|
||||
|
||||
this.#clearToast();
|
||||
activeHandles.delete(this);
|
||||
|
||||
// Hide the overlay if this was the last blocking handle
|
||||
if (this.#blocking && !hasBlockingLoaders()) {
|
||||
await hideOverlay();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier for this loader handle.
|
||||
* @returns {string}
|
||||
*/
|
||||
get id() {
|
||||
return this.#id;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique slug for this loader handle, used to identify it easily via code or CSS.
|
||||
* @returns {string|null}
|
||||
*/
|
||||
get slug() {
|
||||
return this.#slug;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this handle is still active (not disposed).
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get isActive() {
|
||||
return !this.#disposed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this loader blocks the UI with an overlay.
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get isBlocking() {
|
||||
return this.#blocking;
|
||||
}
|
||||
|
||||
/**
|
||||
* Triggers the stop action on this loader.
|
||||
* Calls the custom onStop handler if provided, otherwise calls stopGeneration().
|
||||
* Then hides this loader.
|
||||
*/
|
||||
async stop() {
|
||||
if (this.#disposed) return;
|
||||
|
||||
// Call custom stop handler or default
|
||||
if (this.#onStop) {
|
||||
try {
|
||||
await this.#onStop();
|
||||
} catch (e) {
|
||||
console.error('Error executing onStop handler', e);
|
||||
}
|
||||
} else {
|
||||
stopGeneration();
|
||||
}
|
||||
|
||||
// Dispose without calling onHide (stop is different from hide)
|
||||
await this.#dispose();
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides this loader and clears its toast.
|
||||
* Calls the custom onHide handler if provided.
|
||||
*/
|
||||
async hide() {
|
||||
if (this.#disposed) return;
|
||||
|
||||
// Call custom hide handler if provided
|
||||
if (this.#onHide) {
|
||||
try {
|
||||
await this.#onHide();
|
||||
} catch (e) {
|
||||
console.error('Error executing onHide handler', e);
|
||||
}
|
||||
}
|
||||
|
||||
await this.#dispose();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Action loader utility API.
|
||||
* Provides a convenient interface for showing and managing loading indicators.
|
||||
*
|
||||
* Read the functions documentation for more details.
|
||||
*
|
||||
* @example
|
||||
* // Basic usage
|
||||
* const handle = loader.show({ message: 'Loading...' });
|
||||
* await someOperation();
|
||||
* handle.hide();
|
||||
*
|
||||
* @example
|
||||
* // Non-blocking background task
|
||||
* const handle = loader.show({ blocking: false, message: 'Processing...' });
|
||||
*
|
||||
* @example
|
||||
* // Hide all active loaders
|
||||
* loader.hide();
|
||||
*/
|
||||
export const loader = {
|
||||
/**
|
||||
* Shows an action loader with optional toast notification.
|
||||
* Returns a handle to control the loader.
|
||||
* @type {typeof showActionLoader}
|
||||
*/
|
||||
show: showActionLoader,
|
||||
|
||||
/**
|
||||
* Hides a specific loader by handle, or all loaders if no handle provided.
|
||||
* @type {typeof hideActionLoader}
|
||||
*/
|
||||
hide: hideActionLoader,
|
||||
|
||||
/**
|
||||
* Gets all currently active loader handles.
|
||||
* @type {typeof getActiveLoaderHandles}
|
||||
*/
|
||||
active: getActiveLoaderHandles,
|
||||
|
||||
/**
|
||||
* Gets a loader handle by its ID.
|
||||
* @type {typeof getLoaderHandleById}
|
||||
*/
|
||||
get: getLoaderHandleById,
|
||||
|
||||
/**
|
||||
* Checks if any blocking loader overlay is currently displayed.
|
||||
* @returns {boolean} True if a blocking overlay is shown
|
||||
*/
|
||||
isBlocking: isOverlayDisplayed,
|
||||
|
||||
/**
|
||||
* Toast display mode constants.
|
||||
* @type {typeof ActionLoaderToastMode}
|
||||
*/
|
||||
ToastMode: ActionLoaderToastMode,
|
||||
|
||||
/**
|
||||
* The ActionLoaderHandle class.
|
||||
* @type {typeof ActionLoaderHandle}
|
||||
*/
|
||||
Handle: ActionLoaderHandle,
|
||||
|
||||
/**
|
||||
* Creates a fresh default loader overlay element.
|
||||
* @type {typeof createDefaultLoaderOverlay}
|
||||
*/
|
||||
createOverlay: createDefaultLoaderOverlay,
|
||||
};
|
||||
|
||||
/**
|
||||
* Shows an action loader with an optional stoppable toast notification.
|
||||
* Multiple loaders can be stacked - the overlay stays single, but each gets its own toast.
|
||||
* When the last loader is hidden, the overlay is removed.
|
||||
*
|
||||
* With default arguments, will function as a generation loader / wrapper.
|
||||
*
|
||||
* @param {ActionLoaderOptions} [options={}] - Configuration options
|
||||
* @returns {ActionLoaderHandle} Handle to control the loader
|
||||
*
|
||||
* @example
|
||||
* // Basic usage
|
||||
* const loader = showActionLoader({ message: 'Generating title...' });
|
||||
* try {
|
||||
* const result = await generateRaw({ prompt });
|
||||
* // process result
|
||||
* } finally {
|
||||
* await loader.hide();
|
||||
* }
|
||||
*
|
||||
* @example
|
||||
* // With custom stop and hide handlers
|
||||
* const loader = showActionLoader({
|
||||
* message: 'Downloading...',
|
||||
* stopTooltip: 'Cancel download',
|
||||
* onStop: () => myCustomCancelFunction(),
|
||||
* onHide: () => console.log('Loader hidden'),
|
||||
* });
|
||||
*
|
||||
* @example
|
||||
* // Stacking multiple loaders
|
||||
* const loader1 = showActionLoader({ message: 'Task 1...' });
|
||||
* const loader2 = showActionLoader({ message: 'Task 2...' });
|
||||
* await loader1.hide(); // Overlay stays, loader2 still active
|
||||
* await loader2.hide(); // Now overlay hides
|
||||
*
|
||||
* @example
|
||||
* // Non-blocking loader (toast only, no overlay)
|
||||
* const loader = showActionLoader({
|
||||
* message: 'Captioning image...',
|
||||
* blocking: false,
|
||||
* onStop: () => abortCaptioning(),
|
||||
* });
|
||||
*/
|
||||
export function showActionLoader(options = {}) {
|
||||
return new ActionLoaderHandle(options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides a specific action loader by handle, or all active loaders if no handle provided.
|
||||
* @param {ActionLoaderHandle|null} [handle=null] - Specific handle to hide, or undefined to hide all
|
||||
* @returns {Promise<boolean>} Whether any loader was hidden
|
||||
*/
|
||||
export async function hideActionLoader(handle = null) {
|
||||
if (handle instanceof ActionLoaderHandle) {
|
||||
if (handle.isActive) {
|
||||
await handle.hide();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// No handle provided - hide all active loaders
|
||||
const handles = getActiveLoaderHandles();
|
||||
for (const h of handles) {
|
||||
await h.hide();
|
||||
}
|
||||
return handles.length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all currently active loader handles.
|
||||
* @returns {ActionLoaderHandle[]} Array of active handles
|
||||
*/
|
||||
export function getActiveLoaderHandles() {
|
||||
return Array.from(activeHandles);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a loader handle by its ID.
|
||||
* @param {string} id - The handle ID
|
||||
* @returns {ActionLoaderHandle|undefined} The handle, or undefined if not found
|
||||
*/
|
||||
export function getLoaderHandleById(id) {
|
||||
for (const handle of activeHandles) {
|
||||
if (handle.id === id) {
|
||||
return handle;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Internal overlay management
|
||||
// ============================================================================
|
||||
|
||||
/** @type {Popup|null} The current loader overlay popup */
|
||||
let loaderPopup = null;
|
||||
|
||||
/** Whether the initial HTML preloader has been removed */
|
||||
let preloaderYoinked = false;
|
||||
|
||||
/**
|
||||
* Creates the default loader overlay element.
|
||||
* Always returns a fresh element instance.
|
||||
*
|
||||
* @returns {HTMLDivElement} A new loader overlay element
|
||||
*/
|
||||
export function createDefaultLoaderOverlay() {
|
||||
const loaderElement = document.createElement('div');
|
||||
loaderElement.id = 'loader';
|
||||
|
||||
const spinnerElement = document.createElement('div');
|
||||
spinnerElement.id = 'load-spinner';
|
||||
spinnerElement.className = 'fa-solid fa-gear fa-spin fa-3x';
|
||||
|
||||
loaderElement.appendChild(spinnerElement);
|
||||
|
||||
return loaderElement;
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalizes custom overlay content into a value supported by Popup.
|
||||
* @param {string|HTMLElement|null} customContent - Custom overlay content
|
||||
* @returns {string|HTMLElement} Content for Popup
|
||||
*/
|
||||
function getOverlayContent(customContent) {
|
||||
if (typeof customContent === 'string') {
|
||||
return customContent;
|
||||
}
|
||||
|
||||
if (customContent instanceof HTMLElement) {
|
||||
return customContent;
|
||||
}
|
||||
|
||||
return createDefaultLoaderOverlay();
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the loader overlay is currently displayed.
|
||||
* @returns {boolean} True if overlay is shown
|
||||
*/
|
||||
function isOverlayDisplayed() {
|
||||
return !!loaderPopup;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the blocking loader overlay.
|
||||
* Internal function - use showActionLoader() instead.
|
||||
* @param {HTMLElement|string|null} [customContent] - Custom content for the overlay
|
||||
*/
|
||||
function showOverlay(customContent = null) {
|
||||
// Two loaders don't make sense. Don't await, we can overlay the old loader while it closes
|
||||
if (loaderPopup) loaderPopup.complete(POPUP_RESULT.CANCELLED);
|
||||
|
||||
const content = getOverlayContent(customContent);
|
||||
|
||||
loaderPopup = new Popup(content, POPUP_TYPE.DISPLAY, null, {
|
||||
allowEscapeClose: false,
|
||||
transparent: true,
|
||||
animation: 'none',
|
||||
wide: true,
|
||||
large: true,
|
||||
});
|
||||
|
||||
// No close button, loaders are not closable
|
||||
loaderPopup.closeButton.style.display = 'none';
|
||||
|
||||
loaderPopup.show();
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides the blocking loader overlay with animation.
|
||||
* Internal function - use hideActionLoader() instead.
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
async function hideOverlay() {
|
||||
if (!loaderPopup) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return new Promise((resolve) => {
|
||||
const loaderElement = $('#loader');
|
||||
const spinner = $('#load-spinner');
|
||||
|
||||
if (!loaderElement.length) {
|
||||
console.warn('Loader element not found, skipping animation');
|
||||
cleanup();
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if transitions are enabled on spinner (which has the transition property)
|
||||
const transitionDuration = spinner.length && spinner[0] ? getComputedStyle(spinner[0]).transitionDuration : '0s';
|
||||
const hasTransitions = parseFloat(transitionDuration) > 0;
|
||||
|
||||
if (hasTransitions) {
|
||||
Promise.race([
|
||||
new Promise((r) => setTimeout(r, 500)), // Fallback timeout
|
||||
new Promise((r) => loaderElement.one('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', r)),
|
||||
]).finally(cleanup);
|
||||
} else {
|
||||
cleanup();
|
||||
}
|
||||
|
||||
function cleanup() {
|
||||
loaderElement.remove();
|
||||
// Yoink preloader entirely; it only exists to cover up unstyled content while loading JS
|
||||
// If it's present, we remove it once and then it's gone.
|
||||
yoinkPreloader();
|
||||
|
||||
loaderPopup.complete(POPUP_RESULT.AFFIRMATIVE)
|
||||
.catch((err) => console.error('Error completing loaderPopup:', err))
|
||||
.finally(() => {
|
||||
loaderPopup = null;
|
||||
resolve();
|
||||
});
|
||||
}
|
||||
|
||||
// Apply the blur styles to the entire loader element
|
||||
loaderElement.css({
|
||||
'filter': 'blur(15px)',
|
||||
'opacity': '0',
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the initial HTML preloader element.
|
||||
* Called once after the first loader hide.
|
||||
*/
|
||||
function yoinkPreloader() {
|
||||
if (preloaderYoinked) return;
|
||||
document.getElementById('preloader')?.remove();
|
||||
preloaderYoinked = true;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// End internal overlay management
|
||||
// ============================================================================
|
||||
@@ -96,7 +96,7 @@ function setNotePositionCommand(_, text) {
|
||||
return;
|
||||
}
|
||||
|
||||
$(`input[name="extension_floating_position"][value="${position}"]`).prop('checked', true).trigger('input');
|
||||
$(`input[name="extension_floating_position"][value="${position}"]`).prop('checked', true).trigger('input').trigger('change');
|
||||
toastr.info(t`Author's Note position updated`);
|
||||
}
|
||||
return Object.keys(validPositions).find(key => validPositions[key] == chat_metadata[metadata_keys.position]);
|
||||
@@ -231,11 +231,9 @@ function onExtensionFloatingCharaPromptInput() {
|
||||
!existingCharaNote.useChara
|
||||
) {
|
||||
extension_settings.note.chara.splice(existingCharaNoteIndex, 1);
|
||||
}
|
||||
else if (extension_settings.note.chara && existingCharaNote) {
|
||||
} else if (extension_settings.note.chara && existingCharaNote) {
|
||||
Object.assign(existingCharaNote, tempCharaNote);
|
||||
}
|
||||
else if (avatarName && tempPrompt.length > 0) {
|
||||
} else if (avatarName && tempPrompt.length > 0) {
|
||||
if (!extension_settings.note.chara) {
|
||||
extension_settings.note.chara = [];
|
||||
}
|
||||
|
||||
@@ -80,8 +80,6 @@ export class AutoComplete {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param {HTMLTextAreaElement|HTMLInputElement} textarea The textarea to receive autocomplete.
|
||||
* @param {() => boolean} checkIfActivate Function should return true only if under the current conditions, autocomplete should display (e.g., for slash commands: autoComplete.text[0] == '/')
|
||||
@@ -128,9 +126,17 @@ export class AutoComplete {
|
||||
});
|
||||
textarea.addEventListener('blur', () => this.hide());
|
||||
if (isFloating) {
|
||||
textarea.addEventListener('scroll', () => this.updateFloatingPositionDebounced());
|
||||
textarea.addEventListener('scroll', () => {
|
||||
if (this.isActive) {
|
||||
this.updateFloatingPositionDebounced();
|
||||
}
|
||||
});
|
||||
}
|
||||
window.addEventListener('resize', () => this.updatePositionDebounced());
|
||||
window.addEventListener('resize', () => {
|
||||
if (this.isActive) {
|
||||
this.updatePositionDebounced();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -414,7 +420,6 @@ export class AutoComplete {
|
||||
});
|
||||
|
||||
|
||||
|
||||
if (this.isForceHidden) {
|
||||
// hidden with escape
|
||||
return this.hide();
|
||||
@@ -465,7 +470,6 @@ export class AutoComplete {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Create updated DOM.
|
||||
*/
|
||||
@@ -514,7 +518,6 @@ export class AutoComplete {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Update position of DOM.
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
export class AutoCompleteFuzzyScore {
|
||||
/**@type {number}*/ start;
|
||||
/**@type {number}*/ longestConsecutive;
|
||||
|
||||
@@ -2,7 +2,6 @@ import { AutoCompleteNameResultBase } from './AutoCompleteNameResultBase.js';
|
||||
import { AutoCompleteSecondaryNameResult } from './AutoCompleteSecondaryNameResult.js';
|
||||
|
||||
|
||||
|
||||
export class AutoCompleteNameResult extends AutoCompleteNameResultBase {
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import { AutoCompleteOption } from './AutoCompleteOption.js';
|
||||
|
||||
|
||||
|
||||
export class AutoCompleteNameResultBase {
|
||||
/**@type {string} */ name;
|
||||
/**@type {number} */ start;
|
||||
/**@type {AutoCompleteOption[]} */ optionList = [];
|
||||
/**@type {boolean} */ canBeQuoted = false;
|
||||
/**@type {()=>string} */ makeNoMatchText = ()=>`No matches found for "${this.name}"`;
|
||||
/**@type {()=>string} */ makeNoOptionsText = ()=>'No options';
|
||||
/**@type {()=>string} */ makeNoMatchText = () => `No matches found for "${this.name}"`;
|
||||
/**@type {()=>string} */ makeNoOptionsText = () => 'No options';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { AutoCompleteFuzzyScore } from './AutoCompleteFuzzyScore.js';
|
||||
|
||||
|
||||
|
||||
export class AutoCompleteOption {
|
||||
/** @type {string} */ name;
|
||||
/** @type {string} */ typeIcon;
|
||||
@@ -72,7 +71,7 @@ export class AutoCompleteOption {
|
||||
name.classList.add('name');
|
||||
name.classList.add('monospace');
|
||||
name.textContent = noSlash ? '' : '/';
|
||||
key.split('').forEach(char=>{
|
||||
key.split('').forEach(char => {
|
||||
const span = document.createElement('span'); {
|
||||
span.textContent = char;
|
||||
name.append(span);
|
||||
|
||||
@@ -2,6 +2,7 @@ import {
|
||||
characters,
|
||||
saveChat,
|
||||
system_message_types,
|
||||
syncSwipeToMes,
|
||||
this_chid,
|
||||
openCharacterChat,
|
||||
chat_metadata,
|
||||
@@ -25,7 +26,7 @@ import {
|
||||
saveGroupBookmarkChat,
|
||||
selected_group,
|
||||
} from './group-chats.js';
|
||||
import { hideLoader, showLoader } from './loader.js';
|
||||
import { loader } from './action-loader.js';
|
||||
import { getLastMessageId } from './macros.js';
|
||||
import { Popup } from './popup.js';
|
||||
import { SlashCommand } from './slash-commands/SlashCommand.js';
|
||||
@@ -34,6 +35,7 @@ import { commonEnumProviders } from './slash-commands/SlashCommandCommonEnumsPro
|
||||
import { SlashCommandParser } from './slash-commands/SlashCommandParser.js';
|
||||
import { createTagMapFromList } from './tags.js';
|
||||
import { renderTemplateAsync } from './templates.js';
|
||||
import { compressRequest } from './request-compression.js';
|
||||
import { t } from './i18n.js';
|
||||
|
||||
import {
|
||||
@@ -92,7 +94,7 @@ async function getBookmarkName({ isReplace = false, forceName = null } = {}) {
|
||||
return `${cleanName} - ${bookmarkNameToken}${i}`;
|
||||
}
|
||||
const existingChats = await getExistingChatNames();
|
||||
const suggestedName = getUniqueName(mainChatName, (x) => existingChats.includes(x), { nameBuilder: buildCheckpointName });
|
||||
const suggestedName = getUniqueName(mainChatName, (x) => existingChats.includes(x), { nameBuilder: buildCheckpointName, startIndex: 1 });
|
||||
|
||||
const body = await renderTemplateAsync('createCheckpoint', { isReplace: isReplace, suggestedName: suggestedName });
|
||||
let name = forceName ?? await Popup.show.input('Create Checkpoint', body, suggestedName);
|
||||
@@ -111,12 +113,10 @@ function getMainChatName() {
|
||||
if (chat_metadata) {
|
||||
if (chat_metadata.main_chat) {
|
||||
return chat_metadata.main_chat;
|
||||
}
|
||||
// groups didn't support bookmarks before chat metadata was introduced
|
||||
else if (selected_group) {
|
||||
} else if (selected_group) {
|
||||
// groups didn't support bookmarks before chat metadata was introduced
|
||||
return null;
|
||||
}
|
||||
else if (characters[this_chid].chat && characters[this_chid].chat.includes(bookmarkNameToken)) {
|
||||
} else if (characters[this_chid].chat && characters[this_chid].chat.includes(bookmarkNameToken)) {
|
||||
const tokenIndex = characters[this_chid].chat.lastIndexOf(bookmarkNameToken);
|
||||
chat_metadata.main_chat = characters[this_chid].chat.substring(0, tokenIndex).trim();
|
||||
return chat_metadata.main_chat;
|
||||
@@ -146,8 +146,7 @@ export function showBookmarksButtons() {
|
||||
$('#option_back_to_main').hide();
|
||||
$('#option_new_bookmark').show();
|
||||
}
|
||||
}
|
||||
catch {
|
||||
} catch {
|
||||
$('#option_back_to_main').hide();
|
||||
$('#option_new_bookmark').hide();
|
||||
$('#option_convert_to_group').hide();
|
||||
@@ -163,8 +162,28 @@ async function saveBookmarkMenu() {
|
||||
return await createNewBookmark(chat.length - 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the branch chat snapshot, optionally selecting a specific swipe for the target message.
|
||||
* @param {number} mesId
|
||||
* @param {{swipeId?: number|null}} [options={}]
|
||||
* @returns {ChatMessage[]|null}
|
||||
*/
|
||||
function getBranchChatSnapshot(mesId, { swipeId = null } = {}) {
|
||||
const snapshot = structuredClone(chat.slice(0, Number(mesId) + 1));
|
||||
|
||||
if (swipeId === null) {
|
||||
return snapshot;
|
||||
}
|
||||
|
||||
if (!syncSwipeToMes(null, swipeId, snapshot[mesId])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return snapshot;
|
||||
}
|
||||
|
||||
// Export is used by Timelines extension. Do not remove.
|
||||
export async function createBranch(mesId) {
|
||||
export async function createBranch(mesId, { swipeId = null } = {}) {
|
||||
if (!chat.length) {
|
||||
toastr.warning('The chat is empty.', 'Branch creation failed');
|
||||
return;
|
||||
@@ -178,6 +197,12 @@ export async function createBranch(mesId) {
|
||||
const lastMes = chat[mesId];
|
||||
const mainChatName = (getCurrentChatDetails()).sessionName;
|
||||
const newMetadata = { main_chat: mainChatName };
|
||||
const selectedSwipeId = swipeId === null ? null : Number(swipeId);
|
||||
|
||||
if (selectedSwipeId !== null && (!Number.isInteger(selectedSwipeId) || selectedSwipeId < 0 || selectedSwipeId >= (lastMes?.swipes?.length ?? 0))) {
|
||||
toastr.warning('Invalid swipe ID.', 'Branch creation failed');
|
||||
return;
|
||||
}
|
||||
|
||||
function buildBranchName(name, i) {
|
||||
// Strip off existing suffixes, then build new name
|
||||
@@ -187,17 +212,23 @@ export async function createBranch(mesId) {
|
||||
return `${cleanName} - Branch #${i}`;
|
||||
}
|
||||
const existingChats = await getExistingChatNames();
|
||||
const name = getUniqueName(mainChatName, (x) => existingChats.includes(x), { nameBuilder: buildBranchName });
|
||||
const name = getUniqueName(mainChatName, (x) => existingChats.includes(x), { nameBuilder: buildBranchName, startIndex: 1 });
|
||||
if (!name) {
|
||||
console.error('Could not generate a unique branch name.');
|
||||
toastr.error('Could not generate a unique branch name.', 'Branch creation failed');
|
||||
return;
|
||||
}
|
||||
|
||||
const branchChatSnapshot = getBranchChatSnapshot(mesId, { swipeId: selectedSwipeId });
|
||||
if (!branchChatSnapshot) {
|
||||
toastr.warning('Could not prepare the selected swipe for branching.', 'Branch creation failed');
|
||||
return;
|
||||
}
|
||||
|
||||
if (selected_group) {
|
||||
await saveGroupBookmarkChat(selected_group, name, newMetadata, mesId);
|
||||
await saveGroupBookmarkChat(selected_group, name, newMetadata, mesId, branchChatSnapshot);
|
||||
} else {
|
||||
await saveChat({ chatName: name, withMetadata: newMetadata, mesId });
|
||||
await saveChat({ chatName: name, withMetadata: newMetadata, mesId, chatData: branchChatSnapshot });
|
||||
}
|
||||
// append to branches list if it exists
|
||||
// otherwise create it
|
||||
@@ -389,11 +420,12 @@ export async function convertSoloToGroupChat() {
|
||||
}
|
||||
|
||||
// Save group chat
|
||||
const createChatResponse = await fetch('/api/chats/group/save', {
|
||||
const createChatRequest = await compressRequest({
|
||||
method: 'POST',
|
||||
headers: getRequestHeaders(),
|
||||
body: JSON.stringify({ id: chatName, chat: [chatHeader, ...groupChat] }),
|
||||
});
|
||||
const createChatResponse = await fetch('/api/chats/group/save', createChatRequest);
|
||||
|
||||
if (!createChatResponse.ok) {
|
||||
console.error('Group chat creation unsuccessful');
|
||||
@@ -411,15 +443,20 @@ export async function convertSoloToGroupChat() {
|
||||
/**
|
||||
* Creates a new branch from the message with the given ID
|
||||
* @param {number} mesId Message ID
|
||||
* @param {{swipeId?: number|null}} [options={}] Branch options
|
||||
* @returns {Promise<string?>} Branch file name
|
||||
*/
|
||||
export async function branchChat(mesId) {
|
||||
export async function branchChat(mesId, { swipeId = null } = {}) {
|
||||
if (this_chid === undefined && !selected_group) {
|
||||
toastr.info('No character selected.', 'Create Branch');
|
||||
return null;
|
||||
}
|
||||
|
||||
const fileName = await createBranch(mesId);
|
||||
const fileName = await createBranch(mesId, { swipeId });
|
||||
if (!fileName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
await saveItemizedPrompts(fileName);
|
||||
|
||||
if (selected_group) {
|
||||
@@ -662,15 +699,21 @@ export function initBookmarks() {
|
||||
return;
|
||||
}
|
||||
|
||||
const loaderHandle = loader.show({
|
||||
slug: 'chat-load',
|
||||
title: t`Chat History`,
|
||||
message: t`Loading chat…`,
|
||||
toastMode: loader.ToastMode.STATIC,
|
||||
});
|
||||
|
||||
try {
|
||||
showLoader();
|
||||
if (selected_group) {
|
||||
await openGroupChat(selected_group, fileName);
|
||||
} else {
|
||||
await openCharacterChat(fileName);
|
||||
}
|
||||
} finally {
|
||||
await hideLoader();
|
||||
await loaderHandle.hide();
|
||||
}
|
||||
|
||||
$('#shadow_select_chat_popup').css('display', 'none');
|
||||
|
||||
@@ -72,6 +72,14 @@ function applyBrowserFixes() {
|
||||
|
||||
if (isMobile()) {
|
||||
const fixFunkyPositioning = () => {
|
||||
if (isFirefox()) {
|
||||
const active = document.activeElement;
|
||||
if (active instanceof HTMLInputElement || active instanceof HTMLTextAreaElement) {
|
||||
// The positioning hack below breaks GBoard candidate replacement
|
||||
// in Firefox Mobile on Android.
|
||||
return;
|
||||
}
|
||||
}
|
||||
console.debug('[Mobile] Device viewport change detected.');
|
||||
document.documentElement.style.position = 'fixed';
|
||||
requestAnimationFrame(() => document.documentElement.style.position = '');
|
||||
|
||||