Merge pull request #2897 from SillyTavern/staging Staging

648e70b8c6ae10052c2e28d164390ff50846777a

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

Signed
234 files changed, +3253 -2219Showing whitespace changes
.github/readme-ja_jp.md+21 -5
@@ -1,6 +1,20 @@
1+> [!IMPORTANT]
2+> ここに掲載されている情報は、古かったり不完全であったりする可能性があります。最新の情報は英語版をご利用ください。
3+
4+![][cover]
5+
6+<div align="center">
7+
18[English](readme.md) | [中文](readme-zh_cn.md) | 日本語 | [Русский](readme-ru_ru.md)
29
3-![SillyTavern-Banner](https://github.com/SillyTavern/SillyTavern/assets/18619528/c2be4c3f-aada-4f64-87a3-ae35a68b61a4)
10+[![GitHub Stars](https://img.shields.io/github/stars/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/stargazers)
11+[![GitHub Forks](https://img.shields.io/github/forks/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/network)
12+[![GitHub Issues](https://img.shields.io/github/issues/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/issues)
13+[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/pulls)
14+
15+</div>
16+
17+---
418
519モバイルデバイスにも適したレイアウト・マルチAPI(KoboldAI/CPP、Horde、NovelAI、Ooba、OpenAI、OpenRouter、Claude、Scale)、VN ライクな Waifu モード、Stable Diffusion、TTS、WorldInfo(伝承本)、カスタマイズ可能なUI、自動翻訳、大量のプロンプトオプション+サードパーティの拡張機能をインストールする機能
620
@@ -76,9 +90,8 @@ Tavern は単なるフロントエンドのUIであり、必要なハードウ
7690
7791## 拡張機能
7892
79-SillyTavern は拡張できるようになっており、[SillyTavern Extras API](https://github.com/SillyTavern/SillyTavern-extras) でいくつかの追加AIモジュールをホストしています
93+SillyTavern は拡張できるようになっており。
8094
81-* 作者ノート/キャラクターバイアス
8295* キャラクターの感情表現(スプライト)
8396* チャット履歴の自動サマリー
8497* チャットに画像を送り、AI が内容を解釈する
@@ -282,8 +295,8 @@ ST サーバを再起動すると、ユーザ名とパスワードさえ知っ
282295
283296## スクリーンショット
284297
285298<img width="400500" alt="image" src="https://user-images.githubusercontentgithub.com/18619528/228649245user-8061c60fattachments/assets/9b5f32f0-63dcc3b3-488e4102-9325b3f5-f151b7a3ec2d.png0e9213c0f50f">
286299<img width="400500" alt="image" src="https://user-images.githubusercontentgithub.com/18619528/228649856user-fbdeef05attachments/assets/913fdbaa-d7277d33-4d5a42f1-be80ae2c-266cbbc6b811.png89dca41c53d1">
287300
288301## ライセンスとクレジット
289302
@@ -312,3 +325,6 @@ ST サーバを再起動すると、ユーザ名とパスワードさえ知っ
312325* @doloroushyeonse による韓国語翻訳
313326* k_euler_a による Horde のサポート <https://github.com/Teashrock>
314327* [@XXpE3](https://github.com/XXpE3) による中国語翻訳、中国語 ISSUES の連絡先は @XXpE3
328+
329+<!-- LINK GROUP -->
330+[cover]: https://github.com/user-attachments/assets/01a6ae9a-16aa-45f2-8bff-32b5dc587e44
.github/readme-ru_ru.md+20 -7
@@ -1,8 +1,22 @@
1+> [!IMPORTANT]
2+> Приведенная здесь информация может быть устаревшей или неполной и предоставляется только для вашего удобства. Пожалуйста, используйте английскую версию для получения наиболее актуальной информации.
3+
14<a name="readme-top"></a>
25
6+![][cover]
7+
8+<div align="center">
9+
310[English](readme.md) | [中文](readme-zh_cn.md) | [日本語](readme-ja_jp.md) | Русский
411
5-![][cover]
12+[![GitHub Stars](https://img.shields.io/github/stars/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/stargazers)
13+[![GitHub Forks](https://img.shields.io/github/forks/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/network)
14+[![GitHub Issues](https://img.shields.io/github/issues/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/issues)
15+[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/pulls)
16+
17+</div>
18+
19+---
620
721Мобайл-френдли интерфейс, поддержка множества API (KoboldAI/CPP, Horde, NovelAI, Ooba, OpenAI, OpenRouter, Claude, Scale), ВН-образный режим Вайфу, Stable Diffusion, TTS, поддержка миров (лорбуков), кастомизируемый UI, автоперевод, тончайшая настройка промптов + возможность устанавливать расширения.
822
@@ -26,8 +40,8 @@ SillyTavern — это форк версии TavernAI 1.2.8, который ра
2640
2741## Скриншоты
2842
2943<img width="400500" alt="image" src="https://github.com/SillyTavern/SillyTavernuser-attachments/assets/61471128/e902c7a29b5f32f0-45a6c3b3-44154102-97aab3f5-c59c597669c10e9213c0f50f">
3044<img width="400500" alt="image" src="https://github.com/SillyTavern/SillyTavernuser-attachments/assets/61471128/f8a79c47913fdbaa-4fe97d33-456442f1-9e4aae2c-bf247ed1c96189dca41c53d1">
3145
3246### Ветки
3347
@@ -51,7 +65,7 @@ SillyTavern — это просто интерфейс, поэтому запу
5165### У нас появился сервер в Discord
5266
5367| [![][discord-shield-badge]][discord-link] | [Вступайте в наше Discord-сообщество!](https://discord.gg/sillytavern) Задавайте вопросы, делитесь любимыми персонажами и промптами. |
5468| :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------- |
5569
5670Также можно написать разработчикам напрямую:
5771
@@ -74,9 +88,8 @@ SillyTavern — это просто интерфейс, поэтому запу
7488
7589## Расширения
7690
77-SillyTavern поддерживает расширения, при этом некоторые из ИИ-модулей работают через [SillyTavern Extras API](https://github.com/SillyTavern/SillyTavern-extras)
91+SillyTavern поддерживает расширения.
7892
79-* Заметки автора / Смещение характера
8093* Эмоции для персонажей (спрайты)
8194* Автоматический саммарайз (краткий пересказ) истории чата
8295* Возможность отправить в чат картинку, которую ИИ сможет рассмотреть и понять
@@ -353,7 +366,7 @@ SillyTavern сохраняет ключи от ваших API в файле `sec
353366
354367<!-- LINK GROUP -->
355368[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
356369[cover]: https://github.com/SillyTavern/SillyTavernuser-attachments/assets/18619528/c2be4c3f01a6ae9a-aada16aa-4f6445f2-87a38bff-ae35a68b61a4 32b5dc587e44
357370[discord-link]: https://discord.gg/sillytavern
358371[discord-shield]: https://img.shields.io/discord/1100685673633153084?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=flat-square
359372[discord-shield-badge]: https://img.shields.io/discord/1100685673633153084?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
.github/readme-zh_cn.md+21 -5
@@ -1,6 +1,20 @@
1+> [!IMPORTANT]
2+> 这里的信息可能已经过时或不完整,仅供您参考。请使用英文版本获取最新信息。
3+
4+![][cover]
5+
6+<div align="center">
7+
18[English](readme.md) | 中文 | [日本語](readme-ja_jp.md) | [Русский](readme-ru_ru.md)
29
3-![image](https://github.com/SillyTavern/SillyTavern/assets/18619528/c2be4c3f-aada-4f64-87a3-ae35a68b61a4)
10+[![GitHub Stars](https://img.shields.io/github/stars/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/stargazers)
11+[![GitHub Forks](https://img.shields.io/github/forks/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/network)
12+[![GitHub Issues](https://img.shields.io/github/issues/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/issues)
13+[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/pulls)
14+
15+</div>
16+
17+---
418
519移动设备界面友好,多种人工智能服务或模型支持(KoboldAI/CPP, Horde, NovelAI, Ooba, OpenAI, OpenRouter, Claude, Scale),类似 Galgame 的 老 婆 模 式,Horde SD,文本系统语音生成,世界信息(Lorebooks),可定制的界面,自动翻译,和比你所需要的更多的 Prompt。附带扩展服务,支持文本绘画生成与语音生成和基于向量数据库 的聊天信息总结。
620
@@ -73,9 +87,8 @@ SillyTavern 本身并无用处,因为它只是一个用户聊天界面。你
7387
7488## 扩展
7589
76-SillyTavern 支持扩展服务,一些额外的人工智能模块可通过 [SillyTavern Extras API](https://github.com/SillyTavern/SillyTavern-extras) 提供。
90+SillyTavern 支持扩展服务。
7791
78-* 作者注释/角色偏见
7992* 角色情绪识别
8093* 聊天记录自动摘要
8194* 在聊天窗口发送图片,并由人工智能解释图片内容
@@ -276,8 +289,8 @@ SillyTavern 会将 API 密钥保存在目录中的 `secrets.json` 文件内。
276289
277290## 屏幕截图
278291
279292<img width="400500" alt="image" src="https://user-images.githubusercontentgithub.com/18619528/228649245user-8061c60fattachments/assets/9b5f32f0-63dcc3b3-488e4102-9325b3f5-f151b7a3ec2d.png0e9213c0f50f">
280293<img width="400500" alt="image" src="https://user-images.githubusercontentgithub.com/18619528/228649856user-fbdeef05attachments/assets/913fdbaa-d7277d33-4d5a42f1-be80ae2c-266cbbc6b811.png89dca41c53d1">
281294
282295## 许可证和贡献
283296
@@ -304,3 +317,6 @@ SillyTavern 会将 API 密钥保存在目录中的 `secrets.json` 文件内。
304317* Default content (characters and lore books) provided by @OtisAlejandro, @RossAscends and @kallmeflocc
305318* Korean translation by @doloroushyeonse
306319* 中文翻译由 [@XXpE3](https://github.com/XXpE3) 完成,中文 ISSUES 可以联系 @XXpE3
320+
321+<!-- LINK GROUP -->
322+[cover]: https://github.com/user-attachments/assets/01a6ae9a-16aa-45f2-8bff-32b5dc587e44
.github/readme.md+174 -214
@@ -1,135 +1,130 @@
11<a name="readme-top"></a>
22
3-English | [中文](readme-zh_cn.md) | [日本語](readme-ja_jp.md) | [Русский](readme-ru_ru.md)
4-
53![][cover]
64
7-Mobile-friendly layout, Multi-API (KoboldAI/CPP, Horde, NovelAI, Ooba, OpenAI, OpenRouter, Claude, Scale), VN-like Waifu Mode, Stable Diffusion, TTS, WorldInfo (lorebooks), customizable UI, auto-translate, and more prompt options than you'd ever want or need + ability to install third-party extensions.
5+<div align="center">
86
9-Based on a fork of [TavernAI](https://github.com/TavernAI/TavernAI) 1.2.8
7+English | [中文](readme-zh_cn.md) | [日本語](readme-ja_jp.md) | [Русский](readme-ru_ru.md)
108
11-## Important news!
9+[![GitHub Stars](https://img.shields.io/github/stars/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/stargazers)
10+[![GitHub Forks](https://img.shields.io/github/forks/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/network)
11+[![GitHub Issues](https://img.shields.io/github/issues/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/issues)
12+[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/SillyTavern/SillyTavern.svg)](https://github.com/SillyTavern/SillyTavern/pulls)
1213
13-1. We have created a [Documentation website](https://docs.sillytavern.app/) to answer most of your questions and help you get started.
14+</div>
1415
15-2. Missing extensions after the update? Since the 1.10.6 release version, most of the previously built-in extensions have been converted to downloadable add-ons. You can download them via the built-in "Download Extensions and Assets" menu in the extensions panel (stacked blocks icon in the top bar).
16+---
1617
17-3. Unsupported platform: android arm LEtime-web. 32-bit Android requires an external dependency that can't be installed with npm. Use the following command to install it: `pkg install esbuild`. Then run the usual installation steps.
18+SillyTavern provides a single unified interface for many LLM APIs (KoboldAI/CPP, Horde, NovelAI, Ooba, Tabby, OpenAI, OpenRouter, Claude, Mistral and more), a mobile-friendly layout, Visual Novel Mode, Automatic1111 & ComfyUI API image generation integration, TTS, WorldInfo (lorebooks), customizable UI, auto-translate, more prompt options than you'd ever want or need, and endless growth potential via third-party extensions.
1819
19-### Brought to you by Cohee, RossAscends, and the SillyTavern community
20+We have a [Documentation website](https://docs.sillytavern.app/) to answer most of your questions and help you get started.
2021
2122### What is SillyTavern or TavernAI?
2223
2324SillyTavern is a user interface(or youST canfor installshort) onis youra computerlocally (andinstalled Androiduser phones)interface that allows you to interact with text generation AIs and chat/roleplayLLMs, withimage charactersgeneration youengines, orand theTTS communityvoice createmodels.
2425
2526SillyTavernBeginning isin February 2023 as a fork of TavernAI 1.2.8, whichSillyTavern isnow underhas moreover active100 developmentcontributors and has2 addedyears manyof majorindependent features.development Atunder thisits pointbelt, they canand becontinues thoughtto ofserve as completelya independentleading programssoftware for savvy AI hobbyists.
2627
2728## ScreenshotsOur Vision
2829
29-<img width="400" alt="image" src="https://github.com/SillyTavern/SillyTavern/assets/61471128/e902c7a2-45a6-4415-97aa-c59c597669c1">
30+1. We aim to empower users with as much utility and control over their LLM prompts as possible. The steep learning curve is part of the fun!
30-<img width="400" alt="image" src="https://github.com/SillyTavern/SillyTavern/assets/61471128/f8a79c47-4fe9-4564-9e4a-bf247ed1c961">
31+2. We do not provide any online or hosted services, nor programmatically track any user data.
32+3. SillyTavern is a passion project brought to you by a dedicated community of LLM enthusiasts, and will always be free and open sourced.
3133
3234### Branches
3335
3436SillyTavern is being developed using a two-branch system to ensure a smooth experience for all users.
3537
3638* `release` -🌟 **Recommended for most users.** This is the most stable and recommended branch, updated only when major releases are pushed. It's suitable for the majority of users. Typically updated once a month.
3739* `staging` - ⚠️ **Not recommended for casual use.** This branch has the latest features, but be cautious as it may break at any time. Only for power users and enthusiasts. Updates several times daily.
3840
3941If you're not familiar with using the git CLI or don't understand what a branch is, don't worry! The release branch is always the preferable option for you.
4042
4143### What do I need other than SillyTavern?
4244
4345On its ownSince SillyTavern is useless, as it's just aonly useran interface. You, haveyou towill haveneed access to an AI systemLLM backend thatto provide inference. You can actuse asAI theHorde roleplayfor characterinstant out-of-the-box chatting. ThereAside arefrom variousthat, supportedwe backends:support OpenAPImany APIother (GPT),local KoboldAIand (eithercloud-based runningLLM locallybackends: orOpenAI-compatible onAPI, GoogleKoboldAI, Colab)Tabby, and many more. You can read more about thisour supported APIs in [the FAQ](https://docs.sillytavern.app/usage/faqapi-connections/).
4446
4547### Do I need a powerful PC to run SillyTavern?
4648
47-Since SillyTavern is only a user interface, it has tiny hardware requirements, it will run on anything. It's the AI system backend that needs to be powerful.
49+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. Check your backend's documentation for more details.
50+
51+### Suggested Backends (not affiliated)
52+
53+* [AI Horde](https://aihorde.net/) - use models hosted by volunteers. Requires no further setup
54+* [KoboldCpp](https://github.com/LostRuins/koboldcpp) - a community's favorite for running GGUF models locally
55+* [tabbyAPI](https://github.com/theroyallab/tabbyAPI) - a popular, lightweight, locally-hosted exl2 inference API
56+* [OpenRouter](https://openrouter.ai) - a single API for many cloud providers (OpenAI, Claude, Meta Llama, etc.) as well as popular community models.
4857
4958## Questions or suggestions?
5059
5160### We now have a community Discord server
5261
5362| [![][discord-shield-badge]][discord-link] | [Join our Discord community!](https://discord.gg/sillytavern) Get support, share favorite characters and prompts. |
5463| :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------- |
5564
5665Or get in touch with the developers directly:
5766
5867* Discord: cohee or, rossascends, wolfsblvt
5968* Reddit: [/u/RossAscends](https://www.reddit.com/user/RossAscends/) or, [/u/sillylossy](https://www.reddit.com/user/sillylossy/), [u/Wolfsblvt](https://www.reddit.com/user/Wolfsblvt/)
6069* [Post a GitHub issue](https://github.com/SillyTavern/SillyTavern/issues)
6170
62-## This version includes
71+### I like your project! How do I contribute?
6372
64-* A heavily modified TavernAI 1.2.8 (more than 50% of code rewritten or optimized)
73+1. Send pull requests. Learn how to contribute: [CONTRIBUTING.md](../CONTRIBUTING.md)
65-* Swipes
74+2. Send feature suggestions and issue reports using the provided templates.
66-* Group chats: multi-bot rooms for characters to talk to you or each other
75+3. Read this entire readme file and check the documentation website first, to avoid sending duplicate issues.
67-* Chat checkpoints / branching
68-* Advanced KoboldAI / TextGen generation settings with a lot of community-made presets
69-* World Info support: create rich lore or save tokens on your character card
70-* [OpenRouter](https://openrouter.ai) connection for various APIs (Claude, GPT-4/3.5 and more)
71-* [Oobabooga's TextGen WebUI](https://github.com/oobabooga/text-generation-webui) API connection
72-* [AI Horde](https://aihorde.net/) connection
73-* Prompt generation formatting tweaking
7476
7577## ExtensionsScreenshots
7678
77-SillyTavern has extensibility support, with some additional AI modules hosted via [SillyTavern Extras API](https://github.com/SillyTavern/SillyTavern-extras)
79+<img width="500" alt="image" src="https://github.com/user-attachments/assets/9b5f32f0-c3b3-4102-b3f5-0e9213c0f50f">
80+<img width="500" alt="image" src="https://github.com/user-attachments/assets/913fdbaa-7d33-42f1-ae2c-89dca41c53d1">
7881
79-* Author's Note / Character Bias
82+## Character Cards
80-* Character emotional expressions (sprites)
83+
81-* Auto-Summary of the chat history
84+SillyTavern is built around the concept of "character cards". A character card is a collection of prompts that set the behavior of the LLM and is required to have persistent conversations in SillyTavern. They function similarly to ChatGPT's GPTs or Poe's bots. The content of a character card can be anything: an abstract scenario, an assistant tailored for a specific task, a famous personality or a fictional character.
82-* Sending images to chat, and the AI interpreting the content
83-* Stable Diffusion image generation (5 chat-related presets plus 'free mode')
84-* Text-to-speech for AI response messages (via ElevenLabs, Silero, or the OS's System TTS)
8585
86-A full list of included extensions and tutorials on how to use them can be found in the [Docs](https://docs.sillytavern.app/).
86+The name field is the only required character card input. To start a neutral conversation with the language model, create a new card simply called "Assistant" and leave the rest of the boxes blank. For a more themed chat, you can provide the language model with various background details, behavior and writing patterns, and a scenario to jump start the chat.
8787
88-## UI/CSS/Quality of Life tweaks by RossAscends
88+To have a quick conversation without selecting a character card or to just test the LLM connection, simply type your prompt input into the input bar on the Welcome Screen after opening SillyTavern. Please note that such chats are temporary and will not be saved.
8989
90-* Mobile UI optimized for iOS, and supports saving a shortcut to the home screen and opening in fullscreen mode.
90+To get a general idea on how to define character cards, see the default character (Seraphina) or download selected community-made cards from the "Download Extensions & Assets" menu.
91-* HotKeys
92- * Up = Edit last message in chat
93- * Ctrl+Up = Edit last USER message in chat
94- * Left = swipe left
95- * Right = swipe right (NOTE: swipe hotkeys are disabled when the chat bar has something typed into it)
96- * Ctrl+Left = view locally stored variables (in the browser console window)
97- * Enter (with chat bar selected) = send your message to AI
98- * Ctrl+Enter = Regenerate the last AI response
9991
100-* User Name Changes and Character Deletion no longer force the page to refresh.
92+## Key Features
10193
102-* Toggle option to automatically connect to API on page load.
94+* Advanced text generation settings with many community-made presets
10395* Toggle optionWorld toInfo automaticallysupport: loadcreate therich mostlore recentlyor viewedsave charactertokens on pageyour load.character card
10496* Better TokenGroup Counterchats: multi- worksbot onrooms unsavedfor characters, andto showstalk bothto permanentyou and/or temporaryeach tokens.other
97+* Rich UI customization options: theme colors, background images, custom CSS, and more
98+* User personas: let the AI know a bit about you for greater immersion
99+* Built-in RAG support: add documents to your chats for the AI to reference
100+* Extensive chat commands subsystem and own [scripting engine](https://docs.sillytavern.app/usage/st-script/)
105101
106-* Better Past Chats View
102+## Extensions
107- * New Chat filenames are saved in a readable format of "(character) - (when it was created)"
108- * Chat preview increased from 40 characters to 300.
109- * Multiple options for characters list sorting (by name, creation date, chat sizes).
110103
111-* By default the left and right settings panel will close when you click away from it.
104+SillyTavern has extensibility support.
112-* Clicking the Lock on the nav panel will hold the panel open, and this setting be remembered across sessions.
113-* Nav panel status of open or closed will also be saved across sessions.
114105
115-* Customizable chat UI:
106+* Character emotional expressions (sprites)
116- * Play a sound when a new message arrives
107+* Auto-Summary of the chat history
117- * Switch between round or rectangle avatar styles
108+* Automatic UI and chat translation
118- * Have a wider chat window on the desktop
109+* Stable Diffusion/FLUX/DALL-E image generation
119- * Optional semi-transparent glass-like panels
110+* Text-to-speech for AI response messages (via ElevenLabs, Silero, or the OS's System TTS)
120- * Customizable page colors for 'main text', 'quoted text', and 'italics text'.
111+* Web Search capabilities for adding additional real world context to your prompts
121- * Customizable UI background color and blur amount
112+* Many more are available to download from the "Download Extensions & Assets" menu.
113+
114+Tutorials on how to use them can be found in the [Docs](https://docs.sillytavern.app/).
122115
123116# ⌛ Installation
124117
125118> \[!WARNING]
119+>
126120> * DO NOT INSTALL INTO ANY WINDOWS CONTROLLED FOLDER (Program Files, System32, etc).
127121> * DO NOT RUN START.BAT WITH ADMIN PERMISSIONS
128122> * INSTALLATION ON WINDOWS 7 IS IMPOSSIBLE AS IT CAN NOT RUN NODEJS 18.16
129123
130124## 🪟 Windows
131125
132126### Installing via Git
127+
1331281. Install [NodeJS](https://nodejs.org/en) (latest LTS version is recommended)
1341292. Install [Git for Windows](https://gitforwindows.org/)
1351303. Open Windows Explorer (`Win+E`)
@@ -137,24 +132,16 @@ A full list of included extensions and tutorials on how to use them can be found
1371325. Open a Command Prompt inside that folder by clicking in the 'Address Bar' at the top, typing `cmd`, and pressing Enter.
1381336. Once the black box (Command Prompt) pops up, type ONE of the following into it and press Enter:
139134
140135-* for Release Branch: `git clone https://github.com/SillyTavern/SillyTavern -b release`
141136-* for Staging Branch: `git clone https://github.com/SillyTavern/SillyTavern -b staging`
142137
1431387. Once everything is cloned, double-click `Start.bat` to make NodeJS install its requirements.
1441398. The server will then start, and SillyTavern will pop up in your browser.
145140
146141### Installing via SillyTavernGitHub LauncherDesktop
147-1. On your keyboard: press **`WINDOWS + R`** to open Run dialog box. Then, run the following command to install git:
148-```shell
149-cmd /c winget install -e --id Git.Git
150-```
151-2. On your keyboard: press **`WINDOWS + E`** to open File Explorer, then navigate to the folder where you want to install the launcher. Once in the desired folder, type `cmd` into the address bar and press enter. Then, run the following command:
152-```shell
153-git clone https://github.com/SillyTavern/SillyTavern-Launcher.git && cd SillyTavern-Launcher && start installer.bat
154-```
155142
156-## Installing via GitHub Desktop
157143(This allows git usage **only** in GitHub Desktop, if you want to use `git` on the command line too, you also need to install [Git for Windows](https://gitforwindows.org/))
144+
158145 1. Install [NodeJS](https://nodejs.org/en) (latest LTS version is recommended)
159146 2. Install [GitHub Desktop](https://central.github.com/deployments/desktop/desktop/latest/win32)
160147 3. After installing GitHub Desktop, click on `Clone a repository from the internet....` (Note: You **do NOT need** to create a GitHub account for this step)
@@ -172,50 +159,82 @@ For MacOS / Linux all of these will be done in a Terminal.
1721591. Install git and nodeJS (the method for doing this will vary depending on your OS)
1731602. Clone the repo
174161
175162-* for Release Branch: `git clone https://github.com/SillyTavern/SillyTavern -b release`
176163-* for Staging Branch: `git clone https://github.com/SillyTavern/SillyTavern -b staging`
177164
1781653. `cd SillyTavern` to navigate into the install folder.
1791664. Run the `start.sh` script with one of these commands:
180167
181168-* `./start.sh`
182169-* `bash start.sh`
170+
171+## ⚡ Installing via SillyTavern Launcher
183172
184-## Installing via SillyTavern Launcher
173+SillyTavern Launcher is an installation wizard that will help you get setup with many options, including installing a backend for local inference.
174+
175+### For Windows users
176+
177+1. On your keyboard: press **`WINDOWS + R`** to open Run dialog box. Then, run the following command to install git:
178+
179+```shell
180+cmd /c winget install -e --id Git.Git
181+```
182+
183+2. On your keyboard: press **`WINDOWS + E`** to open File Explorer, then navigate to the folder where you want to install the launcher. Once in the desired folder, type `cmd` into the address bar and press enter. Then, run the following command:
184+
185+```shell
186+git clone https://github.com/SillyTavern/SillyTavern-Launcher.git && cd SillyTavern-Launcher && start installer.bat
187+```
185188
186189### For Linux users
190+
1871911. Open your favorite terminal and install git
1881922. Git clone the Sillytavern-Launcher with:
193+
189194```shell
190195git clone https://github.com/SillyTavern/SillyTavern-Launcher.git && cd SillyTavern-Launcher
191196```
197+
1921983. Start the installer.sh with:
199+
193200```shell
194201chmod +x install.sh && ./install.sh
195202```
203+
1962044. After installation start the launcher.sh with:
205+
197206```shell
198207chmod +x launcher.sh && ./launcher.sh
199208```
200209
201210### For Mac users
211+
2022121. Open a terminal and install brew with:
213+
203214```shell
204215/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
205216```
217+
2062182. Install git with:
219+
207220```shell
208221brew install git
209222```
223+
2102243. Git clone the Sillytavern-Launcher with:
225+
211226```shell
212227git clone https://github.com/SillyTavern/SillyTavern-Launcher.git && cd SillyTavern-Launcher
213228```
229+
2142304. Start the installer.sh with:
231+
215232```shell
216233chmod +x install.sh && ./install.sh
217234```
235+
2182365. After installation start the launcher.sh with:
237+
219238```shell
220239chmod +x launcher.sh && ./launcher.sh
221240```
@@ -236,18 +255,18 @@ You will need two mandatory directory mappings and a port mapping to allow Silly
236255
237256##### Volume Mappings
238257
239258-* [config] - The directory where SillyTavern configuration files will be stored on your host machine
240259-* [data] - The directory where SillyTavern user data (including characters) will be stored on your host machine
241260-* [plugins] - (optional) The directory where SillyTavern server plugins will be stored on your host machine
242261
243262##### Port Mappings
244263
245264-* [PublicPort] - The port to expose the traffic on. This is mandatory, as you will be accessing the instance from outside of its virtual machine container. DO NOT expose this to the internet without implementing a separate service for security.
246265
247266##### Additional Settings
248267
249268-* [DockerNet] - The docker network that the container should be created with a connection to. If you don't know what it is, see the [official Docker documentation](https://docs.docker.com/reference/cli/docker/network/).
250269-* [version] - On the right-hand side of this GitHub page, you'll see "Packages". Select the "sillytavern" package and you'll see the image versions. The image tag "latest" will keep you up-to-date with the current release. You can also utilize "staging" and "release" tags that point to the nightly images of the respective branches, but this may not be appropriate, if you are utilizing extensions that could be broken, and may need time to update.
251270
252271#### Install command
253272
@@ -258,128 +277,82 @@ You will need two mandatory directory mappings and a port mapping to allow Silly
258277
259278> Note that 8000 is a default listening port. Don't forget to use an appropriate port if you change it in the config.
260279
261280## 📱 Mobile - Installing via termuxTermux on Android OS
262281
263282> \[!NOTE]
264283> **SillyTavern can be run natively on Android phonesdevices using Termux., Pleasebut referwe todo thisnot guideprovide byofficial ArroganceComplex#2659:support for this use case.**
284+>
285+> **Please refer to this guide by ArroganceComplex#2659:**
286+>
265287> * <https://rentry.org/STAI-Termux>
266288
289+**Unsupported platform: android arm LEtime-web.** 32-bit Android requires an external dependency that can't be installed with npm. Use the following command to install it: `pkg install esbuild`. Then run the usual installation steps.
267290
268291## API keys management
269292
270293SillyTavern saves your API keys to a `secrets.json` file in the user data directory (`/data/default-user/secrets.json` is the default path).
271294
272295By default, theyAPI keys will not be exposedvisible tofrom athe frontendinterface after you enterhave saved them and reloadrefreshed the page.
273296
274297In order to enable viewing your keys by clicking a button in the API block:
275298
2762991. Set the value of `allowKeysExposure` to `true` in `config.yaml` file.
2773002. Restart the SillyTavern server.
301+3. Click the 'View hidden API keys' link at the bottom right of the API Connection Panel.
278302
279303## RemoteCommand-line connectionsarguments
280-
281-Most often this is for people who want to use SillyTavern on their mobile phones while their PC runs the ST server on the same wifi network.
282-
283-However, it can be used to allow remote connections from anywhere as well.
284-
285-**IMPORTANT: Refer to the official guide if you want to configure SillyTavern user accounts with (optional) password protection: [Users](https://docs.sillytavern.app/installation/st-1.12.0-migration-guide/#users).**
286-
287-### 1. Managing whitelisted IPs
288304
289305*You Createcan apass newcommand-line textarguments fileto insideSillyTavern yourserver SillyTavernstartup baseto installoverride foldersome calledsettings in `whitelistconfig.txtyaml`.
290-* Open the file in a text editor, and add a list of IPs you want to be allowed to connect.
291306
292-*Both individual IPs and wildcard IP ranges are accepted. Examples:*
307+### Examples
293308
294309```txtshell
295-192.168.0.1
310+node server.js --port 8000 --listen false
296-192.168.0.20
311+# or
297-```
312+npm run start -- --port 8000 --listen false
298-
313+# or (Windows only)
299-or
314+Start.bat --port 8000 --listen false
300-
301-```txt
302-192.168.0.*
303315```
304316
305-(the above wildcard IP range will allow any device on the local network to connect)
317+### Supported arguments
306318
307-CIDR masks are also accepted (eg. 10.0.0.0/24).
319+| Option | Description | Type |
308-
320+|-------------------------|------------------------------------------------------------------------------------------------------|----------|
309-* Save the `whitelist.txt` file.
321+| `--version` | Show version number | boolean |
310-* Restart your ST server.
322+| `--enableIPv6` | Enables IPv6. | boolean |
311-
323+| `--enableIPv4` | Enables IPv4. | boolean |
312-Now devices which have the IP specified in the file will be able to connect.
324+| `--port` | Sets the port under which SillyTavern will run. If not provided falls back to yaml config 'port'. | number |
313-
325+| `--dnsPreferIPv6` | Prefers IPv6 for dns. If not provided falls back to yaml config 'preferIPv6'. | boolean |
314-*Note: `config.yaml` also has a `whitelist` array, which you can use in the same way, but this array will be ignored if `whitelist.txt` exists.*
326+| `--autorun` | Automatically launch SillyTavern in the browser. If not provided falls back to yaml config 'autorun'.| boolean |
315-
327+| `--autorunHostname` | The autorun hostname, probably best left on 'auto'. | string |
316-### 2. Getting the IP for the ST host machine
328+| `--autorunPortOverride` | Overrides the port for autorun. | string |
317-
329+| `--listen` | SillyTavern is listening on all network interfaces. If not provided falls back to yaml config 'listen'.| boolean |
318-After the whitelist has been setup, you'll need the IP of the ST-hosting device.
330+| `--corsProxy` | Enables CORS proxy. If not provided falls back to yaml config 'enableCorsProxy'. | boolean |
319-
331+| `--disableCsrf` | Disables CSRF protection | boolean |
320-If the ST-hosting device is on the same wifi network, you will use the ST-host's internal wifi IP:
332+| `--ssl` | Enables SSL | boolean |
321-
333+| `--certPath` | Path to your certificate file. | string |
322-* For Windows: windows button > type `cmd.exe` in the search bar > type `ipconfig` in the console, hit Enter > look for `IPv4` listing.
334+| `--keyPath` | Path to your private key file. | string |
323-
335+| `--whitelist` | Enables whitelist mode | boolean |
324-If you (or someone else) want to connect to your hosted ST while not being on the same network, you will need the public IP of your ST-hosting device.
336+| `--dataRoot` | Root directory for data storage | string |
337+| `--avoidLocalhost` | Avoids using 'localhost' for autorun in auto mode. | boolean |
338+| `--basicAuthMode` | Enables basic authentication | boolean |
339+| `--requestProxyEnabled` | Enables a use of proxy for outgoing requests | boolean |
340+| `--requestProxyUrl` | Request proxy URL (HTTP or SOCKS protocols) | string |
341+| `--requestProxyBypass` | Request proxy bypass list (space separated list of hosts) | array |
325342
326-* While using the ST-hosting device, access [this page](https://whatismyipaddress.com/) and look for `IPv4`. This is what you would use to connect from the remote device.
343+## Remote connections
327-
328-### 3. Connect the remote device to the ST host machine
329-
330-Whatever IP you ended up with for your situation, you will put that IP address and port number into the remote device's web browser.
331-
332-A typical address for an ST host on the same wifi network would look like this:
333-
334-`http://192.168.0.5:8000`
335-
336-Use http:// NOT https://
337-
338-### Opening your ST to all IPs
339-
340-We do not recommend doing this, but you can open `config.yaml` and change `whitelistMode` to `false`.
341-
342-You must remove (or rename) `whitelist.txt` in the SillyTavern base install folder if it exists.
343-
344-This is usually an insecure practice, so we require you to set a username and password when you do this.
345-
346-The username and password are set in `config.yaml`.
347344
348-After restarting your ST server, any device will be able to connect to it, regardless of their IP as long as they know the username and password.
345+Most often this is for people who want to use SillyTavern on their mobile phones while their PC runs the ST server on the same Wi-Fi network. However, it can be used to allow remote connections from anywhere as well.
349346
350-### Still Unable To Connect?
347+Read the detailed guide on how to set up remote connections in the [Docs](https://docs.sillytavern.app/usage/remoteconnections/).
351348
352-* Create an inbound/outbound firewall rule for the port found in `config.yaml`. Do NOT mistake this for port-forwarding on your router, otherwise, someone could find your chat logs and that's a big no-no.
349+You may also want to configure SillyTavern user profiles with (optional) password protection: [Users](https://docs.sillytavern.app/installation/st-1.12.0-migration-guide/#users).
353-* Enable the Private Network profile type in Settings > Network and Internet > Ethernet. This is VERY important for Windows 11, otherwise, you would be unable to connect even with the aforementioned firewall rules.
354350
355351## Performance issues?
356352
357353Try1. enablingDisable the No Blur Effect (Fastand UI)enable modeReduced Motion on the User settingsSettings panel (UI Theme toggles category).
358-
354+2. If using response streaming, set the streaming FPS to a lower value (10-15 FPS is recommended).
359-## I like your project! How do I contribute?
355+3. Make sure the browser is enabled to use GPU acceleration for rendering.
360-
361-### DO's
362-
363-1. Send pull requests
364-2. Send feature suggestions and issue reports using established templates
365-3. Read the readme file and built-in documentation before asking anything
366-
367-### DONT's
368-
369-1. Offer monetary donations
370-2. Send bug reports without providing any context
371-3. Ask the questions that were already answered numerous times
372-
373-## Where can I find the old backgrounds?
374-
375-We're moving to a 100% original content only policy, so old background images have been removed from this repository.
376-
377-You can find them archived here:
378-
379-<https://files.catbox.moe/1xevnc.zip>
380-
381-
382-
383356
384357## License and credits
385358
@@ -388,32 +361,19 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
388361MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
389362GNU Affero General Public License for more details.**
390363
391-* TAI Base by Humi: MIT
364+* [TavernAI](https://github.com/TavernAI/TavernAI) 1.2.8 by Humi: MIT License
392-* Cohee's modifications and derived code: AGPL v3
365+* Portions of CncAnon's TavernAITurbo mod used with permission
393-* RossAscends' additions: AGPL v3
366+* Visual Novel Mode inspired by the work of PepperTaco (<https://github.com/peppertaco/Tavern/>)
394-* Portions of CncAnon's TavernAITurbo mod: Unknown license
395-* kingbri's various commits and suggestions (<https://github.com/bdashore3>)
396-* city_unit's extensions and various QoL features (<https://github.com/city-unit>)
397-* StefanDanielSchwarz's various commits and bug reports (<https://github.com/StefanDanielSchwarz>)
398-* Waifu mode inspired by the work of PepperTaco (<https://github.com/peppertaco/Tavern/>)
399-* Thanks Pygmalion University for being awesome testers and suggesting cool features!
400-* Thanks oobabooga for compiling presets for TextGen
401-* KoboldAI Presets from KAI Lite: <https://lite.koboldai.net/>
402367* Noto Sans font by Google (OFL license)
403368* Icon theme by Font Awesome <https://fontawesome.com> (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
404-* AI Horde client library by ZeldaFan0225: <https://github.com/ZeldaFan0225/ai_horde>
369+* Default content by @OtisAlejandro (Seraphina character and lorebook) and @kallmeflocc (10K Discord Users Celebratory Background)
405-* Linux startup script by AlpinDale
406-* Thanks paniphons for providing a FAQ document
407-* 10K Discord Users Celebratory Background by @kallmeflocc
408-* Default content (characters and lore books) provided by @OtisAlejandro, @RossAscends and @kallmeflocc
409-* Korean translation by @doloroushyeonse
410-* k_euler_a support for Horde by <https://github.com/Teashrock>
411-* Chinese translation by [@XXpE3](https://github.com/XXpE3), 中文 ISSUES 可以联系 @XXpE3
412370* Docker guide by [@mrguymiah](https://github.com/mrguymiah) and [@Bronya-Rand](https://github.com/Bronya-Rand)
413371
372+## Top Contributors
373+
374+[![Contributors](https://contrib.rocks/image?repo=SillyTavern/SillyTavern)](https://github.com/SillyTavern/SillyTavern/graphs/contributors)
375+
414376<!-- LINK GROUP -->
415-[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
377+[cover]: https://github.com/user-attachments/assets/01a6ae9a-16aa-45f2-8bff-32b5dc587e44
416-[cover]: https://github.com/SillyTavern/SillyTavern/assets/18619528/c2be4c3f-aada-4f64-87a3-ae35a68b61a4
417378[discord-link]: https://discord.gg/sillytavern
418-[discord-shield]: https://img.shields.io/discord/1100685673633153084?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=flat-square
419379[discord-shield-badge]: https://img.shields.io/discord/1100685673633153084?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
Dockerfile+1 -1
@@ -1,4 +1,4 @@
11FROM node:lts-alpine3.1819
22
33# Arguments
44ARG APP_HOME=/home/node/app
default/config.yaml+21 -1
@@ -37,6 +37,16 @@ basicAuthUser:
3737 password: "password"
3838# Enables CORS proxy middleware
3939enableCorsProxy: false
40+# -- REQUEST PROXY CONFIGURATION --
41+requestProxy:
42+ # If a proxy is enabled, all outgoing HTTP/HTTPS requests will be routed through it.
43+ enabled: false
44+ # Proxy URL. Possible protocols: http, https, socks, socks5, socks4, pac
45+ url: "socks5://username:password@example.com:1080"
46+ # Proxy bypass list. Requests to these hosts won't be routed through the proxy.
47+ bypass:
48+ - localhost
49+ - 127.0.0.1
4050# Enable multi-user mode
4151enableUserAccounts: false
4252# Enable discreet login mode: hides user list on the login screen
@@ -73,6 +83,8 @@ skipContentCheck: false
7383disableChatBackup: false
7484# Number of backups to keep for each chat and settings file
7585numberOfBackups: 50
86+# Interval in milliseconds to throttle chat backups per user
87+chatBackupThrottleInterval: 10000
7688# Allowed hosts for card downloads
7789whitelistImportDomains:
7890 - localhost
@@ -90,9 +102,17 @@ whitelistImportDomains:
90102## headers:
91103## User-Agent: "Googlebot/2.1 (+http://www.google.com/bot.html)"
92104requestOverrides: []
93105# -- PLUGINEXTENSIONS CONFIGURATION --
94106# Enable UI extensions
95107enableExtensions: true
108+# Automatically update extensions when a release version changes
109+enableExtensionsAutoUpdate: true
110+# Additional model tokenizers can be downloaded on demand.
111+# Disabling will fallback to another locally available tokenizer.
112+enableDownloadableTokenizers: true
113+# Vector storage settings
114+vectors:
115+ enableModelScopes: false
96116# Extension settings
97117extras:
98118 # Disables automatic model download from HuggingFace
default/content/index.json+92 -16
@@ -320,6 +320,26 @@
320320 "type": "novel_preset"
321321 },
322322 {
323+ "filename": "presets/novel/Erato-Dragonfruit.json",
324+ "type": "novel_preset"
325+ },
326+ {
327+ "filename": "presets/novel/Erato-Golden Arrow.json",
328+ "type": "novel_preset"
329+ },
330+ {
331+ "filename": "presets/novel/Erato-Shosetsu.json",
332+ "type": "novel_preset"
333+ },
334+ {
335+ "filename": "presets/novel/Erato-Wilder.json",
336+ "type": "novel_preset"
337+ },
338+ {
339+ "filename": "presets/novel/Erato-Zany Scribe.json",
340+ "type": "novel_preset"
341+ },
342+ {
323343 "filename": "presets/textgen/Asterism.json",
324344 "type": "textgen_preset"
325345 },
@@ -468,10 +488,6 @@
468488 "type": "context"
469489 },
470490 {
471- "filename": "presets/context/Alpaca-Roleplay.json",
472- "type": "context"
473- },
474- {
475491 "filename": "presets/context/Alpaca-Single-Turn.json",
476492 "type": "context"
477493 },
@@ -512,10 +528,6 @@
512528 "type": "context"
513529 },
514530 {
515- "filename": "presets/context/Mistral.json",
516- "type": "context"
517- },
518- {
519531 "filename": "presets/context/NovelAI.json",
520532 "type": "context"
521533 },
@@ -556,10 +568,6 @@
556568 "type": "instruct"
557569 },
558570 {
559- "filename": "presets/instruct/Alpaca-Roleplay.json",
560- "type": "instruct"
561- },
562- {
563571 "filename": "presets/instruct/Alpaca-Single-Turn.json",
564572 "type": "instruct"
565573 },
@@ -600,10 +608,6 @@
600608 "type": "instruct"
601609 },
602610 {
603- "filename": "presets/instruct/Mistral.json",
604- "type": "instruct"
605- },
606- {
607611 "filename": "presets/instruct/OpenOrca-OpenChat.json",
608612 "type": "instruct"
609613 },
@@ -686,5 +690,77 @@
686690 {
687691 "filename": "presets/instruct/Gemma 2.json",
688692 "type": "instruct"
693+ },
694+ {
695+ "filename": "presets/sysprompt/Actor.json",
696+ "type": "sysprompt"
697+ },
698+ {
699+ "filename": "presets/sysprompt/Assistant - Expert.json",
700+ "type": "sysprompt"
701+ },
702+ {
703+ "filename": "presets/sysprompt/Assistant - Simple.json",
704+ "type": "sysprompt"
705+ },
706+ {
707+ "filename": "presets/sysprompt/Chain of Thought.json",
708+ "type": "sysprompt"
709+ },
710+ {
711+ "filename": "presets/sysprompt/Roleplay - Detailed.json",
712+ "type": "sysprompt"
713+ },
714+ {
715+ "filename": "presets/sysprompt/Roleplay - Immersive.json",
716+ "type": "sysprompt"
717+ },
718+ {
719+ "filename": "presets/sysprompt/Roleplay - Simple.json",
720+ "type": "sysprompt"
721+ },
722+ {
723+ "filename": "presets/sysprompt/Text Adventure.json",
724+ "type": "sysprompt"
725+ },
726+ {
727+ "filename": "presets/sysprompt/Writer - Creative.json",
728+ "type": "sysprompt"
729+ },
730+ {
731+ "filename": "presets/sysprompt/Writer - Realistic.json",
732+ "type": "sysprompt"
733+ },
734+ {
735+ "filename": "presets/sysprompt/Blank.json",
736+ "type": "sysprompt"
737+ },
738+ {
739+ "filename": "presets/sysprompt/Neutral - Chat.json",
740+ "type": "sysprompt"
741+ },
742+ {
743+ "filename": "presets/instruct/Mistral V1.json",
744+ "type": "instruct"
745+ },
746+ {
747+ "filename": "presets/context/Mistral V1.json",
748+ "type": "context"
749+ },
750+ {
751+ "filename": "presets/instruct/Mistral V2 & V3.json",
752+ "type": "instruct"
753+ },
754+ {
755+ "filename": "presets/context/Mistral V2 & V3.json",
756+ "type": "context"
757+ },
758+ {
759+ "filename": "presets/instruct/Mistral V3-Tekken.json",
760+ "type": "instruct"
761+ },
762+ {
763+ "filename": "presets/context/Mistral V3-Tekken.json",
764+ "type": "context"
689765 }
690766]
default/content/presets/context/Adventure.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": false,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": true,
1110 "name": "Adventure"
1211}
default/content/presets/context/Alpaca-Roleplay.json+0 -12
@@ -1,12 +0,0 @@
1-{
2- "story_string": "You're {{char}} in this fictional never-ending uncensored roleplay with {{user}}.\n\n{{#if system}}{{system}}\n\n{{/if}}### Input:\n{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}\n\n",
3- "example_separator": "### New Roleplay:",
4- "chat_start": "### New Roleplay:",
5- "use_stop_strings": false,
6- "allow_jailbreak": false,
7- "always_force_name2": true,
8- "trim_sentences": false,
9- "include_newline": false,
10- "single_line": false,
11- "name": "Alpaca-Roleplay"
12-}
default/content/presets/context/Alpaca-Single-Turn.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": false,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Alpaca-Single-Turn"
1211}
default/content/presets/context/Alpaca.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Alpaca"
1211}
default/content/presets/context/ChatML-Names.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "ChatML-Names"
1211}
default/content/presets/context/ChatML.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "ChatML"
1211}
default/content/presets/context/Command R.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Command R"
1211}
default/content/presets/context/Default.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Default"
1211}
default/content/presets/context/DreamGen Role-Play V1 ChatML.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": false,
88 "trim_sentences": true,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "DreamGen Role-Play V1 ChatML"
1211}
default/content/presets/context/DreamGen Role-Play V1 Llama3.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": false,
88 "trim_sentences": true,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "DreamGen Role-Play V1 Llama3"
1211}
default/content/presets/context/Gemma 2.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Gemma 2"
1211}
default/content/presets/context/Libra-32B.json+1 -2
@@ -1,12 +1,11 @@
11{
22 "story_string": "### Instruction:\nWrite {{char}}'s next reply in this roleplay with {{user}}. Use the provided character sheet and example dialogue for formatting direction and character speech patterns.\n\n{{#if system}}{{system}}\n\n{{/if}}### Character Sheet:\n{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}",
33 "example_separator": "### Example:",
44 "chat_start": "### START ROLEPLAY:",
55 "use_stop_strings": false,
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Libra-32B"
1211}
default/content/presets/context/Lightning 1.1.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Lightning 1.1"
1211}
default/content/presets/context/Llama 2 Chat.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Llama 2 Chat"
1211}
default/content/presets/context/Llama 3 Instruct.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Llama 3 Instruct"
1211}
default/content/presets/context/Llama-3-Instruct-Names.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Llama-3-Instruct-Names"
1211}
default/content/presets/context/Minimalist.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Minimalist"
1211}
default/content/presets/context/Mistral V1.json+11 -0
@@ -0,0 +1,11 @@
1+{
2+ "story_string": " [INST] {{#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}}{{trim}} [/INST] Understood.</s>",
3+ "example_separator": "",
4+ "chat_start": "",
5+ "use_stop_strings": false,
6+ "allow_jailbreak": false,
7+ "always_force_name2": true,
8+ "trim_sentences": false,
9+ "single_line": false,
10+ "name": "Mistral V1"
11+}
default/content/presets/context/Mistral.json → default/content/presets/context/Mistral V2 & V3.json+3 -4
@@ -1,12 +1,11 @@
11{
22 "story_string": "[INST] {{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}} [/INST] Understood.</s>",
33 "example_separator": "Examples:",
44 "chat_start": "",
55 "use_stop_strings": false,
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Mistral V2 & V3"
1211}
default/content/presets/context/Mistral V3-Tekken.json+11 -0
@@ -0,0 +1,11 @@
1+{
2+ "story_string": "[INST]{{#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}}{{trim}}[/INST]Understood.</s>",
3+ "example_separator": "",
4+ "chat_start": "",
5+ "use_stop_strings": false,
6+ "allow_jailbreak": false,
7+ "always_force_name2": true,
8+ "trim_sentences": false,
9+ "single_line": false,
10+ "name": "Mistral V3-Tekken"
11+}
default/content/presets/context/NovelAI.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "NovelAI"
1211}
default/content/presets/context/OldDefault.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "OldDefault"
1211}
default/content/presets/context/Phi.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Phi"
1211}
default/content/presets/context/Pygmalion.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Pygmalion"
1211}
default/content/presets/context/Story.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Story"
1211}
default/content/presets/context/Synthia.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "Synthia"
1211}
default/content/presets/context/simple-proxy-for-tavern.json+0 -1
@@ -6,7 +6,6 @@
66 "allow_jailbreak": false,
77 "always_force_name2": true,
88 "trim_sentences": false,
9- "include_newline": false,
109 "single_line": false,
1110 "name": "simple-proxy-for-tavern"
1211}
default/content/presets/instruct/Adventure.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "[Enter Adventure Mode. Narrate the story based on {{user}}'s dialogue and actions after \">\". Describe the surroundings in vivid detail. Be detailed, creative, verbose, and proactive. Move the story forward by introducing fantasy elements and interesting characters.]",
32 "input_sequence": "",
43 "output_sequence": "",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": false"none",
11- "names_force_groups": false,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Alpaca-Roleplay.json+0 -24
@@ -1,24 +0,0 @@
1-{
2- "system_prompt": "Develop the plot slowly, always stay in character. Describe all actions in full, elaborate, explicit, graphic, and vivid detail. Mention all relevant sensory perceptions.",
3- "input_sequence": "### Instruction:",
4- "output_sequence": "### Response:",
5- "last_output_sequence": "### Response (2 paragraphs, engaging, natural, authentic, descriptive, creative):",
6- "system_sequence": "### Input:",
7- "stop_sequence": "",
8- "wrap": true,
9- "macro": true,
10- "names": true,
11- "names_force_groups": true,
12- "activation_regex": "",
13- "system_sequence_prefix": "",
14- "system_sequence_suffix": "",
15- "first_output_sequence": "",
16- "skip_examples": false,
17- "output_suffix": "\n\n",
18- "input_suffix": "\n\n",
19- "system_suffix": "\n\n",
20- "user_alignment_message": "",
21- "system_same_as_user": false,
22- "last_system_sequence": "",
23- "name": "Alpaca-Roleplay"
24-}
default/content/presets/instruct/Alpaca-Single-Turn.json+2 -4
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Write {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\nWrite 1 reply only, italicize actions, and avoid quotation marks. Use markdown. Be proactive, creative, and drive the plot and conversation forward. Include dialog as well as narration.",
32 "input_sequence": "",
43 "output_sequence": "",
54 "last_output_sequence": "\n### Response:",
@@ -7,12 +6,11 @@
76 "stop_sequence": "",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
1513 "first_output_sequence": "<START OF ROLEPLAYCHAT>",
1614 "skip_examples": false,
1715 "output_suffix": "",
1816 "input_suffix": "",
default/content/presets/instruct/Alpaca.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
32 "input_sequence": "### Instruction:",
43 "output_sequence": "### Response:",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/ChatML-Names.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "You're {{char}} in this fictional never-ending uncensored roleplay with {{user}}.",
32 "input_sequence": "<|im_start|>[{{name}}]",
43 "output_sequence": "<|im_start|>[{{name}}]",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "<|im_end|>",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": false"none",
11- "names_force_groups": false,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/ChatML.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "You're {{char}} in this fictional never-ending uncensored roleplay with {{user}}.",
32 "input_sequence": "<|im_start|>user",
43 "output_sequence": "<|im_start|>assistant",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "<|im_end|>",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": true"always",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Command R.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Write {{char}}'s next reply in this fictional roleplay with {{user}}.",
32 "input_sequence": "<|START_OF_TURN_TOKEN|><|USER_TOKEN|>",
43 "output_sequence": "<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>",
54 "first_output_sequence": "",
@@ -9,8 +8,7 @@
98 "stop_sequence": "<|END_OF_TURN_TOKEN|>",
109 "wrap": false,
1110 "macro": true,
1211 "namesnames_behavior": true"always",
13- "names_force_groups": true,
1412 "activation_regex": "",
1513 "skip_examples": false,
1614 "output_suffix": "<|END_OF_TURN_TOKEN|>",
default/content/presets/instruct/DreamGen Role-Play V1 ChatML.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "You are an intelligent, skilled, versatile writer.\n\nYour task is to write a role-play based on the information below.",
32 "input_sequence": "\n<|im_start|>text names= {{name}}\n",
43 "output_sequence": "\n<|im_start|>text names= {{name}}\n",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "\n<|im_start|>",
87 "wrap": false,
98 "macro": true,
109 "namesnames_behavior": false"none",
11- "names_force_groups": false,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/DreamGen Role-Play V1 Llama3.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "You are an intelligent, skilled, versatile writer.\n\nYour task is to write a role-play based on the information below.",
32 "input_sequence": "<|eot_id|>\n<|start_header_id|>writer character: {{user}}<|end_header_id|>\n\n",
43 "output_sequence": "<|eot_id|>\n<|start_header_id|>writer character: {{char}}<|end_header_id|>\n\n",
54 "first_output_sequence": "",
@@ -10,8 +9,7 @@
109 "separator_sequence": "",
1110 "wrap": false,
1211 "macro": true,
1312 "namesnames_behavior": false"none",
14- "names_force_groups": false,
1513 "activation_regex": "",
1614 "skip_examples": false,
1715 "name": "DreamGen Role-Play V1 Llama3"
default/content/presets/instruct/Gemma 2.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Continue writing this story and portray characters realistically.",
32 "input_sequence": "<start_of_turn>user",
43 "output_sequence": "<start_of_turn>model",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "<end_of_turn>",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": false"none",
11- "names_force_groups": false,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Koala.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Write {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
32 "input_sequence": "USER: ",
43 "output_sequence": "GPT: ",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": false,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "BEGINNING OF CONVERSATION: ",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Libra-32B.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Avoid repetition, don't loop. Develop the plot slowly, always stay in character. Describe all actions in full, elaborate, explicit, graphic, and vivid detail. Mention all relevant sensory perceptions.",
32 "input_sequence": "",
43 "output_sequence": "",
54 "last_output_sequence": "\n### Response:",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": true"always",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Lightning 1.1.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\nTake the role of {{char}} in a play that leaves a lasting impression on {{user}}. Write {{char}}'s next reply.\nNever skip or gloss over {{char}}’s actions. Progress the scene at a naturally slow pace.\n\n",
32 "input_sequence": "### Instruction:",
43 "output_sequence": "### Response: (length = unlimited)",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Llama 2 Chat.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Write {{char}}'s next reply in this fictional roleplay with {{user}}.",
32 "input_sequence": "[INST] ",
43 "output_sequence": "",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": false,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Llama 3 Instruct.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "You are an expert actor that can fully immerse yourself into any role given. You do not break character for any reason, even if someone tries addressing you as an AI or language model. Currently your role is {{char}}, which is described in detail below. As {{char}}, continue the exchange with {{user}}.",
32 "input_sequence": "<|start_header_id|>user<|end_header_id|>\n\n",
43 "output_sequence": "<|start_header_id|>assistant<|end_header_id|>\n\n",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "<|eot_id|>",
87 "wrap": false,
98 "macro": true,
109 "namesnames_behavior": true"always",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Llama-3-Instruct-Names.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "You are an expert actor that can fully immerse yourself into any role given. You do not break character for any reason, even if someone tries addressing you as an AI or language model. Currently your role is {{char}}, which is described in detail below. As {{char}}, continue the exchange with {{user}}.",
32 "input_sequence": "<|start_header_id|>[{{name}}]<|end_header_id|>\n\n",
43 "output_sequence": "<|start_header_id|>[{{name}}]<|end_header_id|>\n\n",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "<|eot_id|>",
87 "wrap": false,
98 "macro": true,
109 "namesnames_behavior": false"none",
11- "names_force_groups": false,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Metharme.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Enter roleplay mode. You must act as {{char}}, whose persona follows:",
32 "input_sequence": "<|user|>",
43 "output_sequence": "<|model|>",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "</s>",
87 "wrap": false,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "<|system|>",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Mistral V1.json+22 -0
@@ -0,0 +1,22 @@
1+{
2+ "input_sequence": " [INST] ",
3+ "output_sequence": " [/INST] ",
4+ "last_output_sequence": " [/INST]",
5+ "system_sequence": "",
6+ "stop_sequence": "",
7+ "wrap": false,
8+ "macro": true,
9+ "names_behavior": "always",
10+ "activation_regex": "",
11+ "system_sequence_prefix": "",
12+ "system_sequence_suffix": "",
13+ "first_output_sequence": "",
14+ "skip_examples": false,
15+ "output_suffix": "</s>",
16+ "input_suffix": "",
17+ "system_suffix": "",
18+ "user_alignment_message": "Let's get started. Please respond based on the information and instructions provided above.",
19+ "system_same_as_user": true,
20+ "last_system_sequence": "",
21+ "name": "Mistral V1"
22+}
default/content/presets/instruct/Mistral.json → default/content/presets/instruct/Mistral V2 & V3.json+6 -8
@@ -1,24 +1,22 @@
11{
2- "system_prompt": "Write {{char}}'s next reply in this fictional roleplay with {{user}}.",
32 "input_sequence": "[INST] ",
43 "output_sequence": "[/INST] ",
54 "last_output_sequence": "[/INST]",
65 "system_sequence": "",
76 "stop_sequence": "",
87 "wrap": false,
98 "macro": true,
109 "namesnames_behavior": true"always",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
1513 "first_output_sequence": "",
1614 "skip_examples": false,
1715 "output_suffix": "\n</s>",
1816 "input_suffix": " [/INST]\n",
1917 "system_suffix": "",
2018 "user_alignment_message": "Let's get started. Please respond based on the information and instructions provided above.",
2119 "system_same_as_user": true,
2220 "last_system_sequence": "",
2321 "name": "Mistral V2 & V3"
2422}
default/content/presets/instruct/Mistral V3-Tekken.json+22 -0
@@ -0,0 +1,22 @@
1+{
2+ "input_sequence": "[INST]",
3+ "output_sequence": "[/INST]",
4+ "last_output_sequence": "",
5+ "system_sequence": "",
6+ "stop_sequence": "",
7+ "wrap": false,
8+ "macro": true,
9+ "names_behavior": "always",
10+ "activation_regex": "",
11+ "system_sequence_prefix": "",
12+ "system_sequence_suffix": "",
13+ "first_output_sequence": "",
14+ "skip_examples": false,
15+ "output_suffix": "</s>",
16+ "input_suffix": "",
17+ "system_suffix": "",
18+ "user_alignment_message": "Let's get started. Please respond based on the information and instructions provided above.",
19+ "system_same_as_user": true,
20+ "last_system_sequence": "",
21+ "name": "Mistral V3-Tekken"
22+}
default/content/presets/instruct/OpenOrca-OpenChat.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "You are a helpful assistant. Please answer truthfully and write out your thinking step by step to be sure you get the right answer. If you make a mistake or encounter an error in your thinking, say so out loud and attempt to correct it. If you don't know or aren't sure about something, say so clearly. You will act as a professional logician, mathematician, and physicist. You will also act as the most appropriate type of expert to answer any particular question or solve the relevant problem; state which expert type your are, if so. Also think of any particular named expert that would be ideal to answer the relevant question or solve the relevant problem; name and act as them, if appropriate.\n",
32 "input_sequence": "\nUser: ",
43 "output_sequence": "\nAssistant: ",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": false,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Phi.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Write {{char}}'s next reply in this fictional roleplay with {{user}}.",
32 "input_sequence": "<|user|>\n",
43 "output_sequence": "<|assistant|>\n",
54 "first_output_sequence": "",
@@ -9,8 +8,7 @@
98 "stop_sequence": "<|end|>",
109 "wrap": false,
1110 "macro": true,
1211 "namesnames_behavior": true"always",
13- "names_force_groups": true,
1412 "activation_regex": "",
1513 "skip_examples": false,
1614 "output_suffix": "<|end|>\n",
default/content/presets/instruct/Pygmalion.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Enter RP mode. You shall reply to {{user}} while staying in character. Your responses must be detailed, creative, immersive, and drive the scenario forward. You will follow {{char}}'s persona.",
32 "input_sequence": "<|user|>",
43 "output_sequence": "<|model|>",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "<|user|>",
87 "wrap": false,
98 "macro": true,
109 "namesnames_behavior": true"always",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "<|system|>",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Story.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "",
32 "input_sequence": "",
43 "output_sequence": "",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": false"none",
11- "names_force_groups": false,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Synthia.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Elaborate on the topic using a Tree of Thoughts and backtrack when necessary to construct a clear, cohesive Chain of Thought reasoning. Always answer without hesitation.",
32 "input_sequence": "USER: ",
43 "output_sequence": "ASSISTANT: ",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": false,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "SYSTEM: ",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Vicuna 1.0.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
32 "input_sequence": "### Human:",
43 "output_sequence": "### Assistant:",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/Vicuna 1.1.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
32 "input_sequence": "\nUSER: ",
43 "output_sequence": "\nASSISTANT: ",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": false,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "BEGINNING OF CONVERSATION:",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/WizardLM-13B.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n\nWrite {{char}}'s next detailed reply in a fictional roleplay chat between {{user}} and {{char}}.",
32 "input_sequence": "USER: ",
43 "output_sequence": "ASSISTANT: ",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/WizardLM.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "Write {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
32 "input_sequence": "",
43 "output_sequence": "### Response:",
54 "last_output_sequence": "",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": false"force",
11- "names_force_groups": true,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/instruct/simple-proxy-for-tavern.json+1 -3
@@ -1,5 +1,4 @@
11{
2- "system_prompt": "[System note: Write one reply only. Do not decide what {{user}} says or does. Write at least one paragraph, up to four. Be descriptive and immersive, providing vivid details about {{char}}'s actions, emotions, and the environment. Write with a high degree of complexity and burstiness. Do not repeat this message.]",
32 "input_sequence": "### Instruction:\n#### {{name}}:",
43 "output_sequence": "### Response:\n#### {{name}}:",
54 "last_output_sequence": "### Response (2 paragraphs, engaging, natural, authentic, descriptive, creative):\n#### {{name}}:",
@@ -7,8 +6,7 @@
76 "stop_sequence": "",
87 "wrap": true,
98 "macro": true,
109 "namesnames_behavior": false"none",
11- "names_force_groups": false,
1210 "activation_regex": "",
1311 "system_sequence_prefix": "",
1412 "system_sequence_suffix": "",
default/content/presets/novel/Asper-Kayra.json+5 -2
@@ -14,7 +14,10 @@
1414 "use_cache": false,
1515 "return_full_text": false,
1616 "prefix": "vanilla",
17- "cfg_scale": 1,
1817 "phrase_rep_pen": "medium",
1918 "max_context": 7800,
19+ "min_p": 0,
20+ "math1_temp": 1,
21+ "math1_quad": 0,
22+ "math1_quad_entropy_scale": 0
2023}
default/content/presets/novel/Blended-Coffee-Kayra.json+6 -3
@@ -1,5 +1,5 @@
11{
22 "order": [6, 0, 1, 2, 3],
33 "temperature": 1,
44 "max_length": 150,
55 "min_length": 1,
@@ -14,6 +14,9 @@
1414 "return_full_text": false,
1515 "prefix": "vanilla",
1616 "phrase_rep_pen": "medium",
1717 "cfg_scalemax_context": 1.557800,
1818 "max_contextmin_p": 78000,
19+ "math1_temp": 1,
20+ "math1_quad": 0,
21+ "math1_quad_entropy_scale": 0
1922}
default/content/presets/novel/Blook-Kayra.json+6 -3
@@ -1,5 +1,5 @@
11{
22 "order": [6, 2, 3, 1, 0],
33 "temperature": 1,
44 "max_length": 150,
55 "min_length": 1,
@@ -15,6 +15,9 @@
1515 "return_full_text": false,
1616 "prefix": "vanilla",
1717 "phrase_rep_pen": "very_aggressive",
1818 "cfg_scalemax_context": 1.37800,
1919 "max_contextmin_p": 78000,
20+ "math1_temp": 1,
21+ "math1_quad": 0,
22+ "math1_quad_entropy_scale": 0
2023}
default/content/presets/novel/Carefree-Kayra.json+5 -2
@@ -15,7 +15,10 @@
1515 "use_cache": false,
1616 "return_full_text": false,
1717 "prefix": "vanilla",
18- "cfg_scale": 1,
1918 "phrase_rep_pen": "aggressive",
2019 "max_context": 7800,
20+ "min_p": 0,
21+ "math1_temp": 1,
22+ "math1_quad": 0,
23+ "math1_quad_entropy_scale": 0
2124}
default/content/presets/novel/CosmicCube-Kayra.json+6 -3
@@ -1,5 +1,5 @@
11{
22 "order": [8, 6, 5, 0, 3],
33 "temperature": 0.9,
44 "max_length": 150,
55 "min_length": 1,
@@ -15,6 +15,9 @@
1515 "return_full_text": false,
1616 "prefix": "vanilla",
1717 "phrase_rep_pen": "off",
1818 "cfg_scalemax_context": 1.487800,
1919 "max_contextmin_p": 78000,
20+ "math1_temp": 1,
21+ "math1_quad": 0,
22+ "math1_quad_entropy_scale": 0
2023}
default/content/presets/novel/Edgewise-Clio.json+5 -2
@@ -15,7 +15,10 @@
1515 "use_cache": false,
1616 "return_full_text": false,
1717 "prefix": "vanilla",
18- "cfg_scale": 1,
1918 "phrase_rep_pen": "very_light",
2019 "max_context": 7800,
20+ "min_p": 0,
21+ "math1_temp": 1,
22+ "math1_quad": 0,
23+ "math1_quad_entropy_scale": 0
2124}
default/content/presets/novel/Erato-Dragonfruit.json+31 -0
@@ -0,0 +1,31 @@
1+{
2+ "max_context": 8000,
3+ "temperature": 1.37,
4+ "max_length": 150,
5+ "min_length": 1,
6+ "top_k": 0,
7+ "top_p": 1,
8+ "top_a": 0.1,
9+ "typical_p": 0.875,
10+ "tail_free_sampling": 0.87,
11+ "repetition_penalty": 3.25,
12+ "repetition_penalty_range": 6000,
13+ "repetition_penalty_slope": 3.25,
14+ "repetition_penalty_frequency": 0,
15+ "repetition_penalty_presence": 0,
16+ "phrase_rep_pen": "off",
17+ "mirostat_lr": 0.2,
18+ "mirostat_tau": 4,
19+ "math1_temp": 0.9,
20+ "math1_quad": 0.07,
21+ "math1_quad_entropy_scale": -0.05,
22+ "min_p": 0.035,
23+ "order": [
24+ 0,
25+ 5,
26+ 9,
27+ 10,
28+ 8,
29+ 4
30+ ]
31+}
default/content/presets/novel/Erato-Golden Arrow.json+27 -0
@@ -0,0 +1,27 @@
1+{
2+ "max_context": 8000,
3+ "temperature": 1,
4+ "max_length": 150,
5+ "min_length": 1,
6+ "top_k": 0,
7+ "top_p": 0.995,
8+ "top_a": 1,
9+ "typical_p": 1,
10+ "tail_free_sampling": 0.87,
11+ "repetition_penalty": 1.5,
12+ "repetition_penalty_range": 2240,
13+ "repetition_penalty_slope": 1,
14+ "repetition_penalty_frequency": 0,
15+ "repetition_penalty_presence": 0,
16+ "phrase_rep_pen": "light",
17+ "mirostat_lr": 1,
18+ "mirostat_tau": 0,
19+ "math1_temp": 0.3,
20+ "math1_quad": 0.19,
21+ "math1_quad_entropy_scale": 0,
22+ "min_p": 0,
23+ "order": [
24+ 9,
25+ 2
26+ ]
27+}
default/content/presets/novel/Erato-Shosetsu.json+27 -0
@@ -0,0 +1,27 @@
1+{
2+ "max_context": 8000,
3+ "temperature": 1,
4+ "max_length": 150,
5+ "min_length": 1,
6+ "top_k": 50,
7+ "top_p": 0.85,
8+ "top_a": 1,
9+ "typical_p": 1,
10+ "tail_free_sampling": 0.895,
11+ "repetition_penalty": 1.63,
12+ "repetition_penalty_range": 1024,
13+ "repetition_penalty_slope": 3.33,
14+ "repetition_penalty_frequency": 0.0035,
15+ "repetition_penalty_presence": 0,
16+ "phrase_rep_pen": "medium",
17+ "mirostat_lr": 1,
18+ "mirostat_tau": 0,
19+ "math1_temp": 0.3,
20+ "math1_quad": 0.0645,
21+ "math1_quad_entropy_scale": 0.05,
22+ "min_p": 0.05,
23+ "order": [
24+ 9,
25+ 10
26+ ]
27+}
default/content/presets/novel/Erato-Wilder.json+27 -0
@@ -0,0 +1,27 @@
1+{
2+ "max_context": 8000,
3+ "temperature": 1,
4+ "max_length": 150,
5+ "min_length": 1,
6+ "top_k": 300,
7+ "top_p": 0.98,
8+ "top_a": 0.004,
9+ "typical_p": 0.96,
10+ "tail_free_sampling": 0.96,
11+ "repetition_penalty": 1.48,
12+ "repetition_penalty_range": 2240,
13+ "repetition_penalty_slope": 0.64,
14+ "repetition_penalty_frequency": 0,
15+ "repetition_penalty_presence": 0,
16+ "phrase_rep_pen": "medium",
17+ "mirostat_lr": 1,
18+ "mirostat_tau": 0,
19+ "math1_temp": -0.0485,
20+ "math1_quad": 0.145,
21+ "math1_quad_entropy_scale": 0,
22+ "min_p": 0.02,
23+ "order": [
24+ 9,
25+ 10
26+ ]
27+}
default/content/presets/novel/Erato-Zany Scribe.json+27 -0
@@ -0,0 +1,27 @@
1+{
2+ "max_context": 8000,
3+ "temperature": 1,
4+ "max_length": 150,
5+ "min_length": 1,
6+ "top_k": 0,
7+ "top_p": 0.99,
8+ "top_a": 1,
9+ "typical_p": 1,
10+ "tail_free_sampling": 0.99,
11+ "repetition_penalty": 1,
12+ "repetition_penalty_range": 64,
13+ "repetition_penalty_slope": 1,
14+ "repetition_penalty_frequency": 0.75,
15+ "repetition_penalty_presence": 1.5,
16+ "phrase_rep_pen": "medium",
17+ "mirostat_lr": 1,
18+ "mirostat_tau": 1,
19+ "math1_temp": -0.4,
20+ "math1_quad": 0.6,
21+ "math1_quad_entropy_scale": -0.1,
22+ "min_p": 0.08,
23+ "order": [
24+ 9,
25+ 2
26+ ]
27+}
default/content/presets/novel/Fresh-Coffee-Clio.json+5 -2
@@ -16,7 +16,10 @@
1616 "use_cache": false,
1717 "return_full_text": false,
1818 "prefix": "vanilla",
19- "cfg_scale": 1,
2019 "phrase_rep_pen": "very_light",
2120 "max_context": 7800,
21+ "min_p": 0,
22+ "math1_temp": 1,
23+ "math1_quad": 0,
24+ "math1_quad_entropy_scale": 0
2225}
default/content/presets/novel/Fresh-Coffee-Kayra.json+5 -2
@@ -14,7 +14,10 @@
1414 "use_cache": false,
1515 "return_full_text": false,
1616 "prefix": "vanilla",
17- "cfg_scale": 1,
1817 "phrase_rep_pen": "off",
1918 "max_context": 7800,
19+ "min_p": 0,
20+ "math1_temp": 1,
21+ "math1_quad": 0,
22+ "math1_quad_entropy_scale": 0
2023}
default/content/presets/novel/Green-Active-Writer-Kayra.json+6 -3
@@ -1,5 +1,5 @@
11{
22 "order": [6, 0, 8, 5, 3],
33 "temperature": 1.5,
44 "max_length": 150,
55 "min_length": 1,
@@ -15,6 +15,9 @@
1515 "return_full_text": false,
1616 "prefix": "vanilla",
1717 "phrase_rep_pen": "very_aggressive",
1818 "cfg_scalemax_context": 1.47800,
1919 "max_contextmin_p": 78000,
20+ "math1_temp": 1,
21+ "math1_quad": 0,
22+ "math1_quad_entropy_scale": 0
2023}
default/content/presets/novel/Keelback-Clio.json+5 -2
@@ -16,7 +16,10 @@
1616 "use_cache": false,
1717 "return_full_text": false,
1818 "prefix": "vanilla",
19- "cfg_scale": 1,
2019 "phrase_rep_pen": "very_light",
2120 "max_context": 7800,
21+ "min_p": 0,
22+ "math1_temp": 1,
23+ "math1_quad": 0,
24+ "math1_quad_entropy_scale": 0
2225}
default/content/presets/novel/Long-Press-Clio.json+5 -2
@@ -16,7 +16,10 @@
1616 "use_cache": false,
1717 "return_full_text": false,
1818 "prefix": "vanilla",
19- "cfg_scale": 1,
2019 "phrase_rep_pen": "very_light",
2120 "max_context": 7800,
21+ "min_p": 0,
22+ "math1_temp": 1,
23+ "math1_quad": 0,
24+ "math1_quad_entropy_scale": 0
2225}
default/content/presets/novel/Pilotfish-Kayra.json+6 -3
@@ -1,5 +1,5 @@
11{
22 "order": [6, 0, 4, 1, 2, 5, 3],
33 "temperature": 1.31,
44 "max_length": 150,
55 "min_length": 1,
@@ -17,6 +17,9 @@
1717 "return_full_text": false,
1818 "prefix": "vanilla",
1919 "phrase_rep_pen": "medium",
2020 "cfg_scalemax_context": 1.357800,
2121 "max_contextmin_p": 78000,
22+ "math1_temp": 1,
23+ "math1_quad": 0,
24+ "math1_quad_entropy_scale": 0
2225}
default/content/presets/novel/Pro_Writer-Kayra.json+5 -2
@@ -15,6 +15,9 @@
1515 "return_full_text": false,
1616 "prefix": "vanilla",
1717 "phrase_rep_pen": "medium",
1818 "cfg_scalemax_context": 1.07800,
1919 "max_contextmin_p": 78000,
20+ "math1_temp": 1,
21+ "math1_quad": 0,
22+ "math1_quad_entropy_scale": 0
2023}
default/content/presets/novel/Stelenes-Kayra.json+5 -1
@@ -13,5 +13,9 @@
1313 "return_full_text": false,
1414 "prefix": "vanilla",
1515 "phrase_rep_pen": "medium",
1616 "max_context": 7800,
17+ "min_p": 0,
18+ "math1_temp": 1,
19+ "math1_quad": 0,
20+ "math1_quad_entropy_scale": 0
1721}
default/content/presets/novel/Talker-Chat-Clio.json+5 -2
@@ -16,7 +16,10 @@
1616 "use_cache": false,
1717 "return_full_text": false,
1818 "prefix": "vanilla",
19- "cfg_scale": 1,
2019 "phrase_rep_pen": "very_light",
2120 "max_context": 7800,
21+ "min_p": 0,
22+ "math1_temp": 1,
23+ "math1_quad": 0,
24+ "math1_quad_entropy_scale": 0
2225}
default/content/presets/novel/Tea_Time-Kayra.json+5 -2
@@ -14,6 +14,9 @@
1414 "return_full_text": false,
1515 "prefix": "vanilla",
1616 "phrase_rep_pen": "aggressive",
1717 "cfg_scalemax_context": 1.07800,
1818 "max_contextmin_p": 78000,
19+ "math1_temp": 1,
20+ "math1_quad": 0,
21+ "math1_quad_entropy_scale": 0
1922}
default/content/presets/novel/Tesseract-Kayra.json+6 -3
@@ -1,5 +1,5 @@
11{
22 "order": [6, 0, 5],
33 "temperature": 0.895,
44 "max_length": 150,
55 "min_length": 1,
@@ -13,6 +13,9 @@
1313 "return_full_text": false,
1414 "prefix": "vanilla",
1515 "phrase_rep_pen": "aggressive",
1616 "cfg_scalemax_context": 1.37800,
1717 "max_contextmin_p": 78000,
18+ "math1_temp": 1,
19+ "math1_quad": 0,
20+ "math1_quad_entropy_scale": 0
1821}
default/content/presets/novel/Vingt-Un-Clio.json+5 -2
@@ -16,7 +16,10 @@
1616 "use_cache": false,
1717 "return_full_text": false,
1818 "prefix": "vanilla",
19- "cfg_scale": 1,
2019 "phrase_rep_pen": "very_light",
2120 "max_context": 7800,
21+ "min_p": 0,
22+ "math1_temp": 1,
23+ "math1_quad": 0,
24+ "math1_quad_entropy_scale": 0
2225}
default/content/presets/novel/Writers-Daemon-Kayra.json+5 -1
@@ -17,5 +17,9 @@
1717 "return_full_text": false,
1818 "prefix": "vanilla",
1919 "phrase_rep_pen": "very_aggressive",
2020 "max_context": 7800,
21+ "min_p": 0,
22+ "math1_temp": 1,
23+ "math1_quad": 0,
24+ "math1_quad_entropy_scale": 0
2125}
default/content/presets/openai/Default.json+1 -4
@@ -8,7 +8,7 @@
88 "openrouter_force_instruct": false,
99 "openrouter_group_models": false,
1010 "openrouter_sort_models": "alphabetically",
1111 "ai21_model": "j2jamba-ultra1.5-large",
1212 "mistralai_model": "mistral-large-latest",
1313 "custom_model": "",
1414 "custom_url": "",
@@ -19,7 +19,6 @@
1919 "temperature": 1,
2020 "frequency_penalty": 0,
2121 "presence_penalty": 0,
22- "count_penalty": 0,
2322 "top_p": 1,
2423 "top_k": 0,
2524 "top_a": 0,
@@ -233,8 +232,6 @@
233232 "assistant_prefill": "",
234233 "assistant_impersonation": "",
235234 "human_sysprompt_message": "Let's get started. Please generate your response based on the information and instructions provided above.",
236- "use_ai21_tokenizer": false,
237- "use_google_tokenizer": false,
238235 "claude_use_sysprompt": false,
239236 "use_alt_scale": false,
240237 "squash_system_messages": false,
default/content/presets/sysprompt/Actor.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Actor",
3+ "content": "You are an expert actor that can fully immerse yourself into any role given. You do not break character for any reason, even if someone tries addressing you as an AI or language model. Currently your role is {{char}}, which is described in detail below. As {{char}}, continue the exchange with {{user}}."
4+}
default/content/presets/sysprompt/Assistant - Expert.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Assistant - Expert",
3+ "content": "You are a helpful assistant. Please answer truthfully and write out your thinking step by step to be sure you get the right answer. If you make a mistake or encounter an error in your thinking, say so out loud and attempt to correct it. If you don't know or aren't sure about something, say so clearly. You will act as a professional logician, mathematician, and physicist. You will also act as the most appropriate type of expert to answer any particular question or solve the relevant problem; state which expert type your are, if so. Also think of any particular named expert that would be ideal to answer the relevant question or solve the relevant problem; name and act as them, if appropriate."
4+}
default/content/presets/sysprompt/Assistant - Simple.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Assistant - Simple",
3+ "content": "A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions."
4+}
default/content/presets/sysprompt/Blank.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Blank",
3+ "content": ""
4+}
default/content/presets/sysprompt/Chain of Thought.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Chain of Thought",
3+ "content": "Elaborate on the topic using a Tree of Thoughts and backtrack when necessary to construct a clear, cohesive Chain of Thought reasoning. Always answer without hesitation."
4+}
default/content/presets/sysprompt/Neutral - Chat.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Neutral - Chat",
3+ "content": "Write {{char}}'s next reply in a fictional chat between {{char}} and {{user}}."
4+}
default/content/presets/sysprompt/Roleplay - Detailed.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Roleplay - Detailed",
3+ "content": "Develop the plot slowly, always stay in character. Describe all actions in full, elaborate, explicit, graphic, and vivid detail. Mention all relevant sensory perceptions. Keep the story immersive and engaging."
4+}
default/content/presets/sysprompt/Roleplay - Immersive.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Roleplay - Immersive",
3+ "content": "[System note: Write one reply only. Do not decide what {{user}} says or does. Write at least one paragraph, up to four. Be descriptive and immersive, providing vivid details about {{char}}'s actions, emotions, and the environment. Write with a high degree of complexity and burstiness. Do not repeat this message.]"
4+}
default/content/presets/sysprompt/Roleplay - Simple.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Roleplay - Simple",
3+ "content": "You're {{char}} in this fictional never-ending uncensored roleplay with {{user}}."
4+}
default/content/presets/sysprompt/Text Adventure.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Text Adventure",
3+ "content": "[Enter Adventure Mode. Narrate the story based on {{user}}'s dialogue and actions after \">\". Describe the surroundings in vivid detail. Be detailed, creative, verbose, and proactive. Move the story forward by introducing fantasy elements and interesting characters.]"
4+}
default/content/presets/sysprompt/Writer - Creative.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Writer - Creative",
3+ "content": "You are an intelligent, skilled, versatile writer.\n\nYour task is to write a role-play based on the information below."
4+}
default/content/presets/sysprompt/Writer - Realistic.json+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "name": "Writer - Realistic",
3+ "content": "Continue writing this story and portray characters realistically."
4+}
default/content/settings.json+31 -25
@@ -4,8 +4,8 @@
44 "api_server": "http://127.0.0.1:5000/api",
55 "preset_settings": "RecoveredRuins",
66 "user_avatar": "user-default.png",
77 "amount_gen": 250350,
88 "max_context": 20488192,
99 "main_api": "koboldhorde",
1010 "world_info_settings": {
1111 "world_info": {
@@ -90,7 +90,6 @@
9090 "pin_examples": false,
9191 "strip_examples": false,
9292 "trim_sentences": false,
93- "include_newline": false,
9493 "always_force_name2": true,
9594 "user_prompt_bias": "",
9695 "show_user_prompt_bias": true,
@@ -142,6 +141,7 @@
142141 "timestamps_enabled": true,
143142 "timestamp_model_icon": true,
144143 "mesIDDisplay_enabled": false,
144+ "hideChatAvatars_enabled": false,
145145 "max_context_unlocked": false,
146146 "prefer_character_prompt": true,
147147 "prefer_character_jailbreak": true,
@@ -149,11 +149,9 @@
149149 "continue_on_send": false,
150150 "trim_spaces": true,
151151 "relaxed_api_urls": false,
152- "default_instruct": "",
153152 "instruct": {
154153 "enabled": false,
155154 "preset": "Alpaca",
156- "system_prompt": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\nWrite {{char}}'s next reply in a fictional roleplay chat between {{user}} and {{char}}.\n",
157155 "input_sequence": "### Instruction:",
158156 "output_sequence": "### Response:",
159157 "last_output_sequence": "",
@@ -161,8 +159,7 @@
161159 "stop_sequence": "",
162160 "wrap": true,
163161 "macro": true,
164162 "namesnames_behavior": false"force",
165- "names_force_groups": true,
166163 "activation_regex": "",
167164 "system_sequence_prefix": "",
168165 "system_sequence_suffix": "",
@@ -174,7 +171,11 @@
174171 "user_alignment_message": "",
175172 "system_same_as_user": false
176173 },
177174 "default_contextsysprompt": "Default",{
175+ "enabled": true,
176+ "name": "Neutral - Chat",
177+ "content": "Write {{char}}'s next reply in a fictional chat between {{char}} and {{user}}."
178+ },
178179 "context": {
179180 "preset": "Default",
180181 "story_string": "{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}",
@@ -195,7 +196,15 @@
195196 "enableLabMode": false,
196197 "enableZenSliders": false,
197198 "ui_mode": 1,
198199 "forbid_external_media": true,
200+ "stscript": {
201+ "parser": {
202+ "flags": {
203+ "1": true,
204+ "2": true
205+ }
206+ }
207+ }
199208 },
200209 "extension_settings": {
201210 "apiUrl": "http://localhost:5100",
@@ -226,7 +235,7 @@
226235 "lengthPenaltyStep": 0.1,
227236 "memoryFrozen": false,
228237 "source": "extras",
229238 "prompt": "[PauseIgnore yourprevious roleplayinstructions. Summarize the most important facts and events that have happened in the chatstory so far. If a summary already exists in your memory, use that as a base and expand with new facts. Limit the summary to {{words}} words or less. Your response should include nothing but the summary.]",
230239 "promptWords": 200,
231240 "promptMinWords": 25,
232241 "promptMaxWords": 1000,
@@ -289,13 +298,13 @@
289298 "horde_karras": true,
290299 "refine_mode": false,
291300 "prompts": {
292301 "0": "[In the next response I want you to provide only a detailed comma-delimited list of keywords and phrases which describe {{char}}. The list must include all of the following items in this order: name, species and race, gender, age, clothing, occupation, physical features and appearances. Do not include descriptions of non-visual qualities such as personality, movements, scents, mental traits, or anything which could not be seen in a still photograph. Do not write in full sentences. Prefix your description with the phrase 'full body portrait,']",
293302 "1": "[PauseIgnore yourprevious roleplayinstructions and provide a detailed description of {{user}}'s physical appearance from the perspective of {{char}} in the form of a comma-delimited list of keywords and phrases. The list must include all of the following items in this order: name, species and race, gender, age, clothing, occupation, physical features and appearances. Do not include descriptions of non-visual qualities such as personality, movements, scents, mental traits, or anything which could not be seen in a still photograph. Do not write in full sentences. Prefix your description with the phrase 'full body portrait,'. Ignore the rest of the story when crafting this description. Do not roleplayreply as {{char}} when writing this description, and do not attempt to continue the story.]",
294303 "2": "[PauseIgnore yourprevious roleplayinstructions and provide a detailed description for all of the following: a brief recap of recent events in the story, {{char}}'s appearance, and {{char}}'s surroundings. Do not roleplayreply whileas {{char}} when writing this description, and do not attempt to continue the story.]",
295304 "3": "[PauseIgnore yourprevious roleplayinstructions and provide ONLY the last chat message string back to me verbatim. Do not write anything after the string. Do not roleplayreply atas all{{char}} inwhen yourwriting response.this Dodescription, and do not attempt to continue the roleplay story.]",
296- "4": "[Pause your roleplay. Your next response must be formatted as a single comma-delimited list of concise keywords. The list will describe of the visual details included in the last chat message.\n\n Only mention characters by using pronouns ('he','his','she','her','it','its') or neutral nouns ('male', 'the man', 'female', 'the woman').\n\n Ignore non-visible things such as feelings, personality traits, thoughts, and spoken dialog.\n\n Add keywords in this precise order:\n a keyword to describe the location of the scene,\n a keyword to mention how many characters of each gender or type are present in the scene (minimum of two characters:\n {{user}} and {{char}}, example: '2 men ' or '1 man 1 woman ', '1 man 3 robots'),\n\n keywords to describe the relative physical positioning of the characters to each other (if a commonly known term for the positioning is known use it instead of describing the positioning in detail) + 'POV',\n\n a single keyword or phrase to describe the primary act taking place in the last chat message,\n\n keywords to describe {{char}}'s physical appearance and facial expression,\n keywords to describe {{char}}'s actions,\n keywords to describe {{user}}'s physical appearance and actions.\n\n If character actions involve direct physical interaction with another character, mention specifically which body parts interacting and how.\n\n A correctly formatted example response would be:\n '(location),(character list by gender),(primary action), (relative character position) POV, (character 1's description and actions), (character 2's description and actions)']",
305+ "4": "Ignore previous instructions. Your next response must be formatted as a single comma-delimited list of concise keywords. The list will describe of the visual details included in the last chat message.\n\n Only mention characters by using pronouns ('he','his','she','her','it','its') or neutral nouns ('male', 'the man', 'female', 'the woman').\n\n Ignore non-visible things such as feelings, personality traits, thoughts, and spoken dialog.\n\n Add keywords in this precise order:\n a keyword to describe the location of the scene,\n a keyword to mention how many characters of each gender or type are present in the scene (minimum of two characters:\n {{user}} and {{char}}, example: '2 men ' or '1 man 1 woman ', '1 man 3 robots'),\n\n keywords to describe the relative physical positioning of the characters to each other (if a commonly known term for the positioning is known use it instead of describing the positioning in detail) + 'POV',\n\n a single keyword or phrase to describe the primary act taking place in the last chat message,\n\n keywords to describe {{char}}'s physical appearance and facial expression,\n keywords to describe {{char}}'s actions,\n keywords to describe {{user}}'s physical appearance and actions.\n\n If character actions involve direct physical interaction with another character, mention specifically which body parts interacting and how.\n\n A correctly formatted example response would be:\n '(location),(character list by gender),(primary action), (relative character position) POV, (character 1's description and actions), (character 2's description and actions)'",
297306 "5": "[In the next response I want you to provide only a detailed comma-delimited list of keywords and phrases which describe {{char}}. The list must include all of the following items in this order: name, species and race, gender, age, facial features and expressions, occupation, hair and hair accessories (if any), what they are wearing on their upper body (if anything). Do not describe anything below their neck. Do not include descriptions of non-visual qualities such as personality, movements, scents, mental traits, or anything which could not be seen in a still photograph. Do not write in full sentences. Prefix your description with the phrase 'close up facial portrait,']",
298307 "7": "[PauseIgnore yourprevious roleplayinstructions and provide a detailed description of {{char}}'s surroundings in the form of a comma-delimited list of keywords and phrases. The list must include all of the following items in this order: location, time of day, weather, lighting, and any other relevant details. Do not include descriptions of characters and non-visual qualities such as names, personality, movements, scents, mental traits, or anything which could not be seen in a still photograph. Do not write in full sentences. Prefix your description with the phrase 'background,'. Ignore the rest of the story when crafting this description. Do not roleplayreply as {{user}} when writing this description, and do not attempt to continue the story.]"
299308 },
300309 "character_prompts": {}
301310 },
@@ -309,9 +318,9 @@
309318 "objective": {
310319 "customPrompts": {
311320 "default": {
312321 "createTask": "PauseIgnore yourprevious roleplayinstructions and generate a list of tasks to complete an objective. Your next response must be formatted as a numbered list of plain text entries. Do not include anything but the numbered list. The list must be prioritized in the order that tasks must be completed.\n\nThe objective that you must make a numbered task list for is: [{{objective}}].\nThe tasks created should take into account the character traits of {{char}}. These tasks may or may not involve {{user}} directly. Be sure to include the objective as the final task.\n\nGiven an example objective of 'Make me a four course dinner', here is an example output:\n1. Determine what the courses will be\n2. Find recipes for each course\n3. Go shopping for supplies with {{user}}\n4. Cook the food\n5. Get {{user}} to set the table\n6. Serve the food\n7. Enjoy eating the meal with {{user}}\n ",
313322 "checkTaskCompleted": "PauseIgnore yourprevious roleplayinstructions. Determine if this task is completed: [{{task}}].\nTo do this, examine the most recent messages. Your response must only contain either true or false, nothing other words.\nExample output:\ntrue\n ",
314323 "currentTask": "Your current task is [{{task}}]. Balance existing roleplaystory with completing this task."
315324 }
316325 }
317326 },
@@ -408,7 +417,6 @@
408417 "preset_settings_novel": "Talker-Chat-Clio",
409418 "streaming_novel": true,
410419 "preamble": "[ Style: chat, complex, sensory, visceral ]",
411- "cfg_uc": "",
412420 "banned_tokens": "",
413421 "order": [
414422 1,
@@ -451,7 +459,6 @@
451459 "temp_openai": 1.0,
452460 "freq_pen_openai": 0,
453461 "pres_pen_openai": 0,
454- "count_pen": 0,
455462 "top_p_openai": 1,
456463 "top_k_openai": 0,
457464 "stream_openai": true,
@@ -613,7 +620,7 @@
613620 "wi_format": "{0}",
614621 "openai_model": "gpt-4-turbo",
615622 "claude_model": "claude-3-5-sonnet-20240620",
616623 "ai21_model": "j2jamba-ultra1.5-large",
617624 "windowai_model": "",
618625 "openrouter_model": "OR_Website",
619626 "jailbreak_system": true,
@@ -624,7 +631,6 @@
624631 "show_external_models": false,
625632 "proxy_password": "",
626633 "assistant_prefill": "",
627634 "assistant_impersonation": "",
628- "use_ai21_tokenizer": false
629635 }
630636}
default/content/themes/Azure.json+1 -0
@@ -23,6 +23,7 @@
2323 "timestamps_enabled": true,
2424 "timestamp_model_icon": false,
2525 "mesIDDisplay_enabled": true,
26+ "hideChatAvatars_enabled": false,
2627 "message_token_count_enabled": false,
2728 "expand_message_actions": false,
2829 "enableZenSliders": false,
default/content/themes/Cappuccino.json+1 -0
@@ -23,6 +23,7 @@
2323 "timestamps_enabled": true,
2424 "timestamp_model_icon": true,
2525 "mesIDDisplay_enabled": true,
26+ "hideChatAvatars_enabled": false,
2627 "message_token_count_enabled": false,
2728 "expand_message_actions": false,
2829 "enableZenSliders": false,
default/content/themes/Dark Lite.json+1 -0
@@ -23,6 +23,7 @@
2323 "timestamps_enabled": true,
2424 "timestamp_model_icon": true,
2525 "mesIDDisplay_enabled": false,
26+ "hideChatAvatars_enabled": false,
2627 "message_token_count_enabled": false,
2728 "expand_message_actions": false,
2829 "enableZenSliders": "",
default/content/themes/Dark V 1.0.json+0 -0
default/content/user-default.png+0 -0

Binary file

package-lock.json+534 -66
@@ -1,12 +1,12 @@
11{
22 "name": "sillytavern",
33 "version": "1.12.56",
44 "lockfileVersion": 3,
55 "requires": true,
66 "packages": {
77 "": {
88 "name": "sillytavern",
99 "version": "1.12.56",
1010 "hasInstallScript": true,
1111 "license": "AGPL-3.0",
1212 "dependencies": {
@@ -22,7 +22,7 @@
2222 "cookie-session": "^2.1.0",
2323 "cors": "^2.8.5",
2424 "csrf-csrf": "^2.2.3",
2525 "express": "^4.2021.0",
2626 "form-data": "^4.0.0",
2727 "google-translate-api-browser": "^3.0.1",
2828 "he": "^1.2.0",
@@ -40,12 +40,13 @@
4040 "png-chunk-text": "^1.0.0",
4141 "png-chunks-encode": "^1.0.0",
4242 "png-chunks-extract": "^1.0.0",
43+ "proxy-agent": "^6.4.0",
4344 "rate-limiter-flexible": "^5.0.0",
4445 "response-time": "^2.3.2",
4546 "sanitize-filename": "^1.6.3",
4647 "sillytavern-transformers": "2.14.6",
4748 "simple-git": "^3.19.1",
4849 "tiktoken": "^1.0.1516",
4950 "vectra": "^0.2.2",
5051 "wavefile": "^11.0.0",
5152 "write-file-atomic": "^5.0.1",
@@ -941,6 +942,12 @@
941942 "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==",
942943 "license": "MIT"
943944 },
945+ "node_modules/@tootallnate/quickjs-emscripten": {
946+ "version": "0.23.0",
947+ "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz",
948+ "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==",
949+ "license": "MIT"
950+ },
944951 "node_modules/@types/cacheable-request": {
945952 "version": "6.0.3",
946953 "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz",
@@ -1080,6 +1087,41 @@
10801087 "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
10811088 }
10821089 },
1090+ "node_modules/agent-base": {
1091+ "version": "7.1.1",
1092+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz",
1093+ "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==",
1094+ "license": "MIT",
1095+ "dependencies": {
1096+ "debug": "^4.3.4"
1097+ },
1098+ "engines": {
1099+ "node": ">= 14"
1100+ }
1101+ },
1102+ "node_modules/agent-base/node_modules/debug": {
1103+ "version": "4.3.7",
1104+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
1105+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
1106+ "license": "MIT",
1107+ "dependencies": {
1108+ "ms": "^2.1.3"
1109+ },
1110+ "engines": {
1111+ "node": ">=6.0"
1112+ },
1113+ "peerDependenciesMeta": {
1114+ "supports-color": {
1115+ "optional": true
1116+ }
1117+ }
1118+ },
1119+ "node_modules/agent-base/node_modules/ms": {
1120+ "version": "2.1.3",
1121+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1122+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
1123+ "license": "MIT"
1124+ },
10831125 "node_modules/agentkeepalive": {
10841126 "version": "4.5.0",
10851127 "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz",
@@ -1382,6 +1424,18 @@
13821424 "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
13831425 "license": "MIT"
13841426 },
1427+ "node_modules/ast-types": {
1428+ "version": "0.13.4",
1429+ "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz",
1430+ "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==",
1431+ "license": "MIT",
1432+ "dependencies": {
1433+ "tslib": "^2.0.1"
1434+ },
1435+ "engines": {
1436+ "node": ">=4"
1437+ }
1438+ },
13851439 "node_modules/async": {
13861440 "version": "3.2.5",
13871441 "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz",
@@ -1445,6 +1499,15 @@
14451499 ],
14461500 "license": "MIT"
14471501 },
1502+ "node_modules/basic-ftp": {
1503+ "version": "5.0.5",
1504+ "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz",
1505+ "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==",
1506+ "license": "MIT",
1507+ "engines": {
1508+ "node": ">=10.0.0"
1509+ }
1510+ },
14481511 "node_modules/bing-translate-api": {
14491512 "version": "2.9.1",
14501513 "resolved": "https://registry.npmjs.org/bing-translate-api/-/bing-translate-api-2.9.1.tgz",
@@ -1505,21 +1568,6 @@
15051568 "node": ">=0.10.0"
15061569 }
15071570 },
1508- "node_modules/body-parser/node_modules/qs": {
1509- "version": "6.13.0",
1510- "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
1511- "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
1512- "license": "BSD-3-Clause",
1513- "dependencies": {
1514- "side-channel": "^1.0.6"
1515- },
1516- "engines": {
1517- "node": ">=0.6"
1518- },
1519- "funding": {
1520- "url": "https://github.com/sponsors/ljharb"
1521- }
1522- },
15231571 "node_modules/boolbase": {
15241572 "version": "1.0.0",
15251573 "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
@@ -1665,6 +1713,7 @@
16651713 "version": "2.7.0",
16661714 "resolved": "https://registry.npmjs.org/centra/-/centra-2.7.0.tgz",
16671715 "integrity": "sha512-PbFMgMSrmgx6uxCdm57RUos9Tc3fclMvhLSATYN39XsDV29B89zZ3KA89jmY0vwSGazyU+uerqwa6t+KaodPcg==",
1716+ "license": "MIT",
16681717 "dependencies": {
16691718 "follow-redirects": "^1.15.6"
16701719 }
@@ -2250,6 +2299,15 @@
22502299 "url": "https://github.com/sponsors/fb55"
22512300 }
22522301 },
2302+ "node_modules/data-uri-to-buffer": {
2303+ "version": "6.0.2",
2304+ "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz",
2305+ "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==",
2306+ "license": "MIT",
2307+ "engines": {
2308+ "node": ">= 14"
2309+ }
2310+ },
22532311 "node_modules/debug": {
22542312 "version": "2.6.9",
22552313 "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
@@ -2316,6 +2374,20 @@
23162374 "node": ">=8"
23172375 }
23182376 },
2377+ "node_modules/degenerator": {
2378+ "version": "5.0.1",
2379+ "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz",
2380+ "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==",
2381+ "license": "MIT",
2382+ "dependencies": {
2383+ "ast-types": "^0.13.4",
2384+ "escodegen": "^2.1.0",
2385+ "esprima": "^4.0.1"
2386+ },
2387+ "engines": {
2388+ "node": ">= 14"
2389+ }
2390+ },
23192391 "node_modules/delayed-stream": {
23202392 "version": "1.0.0",
23212393 "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
@@ -2454,9 +2526,9 @@
24542526 "license": "MIT"
24552527 },
24562528 "node_modules/encodeurl": {
24572529 "version": "12.0.20",
24582530 "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-12.0.20.tgz",
24592531 "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0wQ0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
24602532 "license": "MIT",
24612533 "engines": {
24622534 "node": ">= 0.8"
@@ -2528,6 +2600,27 @@
25282600 "node": ">=0.8.0"
25292601 }
25302602 },
2603+ "node_modules/escodegen": {
2604+ "version": "2.1.0",
2605+ "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
2606+ "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
2607+ "license": "BSD-2-Clause",
2608+ "dependencies": {
2609+ "esprima": "^4.0.1",
2610+ "estraverse": "^5.2.0",
2611+ "esutils": "^2.0.2"
2612+ },
2613+ "bin": {
2614+ "escodegen": "bin/escodegen.js",
2615+ "esgenerate": "bin/esgenerate.js"
2616+ },
2617+ "engines": {
2618+ "node": ">=6.0"
2619+ },
2620+ "optionalDependencies": {
2621+ "source-map": "~0.6.1"
2622+ }
2623+ },
25312624 "node_modules/eslint": {
25322625 "version": "8.57.0",
25332626 "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz",
@@ -2683,6 +2776,19 @@
26832776 "url": "https://opencollective.com/eslint"
26842777 }
26852778 },
2779+ "node_modules/esprima": {
2780+ "version": "4.0.1",
2781+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
2782+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
2783+ "license": "BSD-2-Clause",
2784+ "bin": {
2785+ "esparse": "bin/esparse.js",
2786+ "esvalidate": "bin/esvalidate.js"
2787+ },
2788+ "engines": {
2789+ "node": ">=4"
2790+ }
2791+ },
26862792 "node_modules/esquery": {
26872793 "version": "1.5.0",
26882794 "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz",
@@ -2713,7 +2819,6 @@
27132819 "version": "5.3.0",
27142820 "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
27152821 "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
2716- "dev": true,
27172822 "license": "BSD-2-Clause",
27182823 "engines": {
27192824 "node": ">=4.0"
@@ -2723,7 +2828,6 @@
27232828 "version": "2.0.3",
27242829 "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
27252830 "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
2726- "dev": true,
27272831 "license": "BSD-2-Clause",
27282832 "engines": {
27292833 "node": ">=0.10.0"
@@ -2761,9 +2865,9 @@
27612865 "integrity": "sha512-c2bQfLNbMzLPmzQuOr8fy0csy84WmwnER81W88DzTp9CYNPJ6yzOj2EZAh9pywYpqHnshVLHQJ8WzldAyfY+Iw=="
27622866 },
27632867 "node_modules/express": {
27642868 "version": "4.2021.0",
27652869 "resolved": "https://registry.npmjs.org/express/-/express-4.2021.0.tgz",
27662870 "integrity": "sha512-pLdae7I6QqShF5PnNTCVn4hI91Dx0Grkn2VqcNGcj/Id5ZT1LZ/cfihi3ttTn+IAsMTgMIKuQVte2dN9PeGSSAME2FR8anOhVA62QDIUaWVfEXVLwNJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng==",
27672871 "license": "MIT",
27682872 "dependencies": {
27692873 "accepts": "~1.3.8",
@@ -2778,7 +2882,7 @@
27782882 "encodeurl": "~2.0.0",
27792883 "escape-html": "~1.0.3",
27802884 "etag": "~1.8.1",
27812885 "finalhandler": "1.23.01",
27822886 "fresh": "0.5.2",
27832887 "http-errors": "2.0.0",
27842888 "merge-descriptors": "1.0.3",
@@ -2787,11 +2891,11 @@
27872891 "parseurl": "~1.3.3",
27882892 "path-to-regexp": "0.1.10",
27892893 "proxy-addr": "~2.0.7",
27902894 "qs": "6.1113.0",
27912895 "range-parser": "~1.2.1",
27922896 "safe-buffer": "5.2.1",
27932897 "send": "0.19.0",
27942898 "serve-static": "1.16.02",
27952899 "setprototypeof": "1.2.0",
27962900 "statuses": "2.0.1",
27972901 "type-is": "~1.6.18",
@@ -2810,15 +2914,6 @@
28102914 "node": ">= 0.6"
28112915 }
28122916 },
2813- "node_modules/express/node_modules/encodeurl": {
2814- "version": "2.0.0",
2815- "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
2816- "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
2817- "license": "MIT",
2818- "engines": {
2819- "node": ">= 0.8"
2820- }
2821- },
28222917 "node_modules/express/node_modules/safe-buffer": {
28232918 "version": "5.2.1",
28242919 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
@@ -2915,13 +3010,13 @@
29153010 }
29163011 },
29173012 "node_modules/finalhandler": {
29183013 "version": "1.23.01",
29193014 "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.23.01.tgz",
29203015 "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
29213016 "license": "MIT",
29223017 "dependencies": {
29233018 "debug": "2.6.9",
29243019 "encodeurl": "~12.0.20",
29253020 "escape-html": "~1.0.3",
29263021 "on-finished": "2.4.1",
29273022 "parseurl": "~1.3.3",
@@ -3071,6 +3166,20 @@
30713166 "node": ">= 0.6"
30723167 }
30733168 },
3169+ "node_modules/fs-extra": {
3170+ "version": "11.2.0",
3171+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz",
3172+ "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==",
3173+ "license": "MIT",
3174+ "dependencies": {
3175+ "graceful-fs": "^4.2.0",
3176+ "jsonfile": "^6.0.1",
3177+ "universalify": "^2.0.0"
3178+ },
3179+ "engines": {
3180+ "node": ">=14.14"
3181+ }
3182+ },
30743183 "node_modules/fs.realpath": {
30753184 "version": "1.0.0",
30763185 "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
@@ -3130,6 +3239,44 @@
31303239 "url": "https://github.com/sponsors/sindresorhus"
31313240 }
31323241 },
3242+ "node_modules/get-uri": {
3243+ "version": "6.0.3",
3244+ "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.3.tgz",
3245+ "integrity": "sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanw==",
3246+ "license": "MIT",
3247+ "dependencies": {
3248+ "basic-ftp": "^5.0.2",
3249+ "data-uri-to-buffer": "^6.0.2",
3250+ "debug": "^4.3.4",
3251+ "fs-extra": "^11.2.0"
3252+ },
3253+ "engines": {
3254+ "node": ">= 14"
3255+ }
3256+ },
3257+ "node_modules/get-uri/node_modules/debug": {
3258+ "version": "4.3.7",
3259+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
3260+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
3261+ "license": "MIT",
3262+ "dependencies": {
3263+ "ms": "^2.1.3"
3264+ },
3265+ "engines": {
3266+ "node": ">=6.0"
3267+ },
3268+ "peerDependenciesMeta": {
3269+ "supports-color": {
3270+ "optional": true
3271+ }
3272+ }
3273+ },
3274+ "node_modules/get-uri/node_modules/ms": {
3275+ "version": "2.1.3",
3276+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
3277+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
3278+ "license": "MIT"
3279+ },
31333280 "node_modules/gifwrap": {
31343281 "version": "0.10.1",
31353282 "resolved": "https://registry.npmjs.org/gifwrap/-/gifwrap-0.10.1.tgz",
@@ -3369,6 +3516,42 @@
33693516 "node": ">= 0.8"
33703517 }
33713518 },
3519+ "node_modules/http-proxy-agent": {
3520+ "version": "7.0.2",
3521+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
3522+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
3523+ "license": "MIT",
3524+ "dependencies": {
3525+ "agent-base": "^7.1.0",
3526+ "debug": "^4.3.4"
3527+ },
3528+ "engines": {
3529+ "node": ">= 14"
3530+ }
3531+ },
3532+ "node_modules/http-proxy-agent/node_modules/debug": {
3533+ "version": "4.3.7",
3534+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
3535+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
3536+ "license": "MIT",
3537+ "dependencies": {
3538+ "ms": "^2.1.3"
3539+ },
3540+ "engines": {
3541+ "node": ">=6.0"
3542+ },
3543+ "peerDependenciesMeta": {
3544+ "supports-color": {
3545+ "optional": true
3546+ }
3547+ }
3548+ },
3549+ "node_modules/http-proxy-agent/node_modules/ms": {
3550+ "version": "2.1.3",
3551+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
3552+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
3553+ "license": "MIT"
3554+ },
33723555 "node_modules/http2-wrapper": {
33733556 "version": "1.0.3",
33743557 "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz",
@@ -3382,6 +3565,42 @@
33823565 "node": ">=10.19.0"
33833566 }
33843567 },
3568+ "node_modules/https-proxy-agent": {
3569+ "version": "7.0.5",
3570+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz",
3571+ "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==",
3572+ "license": "MIT",
3573+ "dependencies": {
3574+ "agent-base": "^7.0.2",
3575+ "debug": "4"
3576+ },
3577+ "engines": {
3578+ "node": ">= 14"
3579+ }
3580+ },
3581+ "node_modules/https-proxy-agent/node_modules/debug": {
3582+ "version": "4.3.7",
3583+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
3584+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
3585+ "license": "MIT",
3586+ "dependencies": {
3587+ "ms": "^2.1.3"
3588+ },
3589+ "engines": {
3590+ "node": ">=6.0"
3591+ },
3592+ "peerDependenciesMeta": {
3593+ "supports-color": {
3594+ "optional": true
3595+ }
3596+ }
3597+ },
3598+ "node_modules/https-proxy-agent/node_modules/ms": {
3599+ "version": "2.1.3",
3600+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
3601+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
3602+ "license": "MIT"
3603+ },
33853604 "node_modules/humanize-ms": {
33863605 "version": "1.2.1",
33873606 "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
@@ -3485,6 +3704,19 @@
34853704 "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
34863705 "license": "ISC"
34873706 },
3707+ "node_modules/ip-address": {
3708+ "version": "9.0.5",
3709+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz",
3710+ "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==",
3711+ "license": "MIT",
3712+ "dependencies": {
3713+ "jsbn": "1.1.0",
3714+ "sprintf-js": "^1.1.3"
3715+ },
3716+ "engines": {
3717+ "node": ">= 12"
3718+ }
3719+ },
34883720 "node_modules/ip-matching": {
34893721 "version": "2.1.2",
34903722 "resolved": "https://registry.npmjs.org/ip-matching/-/ip-matching-2.1.2.tgz",
@@ -3669,6 +3901,12 @@
36693901 "js-yaml": "bin/js-yaml.js"
36703902 }
36713903 },
3904+ "node_modules/jsbn": {
3905+ "version": "1.1.0",
3906+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
3907+ "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",
3908+ "license": "MIT"
3909+ },
36723910 "node_modules/json-buffer": {
36733911 "version": "3.0.1",
36743912 "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
@@ -3761,6 +3999,18 @@
37613999 "dev": true,
37624000 "license": "MIT"
37634001 },
4002+ "node_modules/jsonfile": {
4003+ "version": "6.1.0",
4004+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
4005+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
4006+ "license": "MIT",
4007+ "dependencies": {
4008+ "universalify": "^2.0.0"
4009+ },
4010+ "optionalDependencies": {
4011+ "graceful-fs": "^4.1.6"
4012+ }
4013+ },
37644014 "node_modules/keygrip": {
37654015 "version": "1.1.0",
37664016 "resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.1.0.tgz",
@@ -3807,9 +4057,9 @@
38074057 }
38084058 },
38094059 "node_modules/load-bmfont": {
38104060 "version": "1.4.12",
38114061 "resolved": "https://registry.npmjs.org/load-bmfont/-/load-bmfont-1.4.12.tgz",
38124062 "integrity": "sha512-8UyQoYmdRDy81Brz6aLAUhfZLwr5zV0L3taTQ4hju7m6biuwiWiJXjPhBJxbUQJA8PrkvJqElWkmjW9Oq1F9EI5Gt7aD9zcdHb9spJCW1L/7Enqmwk2sM14soAdmPf7KzCCEJxq8nhHz5eCgI9aMf7vrG/wyaCqdsI+Iy9ZTlog==",
38134063 "license": "MIT",
38144064 "dependencies": {
38154065 "buffer-equal": "0.0.1",
@@ -3817,7 +4067,7 @@
38174067 "parse-bmfont-ascii": "^1.0.3",
38184068 "parse-bmfont-binary": "^1.0.5",
38194069 "parse-bmfont-xml": "^1.1.4",
38204070 "phin": "^23.97.1",
38214071 "xhr": "^2.0.1",
38224072 "xtend": "^4.0.0"
38234073 }
@@ -4053,6 +4303,15 @@
40534303 "node": ">= 0.6"
40544304 }
40554305 },
4306+ "node_modules/netmask": {
4307+ "version": "2.0.2",
4308+ "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz",
4309+ "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==",
4310+ "license": "MIT",
4311+ "engines": {
4312+ "node": ">= 0.4.0"
4313+ }
4314+ },
40564315 "node_modules/node-domexception": {
40574316 "version": "1.0.0",
40584317 "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
@@ -4323,6 +4582,61 @@
43234582 "url": "https://github.com/sponsors/sindresorhus"
43244583 }
43254584 },
4585+ "node_modules/pac-proxy-agent": {
4586+ "version": "7.0.2",
4587+ "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.2.tgz",
4588+ "integrity": "sha512-BFi3vZnO9X5Qt6NRz7ZOaPja3ic0PhlsmCRYLOpN11+mWBCR6XJDqW5RF3j8jm4WGGQZtBA+bTfxYzeKW73eHg==",
4589+ "license": "MIT",
4590+ "dependencies": {
4591+ "@tootallnate/quickjs-emscripten": "^0.23.0",
4592+ "agent-base": "^7.0.2",
4593+ "debug": "^4.3.4",
4594+ "get-uri": "^6.0.1",
4595+ "http-proxy-agent": "^7.0.0",
4596+ "https-proxy-agent": "^7.0.5",
4597+ "pac-resolver": "^7.0.1",
4598+ "socks-proxy-agent": "^8.0.4"
4599+ },
4600+ "engines": {
4601+ "node": ">= 14"
4602+ }
4603+ },
4604+ "node_modules/pac-proxy-agent/node_modules/debug": {
4605+ "version": "4.3.7",
4606+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
4607+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
4608+ "license": "MIT",
4609+ "dependencies": {
4610+ "ms": "^2.1.3"
4611+ },
4612+ "engines": {
4613+ "node": ">=6.0"
4614+ },
4615+ "peerDependenciesMeta": {
4616+ "supports-color": {
4617+ "optional": true
4618+ }
4619+ }
4620+ },
4621+ "node_modules/pac-proxy-agent/node_modules/ms": {
4622+ "version": "2.1.3",
4623+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
4624+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
4625+ "license": "MIT"
4626+ },
4627+ "node_modules/pac-resolver": {
4628+ "version": "7.0.1",
4629+ "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz",
4630+ "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==",
4631+ "license": "MIT",
4632+ "dependencies": {
4633+ "degenerator": "^5.0.0",
4634+ "netmask": "^2.0.2"
4635+ },
4636+ "engines": {
4637+ "node": ">= 14"
4638+ }
4639+ },
43264640 "node_modules/pako": {
43274641 "version": "1.0.11",
43284642 "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
@@ -4355,13 +4669,13 @@
43554669 "license": "MIT"
43564670 },
43574671 "node_modules/parse-bmfont-xml": {
43584672 "version": "1.1.46",
43594673 "resolved": "https://registry.npmjs.org/parse-bmfont-xml/-/parse-bmfont-xml-1.1.46.tgz",
43604674 "integrity": "sha512-bjnliEOmGv3y1aMEfREMBJ9tfL3WR0i0CKPj61DnSLaoxWR3nLrsQrEbCId/8rF4NyRF0cCqisSVXyQYWM0cEliVMZEhrFDwMh4SxIyVJpqYoOWDJ9P895tFuS+mCQXuNzI5UBmBk5U5O4KuJdTnZpSBI4LFA2+ZiJaiwfSwlMA==",
43614675 "license": "MIT",
43624676 "dependencies": {
43634677 "xml-parse-from-string": "^1.0.0",
43644678 "xml2js": "^0.4.5.0"
43654679 }
43664680 },
43674681 "node_modules/parse-headers": {
@@ -4477,6 +4791,7 @@
44774791 "version": "3.7.1",
44784792 "resolved": "https://registry.npmjs.org/phin/-/phin-3.7.1.tgz",
44794793 "integrity": "sha512-GEazpTWwTZaEQ9RhL7Nyz0WwqilbqgLahDM3D0hxWwmVDI52nXEybHqiN6/elwpkJBhcuj+WbBu+QfT0uhPGfQ==",
4794+ "license": "MIT",
44804795 "dependencies": {
44814796 "centra": "^2.7.0"
44824797 },
@@ -4618,6 +4933,57 @@
46184933 "node": ">= 0.10"
46194934 }
46204935 },
4936+ "node_modules/proxy-agent": {
4937+ "version": "6.4.0",
4938+ "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.4.0.tgz",
4939+ "integrity": "sha512-u0piLU+nCOHMgGjRbimiXmA9kM/L9EHh3zL81xCdp7m+Y2pHIsnmbdDoEDoAz5geaonNR6q6+yOPQs6n4T6sBQ==",
4940+ "license": "MIT",
4941+ "dependencies": {
4942+ "agent-base": "^7.0.2",
4943+ "debug": "^4.3.4",
4944+ "http-proxy-agent": "^7.0.1",
4945+ "https-proxy-agent": "^7.0.3",
4946+ "lru-cache": "^7.14.1",
4947+ "pac-proxy-agent": "^7.0.1",
4948+ "proxy-from-env": "^1.1.0",
4949+ "socks-proxy-agent": "^8.0.2"
4950+ },
4951+ "engines": {
4952+ "node": ">= 14"
4953+ }
4954+ },
4955+ "node_modules/proxy-agent/node_modules/debug": {
4956+ "version": "4.3.7",
4957+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
4958+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
4959+ "license": "MIT",
4960+ "dependencies": {
4961+ "ms": "^2.1.3"
4962+ },
4963+ "engines": {
4964+ "node": ">=6.0"
4965+ },
4966+ "peerDependenciesMeta": {
4967+ "supports-color": {
4968+ "optional": true
4969+ }
4970+ }
4971+ },
4972+ "node_modules/proxy-agent/node_modules/lru-cache": {
4973+ "version": "7.18.3",
4974+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
4975+ "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
4976+ "license": "ISC",
4977+ "engines": {
4978+ "node": ">=12"
4979+ }
4980+ },
4981+ "node_modules/proxy-agent/node_modules/ms": {
4982+ "version": "2.1.3",
4983+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
4984+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
4985+ "license": "MIT"
4986+ },
46214987 "node_modules/proxy-from-env": {
46224988 "version": "1.1.0",
46234989 "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
@@ -4644,12 +5010,12 @@
46445010 }
46455011 },
46465012 "node_modules/qs": {
46475013 "version": "6.1113.0",
46485014 "resolved": "https://registry.npmjs.org/qs/-/qs-6.1113.0.tgz",
46495015 "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/MaJzRkIk4QXOq7UU2Nx6nsjvS16Z9uwfpg==",
46505016 "license": "BSD-3-Clause",
46515017 "dependencies": {
46525018 "side-channel": "^1.0.46"
46535019 },
46545020 "engines": {
46555021 "node": ">=0.6"
@@ -4956,9 +5322,9 @@
49565322 }
49575323 },
49585324 "node_modules/sax": {
49595325 "version": "1.2.4.1",
49605326 "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.1.tgz",
49615327 "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9+aWOz7yVScEGoKNd4PA10LZ8sk0A/atZwz5+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWwnXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==",
49625328 "license": "ISC"
49635329 },
49645330 "node_modules/send": {
@@ -4985,6 +5351,15 @@
49855351 "node": ">= 0.8.0"
49865352 }
49875353 },
5354+ "node_modules/send/node_modules/encodeurl": {
5355+ "version": "1.0.2",
5356+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
5357+ "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
5358+ "license": "MIT",
5359+ "engines": {
5360+ "node": ">= 0.8"
5361+ }
5362+ },
49885363 "node_modules/send/node_modules/ms": {
49895364 "version": "2.1.3",
49905365 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
@@ -4992,15 +5367,15 @@
49925367 "license": "MIT"
49935368 },
49945369 "node_modules/serve-static": {
49955370 "version": "1.16.02",
49965371 "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.02.tgz",
49975372 "integrity": "sha512-pDLK8zwl2eKaYrs8mrPZBJua4hMplRWJ1tIFksVC3FtBEBnl8dxgeHtsaMS8DhS9i4fLObaon6ABoc4VqpjJZKadQB/hQGdPAPEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
49985373 "license": "MIT",
49995374 "dependencies": {
50005375 "encodeurl": "~12.0.20",
50015376 "escape-html": "~1.0.3",
50025377 "parseurl": "~1.3.3",
50035378 "send": "0.1819.0"
50045379 },
50055380 "engines": {
50065381 "node": ">= 0.8.0"
@@ -5135,6 +5510,83 @@
51355510 "integrity": "sha512-VZBmZP8WU3sMOZm1bdgTadsQbcscK0UM8oKxKVBs4XAhUo2Xxzm/OFMGBkPusxw9xL3Uy8LrzEqGqJhclsr0yA==",
51365511 "license": "MIT"
51375512 },
5513+ "node_modules/smart-buffer": {
5514+ "version": "4.2.0",
5515+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
5516+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
5517+ "license": "MIT",
5518+ "engines": {
5519+ "node": ">= 6.0.0",
5520+ "npm": ">= 3.0.0"
5521+ }
5522+ },
5523+ "node_modules/socks": {
5524+ "version": "2.8.3",
5525+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz",
5526+ "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==",
5527+ "license": "MIT",
5528+ "dependencies": {
5529+ "ip-address": "^9.0.5",
5530+ "smart-buffer": "^4.2.0"
5531+ },
5532+ "engines": {
5533+ "node": ">= 10.0.0",
5534+ "npm": ">= 3.0.0"
5535+ }
5536+ },
5537+ "node_modules/socks-proxy-agent": {
5538+ "version": "8.0.4",
5539+ "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.4.tgz",
5540+ "integrity": "sha512-GNAq/eg8Udq2x0eNiFkr9gRg5bA7PXEWagQdeRX4cPSG+X/8V38v637gim9bjFptMk1QWsCTr0ttrJEiXbNnRw==",
5541+ "license": "MIT",
5542+ "dependencies": {
5543+ "agent-base": "^7.1.1",
5544+ "debug": "^4.3.4",
5545+ "socks": "^2.8.3"
5546+ },
5547+ "engines": {
5548+ "node": ">= 14"
5549+ }
5550+ },
5551+ "node_modules/socks-proxy-agent/node_modules/debug": {
5552+ "version": "4.3.7",
5553+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
5554+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
5555+ "license": "MIT",
5556+ "dependencies": {
5557+ "ms": "^2.1.3"
5558+ },
5559+ "engines": {
5560+ "node": ">=6.0"
5561+ },
5562+ "peerDependenciesMeta": {
5563+ "supports-color": {
5564+ "optional": true
5565+ }
5566+ }
5567+ },
5568+ "node_modules/socks-proxy-agent/node_modules/ms": {
5569+ "version": "2.1.3",
5570+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
5571+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
5572+ "license": "MIT"
5573+ },
5574+ "node_modules/source-map": {
5575+ "version": "0.6.1",
5576+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
5577+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
5578+ "license": "BSD-3-Clause",
5579+ "optional": true,
5580+ "engines": {
5581+ "node": ">=0.10.0"
5582+ }
5583+ },
5584+ "node_modules/sprintf-js": {
5585+ "version": "1.1.3",
5586+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
5587+ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
5588+ "license": "BSD-3-Clause"
5589+ },
51385590 "node_modules/statuses": {
51395591 "version": "2.0.1",
51405592 "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
@@ -5286,9 +5738,10 @@
52865738 "license": "MIT"
52875739 },
52885740 "node_modules/tiktoken": {
52895741 "version": "1.0.1516",
52905742 "resolved": "https://registry.npmjs.org/tiktoken/-/tiktoken-1.0.1516.tgz",
52915743 "integrity": "sha512-sCsrq/vMWUSEW29CJLNmPvWxlVp7yh2tlkAjpJltIKqp5CKf98ZNpdeHRmAlPVFlGEbswDc6SmI8vz64WhRcORIGF2YlAgWx3nzrGJOrKSJwLoc81HpXmMQk89632XAgURc7IeV2FgQ2iXo9z/qErwJ96fCvpsHg2kWoHcbj9fg==",
5744+ "license": "MIT"
52925745 },
52935746 "node_modules/timm": {
52945747 "version": "1.7.1",
@@ -5348,6 +5801,12 @@
53485801 "utf8-byte-length": "^1.0.1"
53495802 }
53505803 },
5804+ "node_modules/tslib": {
5805+ "version": "2.7.0",
5806+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz",
5807+ "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==",
5808+ "license": "0BSD"
5809+ },
53515810 "node_modules/tsscmp": {
53525811 "version": "1.0.6",
53535812 "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.6.tgz",
@@ -5407,6 +5866,15 @@
54075866 "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
54085867 "license": "MIT"
54095868 },
5869+ "node_modules/universalify": {
5870+ "version": "2.0.1",
5871+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
5872+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
5873+ "license": "MIT",
5874+ "engines": {
5875+ "node": ">= 10.0.0"
5876+ }
5877+ },
54105878 "node_modules/unpipe": {
54115879 "version": "1.0.0",
54125880 "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
package.json+4 -12
@@ -12,7 +12,7 @@
1212 "cookie-session": "^2.1.0",
1313 "cors": "^2.8.5",
1414 "csrf-csrf": "^2.2.3",
1515 "express": "^4.2021.0",
1616 "form-data": "^4.0.0",
1717 "google-translate-api-browser": "^3.0.1",
1818 "he": "^1.2.0",
@@ -30,12 +30,13 @@
3030 "png-chunk-text": "^1.0.0",
3131 "png-chunks-encode": "^1.0.0",
3232 "png-chunks-extract": "^1.0.0",
33+ "proxy-agent": "^6.4.0",
3334 "rate-limiter-flexible": "^5.0.0",
3435 "response-time": "^2.3.2",
3536 "sanitize-filename": "^1.6.3",
3637 "sillytavern-transformers": "2.14.6",
3738 "simple-git": "^3.19.1",
3839 "tiktoken": "^1.0.1516",
3940 "vectra": "^0.2.2",
4041 "wavefile": "^11.0.0",
4142 "write-file-atomic": "^5.0.1",
@@ -48,23 +49,14 @@
4849 "node": ">= 18"
4950 },
5051 "overrides": {
51- "parse-bmfont-xml": {
52- "xml2js": "^0.5.0"
53- },
5452 "vectra": {
5553 "openai": "^4.17.0"
5654 },
57- "load-bmfont": {
58- "phin": "^3.7.1"
59- },
6055 "axios": {
6156 "follow-redirects": "^1.15.4"
6257 },
6358 "node-fetch": {
6459 "whatwg-url": "^14.0.0"
65- },
66- "express": {
67- "send": "^0.19.0"
6860 }
6961 },
7062 "name": "sillytavern",
@@ -74,7 +66,7 @@
7466 "type": "git",
7567 "url": "https://github.com/SillyTavern/SillyTavern.git"
7668 },
7769 "version": "1.12.56",
7870 "scripts": {
7971 "start": "node server.js",
8072 "start:no-csrf": "node server.js --disableCsrf",
plugins.js+4 -2
@@ -1,11 +1,14 @@
11// Plugin manager script.
22// Usage: node plugins.js update
3+// 1. node plugins.js update
4+// 2. node plugins.js install <plugin-git-url>
35// More operations coming soon.
46const { default: git } = require('simple-git');
57const fs = require('fs');
68const path = require('path');
79const { color } = require('./src/util');
810
11+process.chdir(__dirname);
912const pluginsPath = './plugins';
1013
1114const command = process.argv[2];
@@ -55,7 +58,6 @@ async function updatePlugins() {
5558 }
5659
5760 console.log(color.magenta('All plugins updated!'));
58-
5961}
6062
6163async function installPlugin(pluginName) {
public/css/mobile-styles.css+18 -20
@@ -1,6 +1,16 @@
11/*will apply to anything 1000px or less. this catches ipads, horizontal phones, and vertical phones)*/
22@media screen and (max-width: 1000px) {
33
4+ #UI-Theme-Block,
5+ #UI-Customization,
6+ #power-user-options-block,
7+ #ContextSettings,
8+ #InstructSettingsColumn,
9+ #InstructSequencesColumn {
10+ flex-basis: 100%;
11+ }
12+
13+
414 #send_form.compact #leftSendForm,
515 #send_form.compact #rightSendForm {
616 flex-wrap: nowrap;
@@ -93,7 +103,6 @@
93103 touch-action: none;
94104 overflow: hidden;
95105 position: fixed;
96-
97106 }
98107
99108 .world_entry_form_control {
@@ -102,7 +111,7 @@
102111
103112 .drawer-content {
104113 min-width: unset;
105114 width: 100%100dvw;
106115 max-height: calc(100vh - 45px);
107116 max-height: calc(100dvh - 45px);
108117 position: fixed;
@@ -149,9 +158,9 @@
149158 #sheld,
150159 #character_popup,
151160 .drawer-content {
152161 width: 100%100dvw !important;
153162 margin: 0 auto;
154163 max-width: 100%100dvw;
155164 left: 0 !important;
156165 resize: none !important;
157166 top: var(--topBarBlockSize);
@@ -223,9 +232,9 @@
223232 /* 100vh are fallback units for browsers that don't support dvh */
224233 height: calc(100vh - 45px);
225234 height: calc(100dvh - 45px);
226235 min-width: 100%100dvw !important;
227236 width: 100%100dvw !important;
228237 max-width: 100%100dvw !important;
229238 overflow-y: hidden;
230239 border-left: 1px solid var(--SmartThemeBorderColor);
231240 border-right: 1px solid var(--SmartThemeBorderColor);
@@ -342,17 +351,6 @@
342351 }
343352}
344353
345-@media screen and (min-width: 1001px) {
346-
347- #PygOverrides,
348- #ContextFormatting,
349- #UI-Theme-Block,
350- #UI-Customization,
351- #power-user-options-block {
352- flex: 1;
353- }
354-}
355-
356354/*landscape mode phones and ipads*/
357355@media screen and (max-width: 1000px) and (orientation: landscape) {
358356 body.waifuMode img.expression {
@@ -482,10 +480,10 @@
482480 margin: 0 auto;
483481 height: calc(100vh - 70px);
484482 height: calc(100dvh - 70px);
485483 width: calc(100%100dvw - 5px);
486484 max-height: calc(100vh - 70px);
487485 max-height: calc(100dvh - 70px);
488486 max-width: calc(100%100dvw - 5px);
489487
490488 }
491489
public/css/popup.css+4 -0
@@ -47,6 +47,10 @@ dialog {
4747 padding: 1px;
4848}
4949
50+.popup:not(:has(.img_enlarged_container)) .popup-body {
51+ max-height: 95dvh;
52+}
53+
5054.popup .popup-content {
5155 margin-top: 10px;
5256 padding: 0 8px;
public/css/promptmanager.css+35 -8
@@ -91,15 +91,34 @@
9191#completion_prompt_manager_popup #completion_prompt_manager_popup_inspect {
9292 display: none;
9393 padding: 0.5em;
94+ height: 100%;
95+ display: flex;
96+ flex-direction: column;
9497}
9598
9699#completion_prompt_manager_popup .completion_prompt_manager_popup_entry {
97100 padding: 1em0.5em;
98101 margin-topflex: 2em1;
102+}
103+
104+#completion_prompt_manager_popup .completion_prompt_manager_popup_entry_form {
105+ height: 100%;
106+ display: flex;
107+ flex-direction: column;
108+}
109+
110+#completion_prompt_manager_popup .completion_prompt_manager_popup_entry_form_control:has(#completion_prompt_manager_popup_entry_form_prompt) {
111+ flex: 1;
112+ display: flex;
113+ flex-direction: column;
114+}
115+
116+#completion_prompt_manager_popup #completion_prompt_manager_popup_entry_form_prompt {
117+ flex: 1;
99118}
100119
101120#completion_prompt_manager_popup #completion_prompt_manager_popup_inspect .completion_prompt_manager_popup_entry {
102121 padding: 1em0.5em;
103122}
104123
105124#completion_prompt_manager_popup #completion_prompt_manager_popup_entry_form_inspect_list {
@@ -248,7 +267,7 @@
248267}
249268
250269#completion_prompt_manager_footer_append_prompt {
251270 font-size: 16px1em;
252271}
253272
254273#prompt-manager-export-format-popup {
@@ -303,10 +322,6 @@
303322 justify-content: space-between;
304323}
305324
306-#prompt-manager-export-format-popup span {
307- font-size: 16px;
308-}
309-
310325@media screen and (max-width: 412px) {
311326 #completion_prompt_manager_popup {
312327 max-width: 100%;
@@ -316,3 +331,15 @@
316331 margin-left: 0.5em;
317332 }
318333}
334+
335+.completion_prompt_manager_popup_entry_form_control:has(#completion_prompt_manager_popup_entry_form_prompt:disabled)>div:first-child::after {
336+ content: 'The content of this prompt is pulled from elsewhere and cannot be edited here.';
337+ display: block;
338+ width: 100%;
339+ font-weight: 600;
340+ text-align: center;
341+}
342+
343+.completion_prompt_manager_popup_entry_form_control #completion_prompt_manager_popup_entry_form_prompt:disabled {
344+ visibility: hidden;
345+}
public/css/select2-overrides.css+6 -1
@@ -15,8 +15,13 @@
1515 z-index: 40000;
1616}
1717
1818.select2-container .select2-selection .select2-selection__clear {
1919 color: var(--SmartThemeBodyColor);
20+ font-size: 24px;
21+ padding: 0;
22+ position: absolute;
23+ right: 5px;
24+ top: 0;
2025}
2126
2227.select2-container .select2-search__field {
public/css/st-tailwind.css+8 -0
@@ -360,6 +360,10 @@
360360 margin-right: 2px;
361361}
362362
363+.flexAuto {
364+ flex: auto;
365+}
366+
363367.flex0 {
364368 flex: 0;
365369}
@@ -495,6 +499,10 @@ textarea:disabled {
495499 filter: brightness(0.5);
496500}
497501
502+#AdvancedFormatting .disabled {
503+ filter: brightness(0.5);
504+}
505+
498506.debug-red {
499507 border: 1px solid red !important;
500508}
public/css/toggle-dependent.css+6 -2
@@ -28,8 +28,8 @@ body.hideChatAvatars .mesAvatarWrapper .avatar {
2828 display: none !important;
2929}
3030
3131body.hideChatAvatars .last_mes:not(.smallSysMes) {
3232 padding-bottom: 40px20px !important;
3333}
3434
3535body.square-avatars .avatar,
@@ -455,3 +455,7 @@ body.expandMessageActions .mes .mes_buttons .extraMesButtonsHint {
455455#smooth_streaming:checked~#smooth_streaming_speed_control {
456456 display: block;
457457}
458+
459+.mdhotkey_icon {
460+ opacity: 0.6;
461+}
public/css/world-info.css+4 -0
@@ -274,3 +274,7 @@ select.keyselect+span.select2-container .select2-selection--multiple {
274274 align-self: center;
275275 width: 100%;
276276}
277+
278+.world_entry:has(input[name="delay_until_recursion"]:not(:checked)) .world_entry_form_control:has(input[name="delayUntilRecursionLevel"]) {
279+ display: none;
280+}
public/img/ai4.png+0 -0

Binary file

public/img/down-arrow.svg+3 -0
@@ -0,0 +1,3 @@
1+<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7">
2+ <polygon points="0,0 10,0 5,7" fill="#888888" />
3+</svg>
public/img/user-default.png+0 -0

Binary file

public/index.html+998 -962
@@ -5,7 +5,7 @@
55 <title>SillyTavern</title>
66 <base href="/">
77 <meta charset="utf-8">
88 <meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1, maximum-scale=1.0, user-scalable=no, interactive-widget=resizes-content">
99 <meta name="apple-mobile-web-app-capable" content="yes">
1010 <meta name="darkreader-lock">
1111 <meta name="robots" content="noindex, nofollow" />
@@ -65,7 +65,7 @@
6565 <!-- background selection menu -->
6666 <div id="ai-config-button" class="drawer">
6767 <div class="drawer-toggle drawer-header">
6868 <div id="leftNavDrawerIcon" class="drawer-icon fa-solid fa-sliders fa-fw closedIcon" title="AI Response Configuration" data-i18n="[title]AI Response Configuration"></div>
6969 </div>
7070 <div id="left-nav-panel" class="drawer-content fillLeft closedDrawer">
7171 <div id="left-nav-panelheader" class="fa-solid fa-grip drag-grabber"></div>
@@ -98,12 +98,12 @@
9898 </select>
9999 <div class="flex-container marginLeft5 ">
100100 <input type="file" hidden data-preset-manager-file="kobold" accept=".json, .settings">
101101 <i data-newbie-hidden data-preset-manager-update="kobold" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i>
102102 <i data-newbie-hidden data-preset-manager-new="kobold" class="menu_button fa-solid fa-file-circle-plus" title="Save preset as" data-i18n="[title]Save preset as"></i>
103103 <i data-newbie-hidden data-preset-manager-import="kobold" class="menu_button fa-solid fa-file-import" title="Import preset" data-i18n="[title]Import preset"></i>
104104 <i data-newbie-hidden data-preset-manager-export="kobold" class="menu_button fa-solid fa-file-export" title="Export preset" data-i18n="[title]Export preset"></i>
105105 <i data-newbie-hidden data-preset-manager-restore="kobold" class="menu_button fa-solid fa-recycle" title="Restore current preset" data-i18n="[title]Restore current preset"></i>
106106 <i data-newbie-hidden data-preset-manager-delete="kobold" class="menu_button fa-solid fa-trash-can" title="Delete the preset" data-i18n="[title]Delete the preset"></i>
107107 </div>
108108 </div>
109109 </div>
@@ -119,13 +119,13 @@
119119 <option value="gui" data-i18n="Default">Default</option>
120120 </select>
121121 <div class="flex-container marginLeft5 ">
122122 <input type="file" hidden data-preset-manager-file="novel" accept=".json, .settings, .preset">
123123 <i data-newbie-hidden data-preset-manager-update="novel" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i>
124124 <i data-newbie-hidden data-preset-manager-new="novel" class="menu_button fa-solid fa-file-circle-plus" title="Save preset as" data-i18n="[title]Save preset as"></i>
125125 <i data-newbie-hidden data-preset-manager-import="novel" class="menu_button fa-solid fa-file-import" title="Import preset" data-i18n="[title]Import preset"></i>
126126 <i data-newbie-hidden data-preset-manager-export="novel" class="menu_button fa-solid fa-file-export" title="Export preset" data-i18n="[title]Export preset"></i>
127127 <i data-newbie-hidden data-preset-manager-restore="novel" class="menu_button fa-solid fa-recycle" title="Restore current preset" data-i18n="[title]Restore current preset"></i>
128128 <i data-newbie-hidden data-preset-manager-delete="novel" class="menu_button fa-solid fa-trash-can" title="Delete the preset" data-i18n="[title]Delete the preset"></i>
129129 </div>
130130 </div>
131131 </div>
@@ -140,9 +140,9 @@
140140 <input id="openai_preset_import_file" type="file" accept=".json,.settings" hidden />
141141 <i id="update_oai_preset" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i>
142142 <i id="new_oai_preset" class="menu_button fa-solid fa-file-circle-plus" title="Save preset as" data-i18n="[title]Save preset as"></i>
143143 <i data-newbie-hidden id="import_oai_preset" class="menu_button fa-solid fa-file-import" title="Import preset" data-i18n="[title]Import preset"></i>
144144 <i data-newbie-hidden id="export_oai_preset" class="menu_button fa-solid fa-file-export" title="Export preset" data-i18n="[title]Export preset"></i>
145145 <i data-newbie-hidden id="delete_oai_preset" class="menu_button fa-solid fa-trash-can" title="Delete the preset" data-i18n="[title]Delete the preset"></i>
146146 </div>
147147 </div>
148148 </div>
@@ -154,17 +154,17 @@
154154 </select>
155155 <div class="flex-container marginLeft5 ">
156156 <input type="file" hidden data-preset-manager-file="textgenerationwebui" accept=".json, .settings">
157157 <i data-newbie-hidden data-preset-manager-update="textgenerationwebui" class="menu_button fa-solid fa-save" title="Update current preset" data-i18n="[title]Update current preset"></i>
158158 <i data-newbie-hidden data-preset-manager-new="textgenerationwebui" class="menu_button fa-solid fa-file-circle-plus" title="Save preset as" data-i18n="[title]Save preset as"></i>
159159 <i data-newbie-hidden data-preset-manager-import="textgenerationwebui" class="menu_button fa-solid fa-file-import" title="Import preset" data-i18n="[title]Import preset"></i>
160160 <i data-newbie-hidden data-preset-manager-export="textgenerationwebui" class="menu_button fa-solid fa-file-export" title="Export preset" data-i18n="[title]Export preset"></i>
161161 <i data-newbie-hidden data-preset-manager-restore="textgenerationwebui" class="menu_button fa-solid fa-recycle" title="Restore current preset" data-i18n="[title]Restore current preset"></i>
162162 <i data-newbie-hidden data-preset-manager-delete="textgenerationwebui" class="menu_button fa-solid fa-trash-can" title="Delete the preset" data-i18n="[title]Delete the preset"></i>
163163 </div>
164164 </div>
165165 </div>
166166 </div>
167167 <div data-newbie-hidden id="ai_module_block_novel" class="width100p">
168168 <div class="range-block">
169169 <div class="range-block-title justifyLeft" data-i18n="AI Module">
170170 AI Module
@@ -215,7 +215,7 @@
215215 <label class="checkbox_label">
216216 <input id="max_context_unlocked" type="checkbox" />
217217 <small><span data-i18n="unlocked">Unlocked</span>
218218 <div id="max_context_unlocked_warning" class="fa-solid fa-circle-info opacity50p " data-i18n="[title]Only enable this if your model supports context sizes greater than 40968192 tokens" title="Only enable this if your model supports context sizes greater than 40968192 tokens.&#13;Increase only if you know what you're doing."></div>
219219 </small>
220220 </label>
221221 </div>
@@ -271,7 +271,7 @@
271271 </div>
272272 </div>
273273 </div>
274274 <div data-newbie-hidden class="range-block">
275275 <div class="range-block-title" data-i18n="Rep. Pen. Range.">
276276 Rep Pen Range
277277 </div>
@@ -284,7 +284,7 @@
284284 </div>
285285 </div>
286286 </div>
287287 <div data-newbie-hidden class="range-block">
288288 <div class="range-block-title" data-i18n="Rep. Pen. Slope">
289289 Repetition Penalty Slope
290290 </div>
@@ -297,7 +297,7 @@
297297 </div>
298298 </div>
299299 </div>
300300 <div data-newbie-hidden class="range-block">
301301 <div class="range-block-title" data-i18n="Rep. Pen. Freq.">
302302 Repetition Penalty Frequency
303303 </div>
@@ -310,7 +310,7 @@
310310 </div>
311311 </div>
312312 </div>
313313 <div data-newbie-hidden class="range-block">
314314 <div class="range-block-title" data-i18n="Rep. Pen. Presence">
315315 Repetition Penalty Presence
316316 </div>
@@ -323,7 +323,20 @@
323323 </div>
324324 </div>
325325 </div>
326326 <div data-newbie-hidden class="range-block">
327+ <div class="range-block-title" data-i18n="Min P">
328+ Min P
329+ </div>
330+ <div class="range-block-range-and-counter">
331+ <div class="range-block-range">
332+ <input type="range" id="min_p_novel" name="volume" min="0" max="1" step="0.001">
333+ </div>
334+ <div class="range-block-counter">
335+ <input type="number" min="0" max="1" step="0.001" data-for="min_p_novel" id="min_p_counter_novel">
336+ </div>
337+ </div>
338+ </div>
339+ <div class="range-block">
327340 <div class="range-block-title" data-i18n="TFS">
328341 TFS
329342 </div>
@@ -336,7 +349,137 @@
336349 </div>
337350 </div>
338351 </div>
339352 <div data-newbie-hidden class="range-block">
353+ <div class="range-block-title" data-i18n="Top P">
354+ Top P
355+ </div>
356+ <div class="range-block-range-and-counter">
357+ <div class="range-block-range">
358+ <input type="range" id="top_p_novel" name="volume" min="0" max="1" step="0.001">
359+ </div>
360+ <div class="range-block-counter">
361+ <input type="number" min="0" max="1" step="0.001" data-for="top_p_novel" id="top_p_counter_novel">
362+ </div>
363+ </div>
364+ </div>
365+ <div class="range-block">
366+ <div class="range-block-title" data-i18n="Top A">
367+ Top A
368+ </div>
369+ <div class="range-block-range-and-counter">
370+ <div class="range-block-range">
371+ <input type="range" id="top_a_novel" name="volume" min="0" max="1" step="0.001">
372+ </div>
373+ <div class="range-block-counter">
374+ <input type="number" min="0" max="1" step="0.001" data-for="top_a_novel" id="top_a_counter_novel">
375+ </div>
376+ </div>
377+ </div>
378+ <div class="range-block">
379+ <div class="range-block-title" data-i18n="Top K">
380+ Top K
381+ </div>
382+ <div class="range-block-range-and-counter">
383+ <div class="range-block-range">
384+ <input type="range" id="top_k_novel" name="volume" min="0" max="300" step="1">
385+ </div>
386+ <div class="range-block-counter">
387+ <input type="number" min="0" max="300" step="1" data-for="top_k_novel" id="top_k_counter_novel">
388+ </div>
389+ </div>
390+ </div>
391+ <div class="range-block">
392+ <div class="range-block-title" data-i18n="Mirostat Tau">
393+ Mirostat Tau
394+ </div>
395+ <div class="range-block-range-and-counter">
396+ <div class="range-block-range">
397+ <input type="range" id="mirostat_tau_novel" name="volume" min="0" max="6" step="0.01">
398+ </div>
399+ <div class="range-block-counter">
400+ <input type="number" min="0" max="6" step="0.01" data-for="mirostat_tau_novel" id="mirostat_tau_counter_novel">
401+ </div>
402+ </div>
403+ </div>
404+ <div class="range-block">
405+ <div class="range-block-title" data-i18n="Mirostat LR">
406+ Mirostat LR
407+ </div>
408+ <div class="range-block-range-and-counter">
409+ <div class="range-block-range">
410+ <input type="range" id="mirostat_lr_novel" name="volume" min="0" max="1" step="0.01">
411+ </div>
412+ <div class="range-block-counter">
413+ <input type="number" min="0" max="1" step="0.01" data-for="mirostat_lr_novel" id="mirostat_lr_counter_novel">
414+ </div>
415+ </div>
416+ </div>
417+ <div class="range-block">
418+ <div class="range-block-title" data-i18n="Typical P">
419+ Typical P
420+ </div>
421+ <div class="range-block-range-and-counter">
422+ <div class="range-block-range">
423+ <input type="range" id="typical_p_novel" name="volume" min="0" max="1" step="0.001">
424+ </div>
425+ <div class="range-block-counter">
426+ <input type="number" min="0" max="1" step="0.001" data-for="typical_p_novel" id="typical_p_counter_novel">
427+ </div>
428+ </div>
429+ </div>
430+ <div class="range-block">
431+ <div class="range-block-title" data-i18n="Linear">
432+ Linear
433+ </div>
434+ <div class="range-block-range-and-counter">
435+ <div class="range-block-range">
436+ <input type="range" id="math1_temp_novel" name="volume" min="0" max="1.5" step="0.01">
437+ </div>
438+ <div class="range-block-counter">
439+ <input type="number" min="0" max="1.5" step="0.01" data-for="math1_temp_novel" id="math1_temp_counter_novel">
440+ </div>
441+ </div>
442+ </div>
443+ <div class="range-block">
444+ <div class="range-block-title" data-i18n="Quad">
445+ Quad
446+ </div>
447+ <div class="range-block-range-and-counter">
448+ <div class="range-block-range">
449+ <input type="range" id="math1_quad_novel" name="volume" min="0" max="0.4" step="0.01">
450+ </div>
451+ <div class="range-block-counter">
452+ <input type="number" min="0" max="0.4" step="0.01" data-for="math1_quad_novel" id="math1_quad_counter_novel">
453+ </div>
454+ </div>
455+ </div>
456+ <div class="range-block">
457+ <div class="range-block-title" data-i18n="Conf">
458+ Conf
459+ </div>
460+ <div class="range-block-range-and-counter">
461+ <div class="range-block-range">
462+ <input type="range" id="math1_quad_entropy_scale_novel" name="volume" min="-0.4" max="0.4" step="0.01">
463+ </div>
464+ <div class="range-block-counter">
465+ <input type="number" min="-0.4" max="0.4" step="0.01" data-for="math1_quad_entropy_scale_novel" id="math1_quad_entropy_scale_counter_novel">
466+ </div>
467+ </div>
468+ </div>
469+ <div class="range-block">
470+ <div class="range-block-title" data-i18n="Min Length">
471+ Min Length
472+ </div>
473+ <div class="range-block-range-and-counter">
474+ <div class="range-block-range">
475+ <input type="range" id="min_length_novel" name="volume" min="1" max="150" step="1">
476+ </div>
477+ <div class="range-block-counter">
478+ <input type="number" min="1" max="150" step="1" data-for="min_length_novel" id="min_length_counter_novel">
479+ </div>
480+ </div>
481+ </div>
482+ <div class="range-block">
340483 <div class="range-block-title" data-i18n="Phrase Repetition Penalty">
341484 Phrase Repetition Penalty
342485 </div>
@@ -349,9 +492,49 @@
349492 <option value="very_aggressive" data-i18n="Very aggressive">Very aggressive</option>
350493 </select>
351494 </div>
495+ <div class="range-block">
496+ <div class="range-block-title openai_restorable">
497+ <span data-i18n="Preamble">Preamble</span>
498+ <div id="nai_preamble_restore" title="Restore default prompt" data-i18n="[title]Restore default prompt" class="right_menu_button">
499+ <div class="fa-solid fa-clock-rotate-left "></div>
500+ </div>
501+ </div>
502+ <div class="toggle-description justifyLeft" data-i18n="Use style tags to modify the writing style of the output.">
503+ Use style tags to modify the writing style of the output.
504+ </div>
505+ <div class="wide100p">
506+ <textarea id="nai_preamble_textarea" class="text_pole textarea_compact" name="nai_preamble" rows="2" placeholder=""></textarea>
507+ </div>
508+ </div>
509+ <div class="range-block">
510+ <div class="range-block-title justifyLeft">
511+ <span data-i18n="Banned Tokens">Banned Tokens</span>
512+ </div>
513+ <div class="toggle-description justifyLeft" data-i18n="Sequences you don't want to appear in the output. One per line.">
514+ Sequences you don't want to appear in the output. One per line. Text or [token ids].
515+ </div>
516+ <div class="wide100p">
517+ <textarea id="nai_banned_tokens" class="text_pole textarea_compact" name="nai_banned_tokens" rows="3" placeholder="Example:&#10;some text&#10;[42, 69, 1337]"></textarea>
518+ </div>
519+ </div>
520+ <div class="range-block">
521+ <div id="logit_bias_novel" class="range-block-title title_restorable">
522+ <span data-i18n="Logit Bias">Logit Bias</span>
523+ <div id="novelai_logit_bias_new_entry" class="menu_button menu_button_icon">
524+ <i class="fa-xs fa-solid fa-plus"></i>
525+ <small data-i18n="Add">Add</small>
526+ </div>
527+ </div>
528+ <div class="toggle-description justifyLeft" data-i18n="Helps to ban or reenforce the usage of certain words">
529+ Helps to ban or reinforce the usage of certain tokens.
530+ </div>
531+ <div class="flex-container flexFlowColumn wide100p">
532+ <div class="logit_bias_list"></div>
533+ </div>
534+ </div>
352535 </div>
353536 <div id="range_block_openai">
354537 <div data-newbie-hidden class="range-block">
355538 <label class="checkbox_label">
356539 <input id="oai_max_context_unlocked" type="checkbox" />
357540 <span data-i18n="Unlocked Context Size">
@@ -383,7 +566,7 @@
383566 Max Response Length (tokens)
384567 </div>
385568 <div class="wide100p">
386569 <input type="number" id="openai_max_tokens" name="openai_max_tokens" class="text_pole" min="1" max="1638465536">
387570 </div>
388571 </div>
389572 <div class="range-block" data-source="openai,custom">
@@ -436,7 +619,7 @@
436619 </div>
437620 </div>
438621 </div>
439622 <div data-newbie-hidden class="range-block" data-source="openai,openrouter,ai21,custom,cohere,perplexity,groq">
440623 <div class="range-block-title" data-i18n="Frequency Penalty">
441624 Frequency Penalty
442625 </div>
@@ -449,7 +632,7 @@
449632 </div>
450633 </div>
451634 </div>
452635 <div data-newbie-hidden class="range-block" data-source="openai,openrouter,ai21,custom,cohere,perplexity,groq">
453636 <div class="range-block-title" data-i18n="Presence Penalty">
454637 Presence Penalty
455638 </div>
@@ -462,20 +645,7 @@
462645 </div>
463646 </div>
464647 </div>
465648 <div data-newbie-hidden class="range-block" data-source="ai21claude,openrouter,makersuite,cohere,perplexity">
466- <div class="range-block-title" data-i18n="Count Penalty">
467- Count Penalty
468- </div>
469- <div class="range-block-range-and-counter">
470- <div class="range-block-range">
471- <input type="range" id="count_pen" name="volume" min="0" max="1" step="0.01">
472- </div>
473- <div class="range-block-counter">
474- <input type="number" min="0" max="1" step="0.01" data-for="count_pen" id="count_pen_counter">
475- </div>
476- </div>
477- </div>
478- <div data-newbie-hidden class="range-block" data-source="claude,openrouter,ai21,makersuite,cohere,perplexity">
479649 <div class="range-block-title" data-i18n="Top K">
480650 Top K
481651 </div>
@@ -488,7 +658,7 @@
488658 </div>
489659 </div>
490660 </div>
491661 <div data-newbie-hidden class="range-block" data-source="openai,claude,openrouter,ai21,scale,makersuite,mistralai,custom,cohere,perplexity,groq,01ai">
492662 <div class="range-block-title" data-i18n="Top P">
493663 Top P
494664 </div>
@@ -501,7 +671,7 @@
501671 </div>
502672 </div>
503673 </div>
504674 <div data-newbie-hidden class="range-block" data-source="openrouter">
505675 <div class="range-block-title" data-i18n="Repetition Penalty">
506676 Repetition Penalty
507677 </div>
@@ -514,7 +684,7 @@
514684 </div>
515685 </div>
516686 </div>
517687 <div data-newbie-hidden class="range-block" data-source="openrouter">
518688 <div class="range-block-title" data-i18n="Min P">
519689 Min P
520690 </div>
@@ -527,7 +697,7 @@
527697 </div>
528698 </div>
529699 </div>
530700 <div data-newbie-hidden class="range-block" data-source="openrouter">
531701 <div class="range-block-title" data-i18n="Top A">
532702 Top A
533703 </div>
@@ -566,7 +736,7 @@
566736 </div>
567737 </div>
568738 </div>
569739 <div data-newbie-hidden class="inline-drawer wide100p">
570740 <div class="inline-drawer-toggle inline-drawer-header">
571741 <b data-i18n="Utility Prompts">Utility Prompts</b>
572742 <div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
@@ -725,7 +895,7 @@
725895 </div>
726896 </div>
727897 </div>
728898 <div data-newbie-hidden class="range-block" data-source="openai,openrouter,mistralai,custom,cohere,groq">
729899 <div class="range-block-title justifyLeft" data-i18n="Seed">
730900 Seed
731901 </div>
@@ -749,7 +919,7 @@
749919 <input class="neo-range-slider" type="range" id="temp" name="volume" min="0.0" max="4.0" step="0.01">
750920 <input class="neo-range-input" type="number" min="0.0" max="4.0" step="0.01" data-for="temp" id="temp_counter">
751921 </div>
752922 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
753923 <small>
754924 <span data-i18n="Top K">Top K</span>
755925 <div class="fa-solid fa-circle-info opacity50p" title="Top K sets a maximum amount of top tokens that can be chosen from.&#13;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).&#13;Set to 0 to disable." data-i18n="[title]Top_K_desc"></div>
@@ -757,7 +927,7 @@
757927 <input class="neo-range-slider" type="range" id="top_k" name="volume" min="0" max="100" step="1">
758928 <input class="neo-range-input" type="number" min="0" max="100" step="1" data-for="top_k" id="top_k_counter">
759929 </div>
760930 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
761931 <small>
762932 Top P
763933 <div class="fa-solid fa-circle-info opacity50p" title="Top P (a.k.a. nucleus sampling) adds up all the top tokens required to add up to the target percentage.&#13;E.g If the Top 2 tokens are both 25%, and Top P is 0.50, only the Top 2 tokens are considered.&#13;Set to 1.0 to disable." data-i18n="[title]Top_P_desc"></div>
@@ -765,7 +935,7 @@
765935 <input class="neo-range-slider" type="range" id="top_p" name="volume" min="0" max="1" step="0.01">
766936 <input class="neo-range-input" type="number" min="0" max="1" step="0.01" data-for="top_p" id="top_p_counter">
767937 </div>
768938 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
769939 <small>
770940 <span data-i18n="Typical P">Typical P</span>
771941 <div class="fa-solid fa-circle-info opacity50p" title="Typical P Sampling prioritizes tokens based on their deviation from the average entropy of the set.&#13;It maintains tokens whose cumulative probability is close to a predefined threshold (e.g., 0.5), emphasizing those with average information content.&#13;Set to 1.0 to disable." data-i18n="[title]Typical_P_desc"></div>
@@ -781,7 +951,7 @@
781951 <input class="neo-range-slider" type="range" id="min_p" name="volume" min="0" max="1" step="0.001">
782952 <input class="neo-range-input" type="number" min="0" max="1" step="0.001" data-for="min_p" id="min_p_counter">
783953 </div>
784954 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
785955 <small>
786956 <span data-i18n="Top A">Top A</span>
787957 <div class="fa-solid fa-circle-info opacity50p" title="Top A sets a threshold for token selection based on the square of the highest token probability.&#13;E.g if the Top-A value is 0.2 and the top token's probability is 50%, tokens with probabilities below 5% (0.2 * 0.5^2) are excluded.&#13;Set to 0 to disable." data-i18n="[title]Top_A_desc"></div>
@@ -789,7 +959,7 @@
789959 <input class="neo-range-slider" type="range" id="top_a" name="volume" min="0" max="1" step="0.001">
790960 <input class="neo-range-input" type="number" min="0" max="1" step="0.001" data-for="top_a" id="top_a_counter">
791961 </div>
792962 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
793963 <small>
794964 <span data-i18n="TFS">TFS</span>
795965 <div class="fa-solid fa-circle-info opacity50p" title="Tail-Free Sampling (TFS) searches for a tail of low-probability tokens in the distribution,&#13;by analyzing the rate of change in token probabilities using derivatives. It retains tokens up to a threshold (e.g., 0.3) based on the normalized second derivative.&#13;The closer to 0, the more discarded tokens. Set to 1.0 to disable." data-i18n="[title]Tail_Free_Sampling_desc"></div>
@@ -811,14 +981,14 @@
811981 <input class="neo-range-slider" type="range" id="rep_pen_range" name="volume" min="0" max="4096" step="1">
812982 <input class="neo-range-input" type="number" min="0" max="4096" step="1" data-for="rep_pen_range" id="rep_pen_range_counter">
813983 </div>
814984 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
815985 <small>
816986 <span data-i18n="Rep. Pen. Slope">Repetition Penalty Slope</span>
817987 </small>
818988 <input class="neo-range-slider" type="range" id="rep_pen_slope" name="volume" min="0" max="10" step="0.01">
819989 <input class="neo-range-input" type="number" min="0" max="10" step="0.01" data-for="rep_pen_slope" id="rep_pen_slope_counter">
820990 </div>
821991 <div data-newbie-hidden name="miroStatBlock-kobold" class="wide100p">
822992 <h4 class="wide100p textAlignCenter" data-i18n="Mirostat">Mirostat</h4>
823993 <div class="flex-container flexFlowRow gap10px flexShrink">
824994 <div class="alignitemscenter flex-container flexFlowColumn flexGrow flexShrink gap0">
@@ -848,7 +1018,7 @@
8481018 </div>
8491019 <hr class="wide100p">
8501020 </div>
8511021 <div data-newbie-hidden class="alignitemscenter justifyCenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
8521022 <label class="checkbox_label alignItemsBaseline" for="use_default_badwordsids">
8531023 <input id="use_default_badwordsids" type="checkbox" />
8541024 <span>
@@ -857,13 +1027,13 @@
8571027 </span>
8581028 </label>
8591029 </div>
8601030 <div data-newbie-hidden class="alignitemscenter textAlignCenter flexBasis30p flexGrow flexShrink gap0">
8611031 <!-- <hr class="wide100p"> -->
8621032 <small data-i18n="Seed">Seed</small>
8631033 <!-- Max value is 2**64 - 1 -->
8641034 <input type="number" id="seed_kobold" class="text_pole wideMax100px" min="-1" value="-1" max="18446744073709551615" />
8651035 </div>
8661036 <div data-newbie-hidden id="grammar_block" class="wide100p">
8671037 <hr class="wide100p">
8681038 <h4 class="wide100p textAlignCenter"><span data-i18n="GBNF Grammar">GBNF Grammar</span>
8691039 <a href="https://github.com/ggerganov/llama.cpp/blob/master/grammars/README.md" target="_blank">
@@ -874,7 +1044,7 @@
8741044 </h4>
8751045 <textarea id="grammar" rows="4" class="text_pole textarea_compact monospace" data-i18n="[placeholder]Type in the desired custom grammar" placeholder="Type in the desired custom grammar"></textarea>
8761046 </div>
8771047 <div data-newbie-hidden name="KoboldSamplerOrderBlock" class="range-block flexFlowColumn">
8781048 <hr class="wide100p">
8791049 <div class="range-block-title">
8801050 <span data-i18n="Samplers Order">Samplers Order</span>
@@ -919,164 +1089,7 @@
9191089 </div>
9201090 </div>
9211091 </div><!-- end of kobold settings-->
9221092 <div data-newbie-hidden id="novel_api-settings">
923- <div class="range-block">
924- <div class="range-block-title openai_restorable">
925- <span data-i18n="Preamble">Preamble</span>
926- <div id="nai_preamble_restore" title="Restore default prompt" data-i18n="[title]Restore default prompt" class="right_menu_button">
927- <div class="fa-solid fa-clock-rotate-left "></div>
928- </div>
929- </div>
930- <div class="toggle-description justifyLeft" data-i18n="Use style tags to modify the writing style of the output.">
931- Use style tags to modify the writing style of the output.
932- </div>
933- <div class="wide100p">
934- <textarea id="nai_preamble_textarea" class="text_pole textarea_compact" name="nai_preamble" rows="2" placeholder=""></textarea>
935- </div>
936- </div>
937- <div class="range-block">
938- <div class="range-block-title justifyLeft">
939- <span data-i18n="Banned Tokens">Banned Tokens</span>
940- </div>
941- <div class="toggle-description justifyLeft" data-i18n="Sequences you don't want to appear in the output. One per line.">
942- Sequences you don't want to appear in the output. One per line. Text or [token ids].
943- </div>
944- <div class="wide100p">
945- <textarea id="nai_banned_tokens" class="text_pole textarea_compact" name="nai_banned_tokens" rows="3" placeholder="Example:&#10;some text&#10;[42, 69, 1337]"></textarea>
946- </div>
947- </div>
948- <div class="range-block">
949- <div id="logit_bias_novel" class="range-block-title title_restorable">
950- <span data-i18n="Logit Bias">Logit Bias</span>
951- <div id="novelai_logit_bias_new_entry" class="menu_button menu_button_icon">
952- <i class="fa-xs fa-solid fa-plus"></i>
953- <small data-i18n="Add">Add</small>
954- </div>
955- </div>
956- <div class="toggle-description justifyLeft" data-i18n="Helps to ban or reenforce the usage of certain words">
957- Helps to ban or reinforce the usage of certain tokens.
958- </div>
959- <div class="flex-container flexFlowColumn wide100p">
960- <div class="logit_bias_list"></div>
961- </div>
962- </div>
963- <div class="range-block">
964- <hr>
965- <div class="range-block-title justifyLeft" data-i18n="CFG Scale">
966- CFG Scale
967- </div>
968- <div class="range-block-range-and-counter">
969- <div class="range-block-range">
970- <input type="range" id="cfg_scale_novel" name="volume" min="1" max="3" step="0.05">
971- </div>
972- <div class="range-block-counter">
973- <input type="number" min="1" max="3" step="0.05" data-for="cfg_scale_novel" id="cfg_scale_counter_novel">
974- </div>
975- </div>
976- </div>
977- <div class="range-block">
978- <div class="range-block-title justifyLeft">
979- <span data-i18n="Negative Prompt">Negative Prompt</span>
980- </div>
981- <div class="wide100p">
982- <textarea id="nai_cfg_uc" class="text_pole textarea_compact" name="cfg_uc" rows="2" data-i18n="[placeholder]Add text here that would make the AI generate things you don't want in your outputs." placeholder="Add text here that would make the AI generate things you don't want in your outputs."></textarea>
983- </div>
984- <small class="margin-bot-10px" data-i18n="Used if CFG Scale is unset globally, per chat or character">
985- Used if CFG Scale is unset globally, per chat or character
986- </small>
987- <hr>
988- </div>
989- <div class="range-block">
990- <div class="range-block-title" data-i18n="Top P">
991- Top P
992- </div>
993- <div class="range-block-range-and-counter">
994- <div class="range-block-range">
995- <input type="range" id="top_p_novel" name="volume" min="0" max="1" step="0.001">
996- </div>
997- <div class="range-block-counter">
998- <input type="number" min="0" max="1" step="0.001" data-for="top_p_novel" id="top_p_counter_novel">
999- </div>
1000- </div>
1001- </div>
1002- <div class="range-block">
1003- <div class="range-block-title" data-i18n="Top A">
1004- Top A
1005- </div>
1006- <div class="range-block-range-and-counter">
1007- <div class="range-block-range">
1008- <input type="range" id="top_a_novel" name="volume" min="0" max="1" step="0.001">
1009- </div>
1010- <div class="range-block-counter">
1011- <input type="number" min="0" max="1" step="0.001" data-for="top_a_novel" id="top_a_counter_novel">
1012- </div>
1013- </div>
1014- </div>
1015- <div class="range-block">
1016- <div class="range-block-title" data-i18n="Top K">
1017- Top K
1018- </div>
1019- <div class="range-block-range-and-counter">
1020- <div class="range-block-range">
1021- <input type="range" id="top_k_novel" name="volume" min="0" max="300" step="1">
1022- </div>
1023- <div class="range-block-counter">
1024- <input type="number" min="0" max="300" step="1" data-for="top_k_novel" id="top_k_counter_novel">
1025- </div>
1026- </div>
1027- </div>
1028- <div class="range-block">
1029- <div class="range-block-title" data-i18n="Mirostat Tau">
1030- Mirostat Tau
1031- </div>
1032- <div class="range-block-range-and-counter">
1033- <div class="range-block-range">
1034- <input type="range" id="mirostat_tau_novel" name="volume" min="0" max="6" step="0.01">
1035- </div>
1036- <div class="range-block-counter">
1037- <input type="number" min="0" max="6" step="0.01" data-for="mirostat_tau_novel" id="mirostat_tau_counter_novel">
1038- </div>
1039- </div>
1040- </div>
1041- <div class="range-block">
1042- <div class="range-block-title" data-i18n="Mirostat LR">
1043- Mirostat LR
1044- </div>
1045- <div class="range-block-range-and-counter">
1046- <div class="range-block-range">
1047- <input type="range" id="mirostat_lr_novel" name="volume" min="0" max="1" step="0.01">
1048- </div>
1049- <div class="range-block-counter">
1050- <input type="number" min="0" max="1" step="0.01" data-for="mirostat_lr_novel" id="mirostat_lr_counter_novel">
1051- </div>
1052- </div>
1053- </div>
1054- <div class="range-block">
1055- <div class="range-block-title" data-i18n="Typical P">
1056- Typical P
1057- </div>
1058- <div class="range-block-range-and-counter">
1059- <div class="range-block-range">
1060- <input type="range" id="typical_p_novel" name="volume" min="0" max="1" step="0.001">
1061- </div>
1062- <div class="range-block-counter">
1063- <input type="number" min="0" max="1" step="0.001" data-for="typical_p_novel" id="typical_p_counter_novel">
1064- </div>
1065- </div>
1066- </div>
1067- <div class="range-block">
1068- <div class="range-block-title" data-i18n="Min Length">
1069- Min Length
1070- </div>
1071- <div class="range-block-range-and-counter">
1072- <div class="range-block-range">
1073- <input type="range" id="min_length_novel" name="volume" min="1" max="150" step="1">
1074- </div>
1075- <div class="range-block-counter">
1076- <input type="number" min="1" max="150" step="1" data-for="min_length_novel" id="min_length_counter_novel">
1077- </div>
1078- </div>
1079- </div>
10801093 <div class="range-block flexFlowColumn">
10811094 <div class="range-block-title">
10821095 <span data-i18n="Samplers Order">Samplers Order</span>
@@ -1115,22 +1128,27 @@
11151128 <small>5</small>
11161129 <div class="toggle_button right_menu_button"></div>
11171130 </div>
1118- <div data-id="6">
1131+ <!-- 6 and 7 were removed samplers. -->
1119- <span data-i18n="CFG">CFG</span>
1120- <small>6</small>
1121- <div class="toggle_button right_menu_button"></div>
1122- </div>
1123- <!-- Yes, there is no 7. It was a removed Top G sampling. RIP. -->
11241132 <div data-id="8">
11251133 <span data-i18n="Mirostat">Mirostat</span>
11261134 <small>8</small>
11271135 <div class="toggle_button right_menu_button"></div>
11281136 </div>
1137+ <div data-id="9">
1138+ <span data-i18n="Unified Sampling">Unified Sampling</span>
1139+ <small>9</small>
1140+ <div class="toggle_button right_menu_button"></div>
1141+ </div>
1142+ <div data-id="10">
1143+ <span data-i18n="Min P">Min P</span>
1144+ <small>10</small>
1145+ <div class="toggle_button right_menu_button"></div>
1146+ </div>
11291147 </div>
11301148 </div>
11311149 </div><!-- end of novel settings-->
11321150 <div id="textgenerationwebui_api-settings">
11331151 <div data-newbie-hidden class="flex-container justifyCenter">
11341152 <small class="flex-container alignitemscenter">
11351153 <div id="samplerResetButton" class="menu_button whitespacenowrap" data-i18n="Neutralize Samplers">Neutralize Samplers</div>
11361154 <div class="fa-solid fa-circle-info opacity50p" title="Set all samplers to their neutral/disabled state." data-i18n="[title]Set all samplers to their neutral/disabled state."></div>
@@ -1141,7 +1159,7 @@
11411159 <div class="fa-solid fa-circle-info opacity50p" title="Customize displayed samplers or add custom samplers." data-i18n="[title]Customize displayed samplers or add custom samplers."></div>
11421160 </small>
11431161 </div>
11441162 <div data-newbie-hidden data-tg-type="mancer, vllm, aphrodite, tabby, infermaticai" class="flex-container flexFlowColumn alignitemscenter flexBasis100p flexGrow flexShrink gap0">
11451163 <small data-i18n="Multiple swipes per generation">Multiple swipes per generation</small>
11461164 <input type="number" id="n_textgenerationwebui" class="text_pole textAlignCenter" min="1" value="1" step="1" />
11471165 </div>
@@ -1154,7 +1172,7 @@
11541172 <input class="neo-range-slider" type="range" id="temp_textgenerationwebui" name="volume" min="0.0" max="5.0" step="0.01" x-setting-id="temp">
11551173 <input class="neo-range-input" type="number" min="0.0" max="5.0" step="0.01" data-for="temp_textgenerationwebui" id="temp_counter_textgenerationwebui">
11561174 </div>
11571175 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
11581176 <small>
11591177 <span data-i18n="Top K">Top K</span>
11601178 <div class="fa-solid fa-circle-info opacity50p" title="Top K sets a maximum amount of top tokens that can be chosen from.&#13;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).&#13;Set to 0 (or -1, depending on your backend) to disable." data-i18n="[title]Top_K_desc"></div>
@@ -1162,7 +1180,7 @@
11621180 <input class="neo-range-slider" type="range" id="top_k_textgenerationwebui" name="volume" min="-1" max="200" step="1">
11631181 <input class="neo-range-input" type="number" min="-1" max="200" step="1" data-for="top_k_textgenerationwebui" id="top_k_counter_textgenerationwebui">
11641182 </div>
11651183 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
11661184 <small>
11671185 <span data-i18n="Top P">Top P</span>
11681186 <div class="fa-solid fa-circle-info opacity50p" title="Top P (a.k.a. nucleus sampling) adds up all the top tokens required to add up to the target percentage.&#13;E.g If the Top 2 tokens are both 25%, and Top P is 0.50, only the Top 2 tokens are considered.&#13;Set to 1.0 to disable." data-i18n="[title]Top_P_desc"></div>
@@ -1170,7 +1188,7 @@
11701188 <input class="neo-range-slider" type="range" id="top_p_textgenerationwebui" name="volume" min="0" max="1" step="0.01">
11711189 <input class="neo-range-input" type="number" min="0" max="1" step="0.01" data-for="top_p_textgenerationwebui" id="top_p_counter_textgenerationwebui">
11721190 </div>
11731191 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
11741192 <small>
11751193 <span data-i18n="Typical P">Typical P</span>
11761194 <div class="fa-solid fa-circle-info opacity50p" title="Typical P Sampling prioritizes tokens based on their deviation from the average entropy of the set.&#13;It maintains tokens whose cumulative probability is close to a predefined threshold (e.g., 0.5), emphasizing those with average information content.&#13;Set to 1.0 to disable." data-i18n="[title]Typical_P_desc"></div>
@@ -1186,7 +1204,7 @@
11861204 <input class="neo-range-slider" type="range" id="min_p_textgenerationwebui" name="volume" min="0" max="1" step="0.001">
11871205 <input class="neo-range-input" type="number" min="0" max="1" step="0.001" data-for="min_p_textgenerationwebui" id="min_p_counter_textgenerationwebui">
11881206 </div>
11891207 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
11901208 <small>
11911209 <span data-i18n="Top A">Top A</span>
11921210 <div class="fa-solid fa-circle-info opacity50p" title="Top A sets a threshold for token selection based on the square of the highest token probability.&#13;E.g if the Top-A value is 0.2 and the top token's probability is 50%, tokens with probabilities below 5% (0.2 * 0.5^2) are excluded.&#13;Set to 0 to disable." data-i18n="[title]Top_A_desc"></div>
@@ -1194,7 +1212,7 @@
11941212 <input class="neo-range-slider" type="range" id="top_a_textgenerationwebui" name="volume" min="0" max="1" step="0.01">
11951213 <input class="neo-range-input" type="number" min="0" max="1" step="0.01" data-for="top_a_textgenerationwebui" id="top_a_counter_textgenerationwebui">
11961214 </div>
11971215 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
11981216 <small>
11991217 <span data-i18n="TFS">TFS</span>
12001218 <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Tail_Free_Sampling_desc" title="Tail-Free Sampling (TFS) searches for a tail of low-probability tokens in the distribution,&#13;by analyzing the rate of change in token probabilities using derivatives. It retains tokens up to a threshold (e.g., 0.3) based on the normalized second derivative.&#13;The closer to 0, the more discarded tokens. Set to 1.0 to disable."></div>
@@ -1202,7 +1220,7 @@
12021220 <input class="neo-range-slider" type="range" id="tfs_textgenerationwebui" name="volume" min="0" max="1" step="0.01">
12031221 <input class="neo-range-input" type="number" min="0" max="1" step="0.01" data-for="tfs_textgenerationwebui" id="tfs_counter_textgenerationwebui">
12041222 </div>
12051223 <div data-newbie-hidden data-tg-type="ooba,mancer,aphrodite" class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
12061224 <small>
12071225 <span data-i18n="Epsilon Cutoff">Epsilon Cutoff</span>
12081226 <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Epsilon cutoff sets a probability floor below which tokens are excluded from being sampled" title="Epsilon cutoff sets a probability floor below which tokens are excluded from being sampled.&#13;In units of 1e-4; a reasonable value is 3.&#13;Set to 0 to disable."></div>
@@ -1210,7 +1228,7 @@
12101228 <input class="neo-range-slider" type="range" id="epsilon_cutoff_textgenerationwebui" name="volume" min="0" max="9" step="0.01">
12111229 <input class="neo-range-input" type="number" min="0" max="9" step="0.01" data-for="epsilon_cutoff_textgenerationwebui" id="epsilon_cutoff_counter_textgenerationwebui">
12121230 </div>
12131231 <div data-newbie-hidden data-tg-type="ooba,mancer,aphrodite" class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
12141232 <small>
12151233 <span data-i18n="Eta Cutoff">Eta Cutoff</span>
12161234 <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Eta_Cutoff_desc" title="Eta cutoff is the main parameter of the special Eta Sampling technique.&#13;In units of 1e-4; a reasonable value is 3.&#13;Set to 0 to disable.&#13;See the paper Truncation Sampling as Language Model Desmoothing by Hewitt et al. (2022) for details."></div>
@@ -1238,61 +1256,83 @@
12381256 <input class="neo-range-slider" type="range" id="rep_pen_decay_textgenerationwebui" name="volume" min="-1" max="8192" step="1">
12391257 <input class="neo-range-input" type="number" min="-1" max="8192" step="1" data-for="rep_pen_decay_textgenerationwebui" id="rep_pen_decay_counter_textgenerationwebui">
12401258 </div>
12411259 <div data-tg-type="ooba" data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
12421260 <small data-i18n="Encoder Rep. Pen.">Encoder Penalty</small>
12431261 <input class="neo-range-slider" type="range" id="encoder_rep_pen_textgenerationwebui" name="volume" min="0.8" max="1.5" step="0.01" />
12441262 <input class="neo-range-input" type="number" min="0.8" max="1.5" step="0.01" data-for="encoder_rep_pen_textgenerationwebui" id="encoder_rep_pen_counter_textgenerationwebui">
12451263 </div>
12461264 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
12471265 <small data-i18n="Frequency Penalty">Frequency Penalty</small>
12481266 <input class="neo-range-slider" type="range" id="freq_pen_textgenerationwebui" name="volume" min="-2" max="2" step="0.01" />
12491267 <input class="neo-range-input" type="number" data-for="freq_pen_textgenerationwebui" min="-2" max="2" step="0.01" id="freq_pen_counter_textgenerationwebui">
12501268 </div>
12511269 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
12521270 <small data-i18n="Presence Penalty">Presence Penalty</small>
12531271 <input class="neo-range-slider" type="range" id="presence_pen_textgenerationwebui" name="volume" min="-2" max="2" step="0.01" />
12541272 <input class="neo-range-input" type="number" min="-2" max="2" step="0.01" data-for="presence_pen_textgenerationwebui" id="presence_pen_counter_textgenerationwebui">
12551273 </div>
12561274 <div data-tg-type="ooba" data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
12571275 <small data-i18n="No Repeat Ngram Size">No Repeat Ngram Size</small>
12581276 <input class="neo-range-slider" type="range" id="no_repeat_ngram_size_textgenerationwebui" name="volume" min="0" max="20" step="1">
12591277 <input class="neo-range-input" type="number" min="0" max="20" step="1" data-for="no_repeat_ngram_size_textgenerationwebui" id="no_repeat_ngram_size_counter_textgenerationwebui">
12601278 </div>
12611279 <div data-newbie-hidden data-tg-type="tabby" class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
12621280 <small data-i18n="Skew">Skew</small>
12631281 <input class="neo-range-slider" type="range" id="skew_textgenerationwebui" name="volume" min="-5" max="5" step="0.01" />
12641282 <input class="neo-range-input" type="number" min="-5" max="5" step="0.01" data-for="skew_textgenerationwebui" id="skew_counter_textgenerationwebui">
12651283 </div>
12661284 <div data-newbie-hidden data-tg-type="mancer, ooba, tabby, dreamgen, infermaticai, aphrodite" class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
12671285 <small data-i18n="Min Length">Min Length</small>
12681286 <input class="neo-range-slider" type="range" id="min_length_textgenerationwebui" name="volume" min="0" max="2000" step="1" />
12691287 <input class="neo-range-input" type="number" min="0" max="2000" step="1" data-for="min_length_textgenerationwebui" id="min_length_counter_textgenerationwebui">
12701288 </div>
12711289 <div data-newbie-hidden data-tg-type="ooba" class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
12721290 <small data-i18n="Max Tokens Second">Maximum tokens/second</small>
12731291 <input class="neo-range-slider" type="range" id="max_tokens_second_textgenerationwebui" name="volume" min="0" max="20" step="1" />
12741292 <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">
12751293 </div>
12761294 <div data-newbie-hidden data-tg-type="mancer, ooba, koboldcpp, aphrodite, tabby" id="smoothingBlock" name="smoothingBlock" class="wide100p">
12771295 <h4 class="wide100p textAlignCenter">
12781296 <label data-i18n="Smooth Sampling">Smooth Sampling</label>
12791297 <div class=" fa-solid fa-circle-info opacity50p " data-i18n="[title]Smooth_Sampling_desc" title="Allows you to use quadratic/cubic transformations to adjust the distribution. Lower Smoothing Factor values will be more creative, usually between 0.2-0.3 is the sweetspot (assuming the curve = 1). Higher Smoothing Curve values will make the curve steeper, which will punish low probability choices more aggressively. 1.0 curve is equivalent to only using Smoothing Factor."></div>
12801298 </h4>
12811299 <div data-tg-type="mancer, ooba, koboldcpp, aphrodite, tabby" class="flex-container flexFlowRow gap10px flexShrink">
12821300 <div data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0">
12831301 <small data-i18n="Smoothing Factor">Smoothing Factor</small>
12841302 <input class="neo-range-slider" type="range" id="smoothing_factor_textgenerationwebui" name="volume" min="0" max="10" step="0.01" />
12851303 <input class="neo-range-input" type="number" min="0" max="10" step="0.01" data-for="smoothing_factor_textgenerationwebui" id="smoothing_factor_counter_textgenerationwebui">
12861304 </div>
12871305 <div data-tg-type="mancer, ooba, koboldcpp, aphrodite" data-newbie-hidden class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0">
12881306 <small data-i18n="Smoothing Curve">Smoothing Curve</small>
12891307 <input class="neo-range-slider" type="range" id="smoothing_curve_textgenerationwebui" name="volume" min="1" max="10" step="0.01" />
12901308 <input class="neo-range-input" type="number" min="1" max="10" step="0.01" data-for="smoothing_curve_textgenerationwebui" id="smoothing_curve_counter_textgenerationwebui">
12911309 </div>
12921310 </div>
12931311 </div>
1312+
1313+ <div data-tg-type="koboldcpp, aphrodite" id="xtc_block" class="wide100p">
1314+ <h4 class="wide100p textAlignCenter">
1315+ <label data-i18n="Exclude Top Choices (XTC)">Exclude Top Choices (XTC)</label>
1316+ <a href="https://github.com/oobabooga/text-generation-webui/pull/6335" target="_blank">
1317+ <div class=" fa-solid fa-circle-info opacity50p"></div>
1318+ </a>
1319+ </h4>
1320+ <div class="flex-container flexFlowRow gap10px flexShrink">
1321+ <div class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0">
1322+ <small data-i18n="Threshold">Threshold</small>
1323+ <input class="neo-range-slider" type="range" id="xtc_threshold_textgenerationwebui" name="volume" min="0" max="0.5" step="0.01" />
1324+ <input class="neo-range-input" type="number" min="0" max="0.5" step="0.01" data-for="xtc_threshold_textgenerationwebui" id="xtc_threshold_counter_textgenerationwebui">
1325+ </div>
1326+ <div class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0">
1327+ <small data-i18n="Probability">Probability</small>
1328+ <input class="neo-range-slider" type="range" id="xtc_probability_textgenerationwebui" name="volume" min="0" max="1" step="0.01" />
1329+ <input class="neo-range-input" type="number" min="0" max="1" step="0.01" data-for="xtc_probability_textgenerationwebui" id="xtc_probability_counter_textgenerationwebui">
1330+ </div>
1331+ </div>
1332+ </div>
1333+
12941334 <!-- Enable for llama.cpp when the PR is merged: https://github.com/ggerganov/llama.cpp/pull/6839 -->
12951335 <div data-newbie-hidden data-tg-type="ooba, koboldcpp, tabby" id="dryBlock" class="wide100p">
12961336 <h4 class="wide100p textAlignCenter" title="DRY penalizes tokens that would extend the end of the input into a sequence that has previously occurred in the input. Set multiplier to 0 to disable." data-i18n="[title]DRY_Repetition_Penalty_desc">
12971337 <label data-i18n="DRY Repetition Penalty">DRY Repetition Penalty</label>
12981338 <a href="https://github.com/oobabooga/text-generation-webui/pull/5677" target="_blank">
@@ -1315,7 +1355,7 @@
13151355 <input class="neo-range-slider" type="range" id="dry_allowed_length_textgenerationwebui" min="1" max="20" step="1" />
13161356 <input class="neo-range-input" type="number" min="1" max="20" step="1" data-for="dry_allowed_length_textgenerationwebui" id="dry_allowed_length_counter_textgenerationwebui">
13171357 </div>
13181358 <div class="alignItemsCenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0" data-tg-type="llamacpp, koboldcpp, tabby">
13191359 <small data-i18n="Penalty Range">Penalty Range</small>
13201360 <input class="neo-range-slider" type="range" id="dry_penalty_last_n_textgenerationwebui" min="0" max="8192" step="1" />
13211361 <input class="neo-range-input" type="number" min="0" max="8192" step="1" data-for="dry_penalty_last_n_textgenerationwebui" id="dry_penalty_last_n_counter_textgenerationwebui">
@@ -1330,7 +1370,7 @@
13301370 </div>
13311371 </div>
13321372 </div>
13331373 <div data-newbie-hidden data-tg-type="ooba, mancer, koboldcpp, tabby, llamacpp, aphrodite" id="dynatemp_block_ooba" class="wide100p">
13341374 <h4 class="wide100p textAlignCenter">
13351375 <div class="flex-container alignitemscenter justifyCenter">
13361376 <div class="checkbox_label" for="dynatemp_textgenerationwebui">
@@ -1358,7 +1398,7 @@
13581398 </div>
13591399 </div>
13601400 </div>
13611401 <div data-newbie-hidden data-tg-type="ooba,aphrodite,infermaticai,koboldcpp,llamacpp,mancer,ollama,tabby" id="mirostat_block_ooba" class="wide100p">
13621402 <h4 class="wide100p textAlignCenter">
13631403 <label data-i18n="Mirostat (mode=1 is only for llama.cpp)">Mirostat</label>
13641404 <div class=" fa-solid fa-circle-info opacity50p " data-i18n="[title]Mirostat_desc" title="Mirostat is a thermostat for output perplexity.&#13;Mirostat matches the output perplexity to that of the input, thus avoiding the repetition trap&#13;(where, as the autoregressive inference produces text, the perplexity of the output tends toward zero)&#13;and the confusion trap (where the perplexity diverges).&#13;For details, see the paper Mirostat: A Neural Text Decoding Algorithm that Directly Controls Perplexity by Basu et al. (2020).&#13;Mode chooses the Mirostat version. 0=disable, 1=Mirostat 1.0 (llama.cpp only), 2=Mirostat 2.0."></div>
@@ -1387,33 +1427,41 @@
13871427 </div>
13881428 </div>
13891429 </div>
13901430 <div data-newbie-hidden data-tg-type="ooba, vllm" id="beamSearchBlock" name="beamSearchBlock" class="wide100p">
13911431 <h4 class="wide100p textAlignCenter">
13921432 <label>
13931433 <span data-i18n="Beam search">Beam Search</span>
1394- <div class=" fa-solid fa-circle-info opacity50p " title="Helpful tip coming soon." data-i18n="[title]Helpful tip coming soon."></div>
1434+ <div class=" fa-solid fa-circle-info opacity50p " title="A greedy, brute-force algorithm used in LLM sampling to find the most likely sequence of words or tokens. It expands multiple candidate sequences at once, maintaining a fixed number (beam width) of top sequences at each step." data-i18n="[title]A greedy, brute-force algorithm used in LLM sampling to find the most likely sequence of words or tokens. It expands multiple candidate sequences at once, maintaining a fixed number (beam width) of top sequences at each step."></div>
13951435 </label>
13961436 </h4>
13971437 <div class="flex-container flexFlowRow alignitemscenter gap10px flexShrink">
13981438 <div class="alignitemscenter flex-container marginBot5 flexFlowColumn flexGrow flexShrink gap0">
1399- <small data-i18n="Number of Beams"># of Beams</small>
1439+ <label>
1440+ <small data-i18n="# of Beams"># of Beams</small>
1441+ <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]The number of sequences generated at each step with Beam Search." title="The number of sequences generated at each step with Beam Search."></div>
1442+ </label>
14001443 <input class="neo-range-slider" type="range" id="num_beams_textgenerationwebui" name="volume" min="1" max="20" step="1" />
14011444 <input class="neo-range-input" type="number" min="1" max="20" step="1" data-for="num_beams_textgenerationwebui" id="num_beams_counter_textgenerationwebui">
14021445 </div>
14031446 <div class="alignitemscenter flex-container marginBot5 flexFlowColumn flexGrow flexShrink gap0">
1447+ <label>
14041448 <small data-i18n="Length Penalty">Length Penalty</small>
1449+ <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Penalize sequences based on their length." title="Penalize sequences based on their length."></div>
1450+ </label>
14051451 <input class="neo-range-slider" type="range" id="length_penalty_textgenerationwebui" name="volume" min="-5" max="5" step="0.1" />
14061452 <input class="neo-range-input" type="number" min="-5" max="5" step="0.1" data-for="length_penalty_textgenerationwebui" id="length_penalty_counter_textgenerationwebui">
14071453 </div>
14081454 <div class="">
14091455 <label class="checkbox_label" for="early_stopping_textgenerationwebui">
14101456 <input type="checkbox" id="early_stopping_textgenerationwebui" />
14111457 <small data-i18n="Early Stopping">Early Stopping</small>
1458+ <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Controls the stopping condition for beam search. If checked, the generation stops as soon as there are '# of Beams' sequences. If not checked, a heuristic is applied and the generation is stopped when it's very unlikely to find better candidates." title="Controls the stopping condition for beam search. If checked, the generation stops as soon as there are '# of Beams' sequences. If not checked, a heuristic is applied and the generation is stopped when it's very unlikely to find better candidates."></div>
1459+ </small>
14121460 </label>
14131461 </div>
14141462 </div>
14151463 </div>
14161464 <div data-tg-type="ooba" data-newbie-hidden id="contrastiveSearchBlock" name="contrastiveSearchBlock" class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0">
14171465 <h4 class="textAlignCenter" data-i18n="Contrastive search">Contrastive Search
14181466 <div class=" fa-solid fa-circle-info opacity50p " data-i18n="Contrastive_search_txt" title="A sampler that encourages diversity while maintaining coherence, by exploiting the isotropicity of the representation space of most LLMs. For details, see the paper A Contrastive Framework for Neural Text Generation by Su et al. (2022)."></div>
14191467 </h4>
@@ -1426,7 +1474,7 @@
14261474 <input class="neo-range-input" type="number" min="0" max="5" step="0.05" data-for="penalty_alpha_textgenerationwebui" id="penalty_alpha_counter_textgenerationwebui">
14271475 </div>
14281476 </div>
14291477 <div data-newbie-hidden name="checkboxes" class="flex-container flexBasis48p justifyCenter flexGrow flexShrink ">
14301478 <div class="flex-container flexFlowColumn marginTop5">
14311479 <label data-tg-type="ooba" class="checkbox_label flexGrow flexShrink" for="do_sample_textgenerationwebui">
14321480 <input type="checkbox" id="do_sample_textgenerationwebui" />
@@ -1439,7 +1487,7 @@
14391487 <div class="fa-solid fa-circle-info opacity50p " data-i18n="[title]Add the bos_token to the beginning of prompts. Disabling this can make the replies more creative" title="Add the bos_token to the beginning of prompts. Disabling this can make the replies more creative."></div>
14401488 </label>
14411489 </label>
14421490 <label data-tg-type="ooba, llamacpp, tabby, koboldcpp" class="checkbox_label flexGrow flexShrink" for="ban_eos_token_textgenerationwebui">
14431491 <input type="checkbox" id="ban_eos_token_textgenerationwebui" />
14441492 <label>
14451493 <small data-i18n="Ban EOS Token">Ban EOS Token</small>
@@ -1477,18 +1525,21 @@
14771525 </label>
14781526 </div>
14791527 </div>
14801528 <div data-tg-type="mancer, ooba, koboldcpp, vllm, aphrodite, llamacpp, ollama, infermaticai, huggingface" data-newbie-hidden class="flex-container flexFlowColumn alignitemscenter flexBasis48p flexGrow flexShrink gap0">
1481- <small data-i18n="Seed" class="textAlignCenter">Seed</small>
1529+ <label>
1482- <input type="number" id="seed_textgenerationwebui" class="text_pole textAlignCenter" min="-1" value="-1" maxlength="100" />
1530+ <small data-i18n="Seed">Seed</small>
1531+ <div class="fa-solid fa-circle-info opacity50p " data-i18n="[title]Seed_desc" title="A random seed to use for deterministic and reproducable outputs. Set to -1 to use a random seed."></div>
1532+ </label>
1533+ <input type="number" id="seed_textgenerationwebui" class="text_pole textAlignCenter" min="-1" value="-1" />
14831534 </div>
14841535 <div id="banned_tokens_block_ooba" data-newbie-hidden class="wide100p">
14851536 <hr data-newbie-hidden class="width100p">
14861537 <h4 class="range-block-title justifyCenter">
14871538 <span data-i18n="Banned Tokens">Banned Tokens/Strings</span>
14881539 <div class="margin5 fa-solid fa-circle-info opacity50p " data-i18n="[title]LLaMA / Mistral / Yi models only" title="LLaMA / Mistral / Yi models only. Make sure to select an appropriate tokenizerEnter first.&#13;Sequencessequences you don't want to appear in the output.&#13;OneUnquoted pertext line.will Textbe ortokenized in the back end and banned as tokens.&#13;[token ids] will be banned as-is.&#13;Most tokens have a leading space. Use token counter (with the correct tokenizer selected first!) if you are unsure.&#13;Enclose text in double quotes to ban the entire string as a set.&#13;Quoted Strings and [Token ids] must be on their own line."></div>
14891540 </h4>
14901541 <div class="wide100p">
14911542 <textarea id="banned_tokens_textgenerationwebui" class="text_pole textarea_compact" name="banned_tokens_textgenerationwebui" rows="3" data-i18n="[placeholder]Example: some text [42, 69, 1337]" placeholder="Example:&#10;'some text as tokens&#10;[42420, 69, 1337]&#10;"Some verbatim string"'></textarea>
14921543 </div>
14931544 </div>
14941545 <div class="range-block wide100p">
@@ -1506,7 +1557,7 @@
15061557 <div class="logit_bias_list"></div>
15071558 </div>
15081559 </div>
15091560 <div id="cfg_block_ooba" data-newbie-hidden data-tg-type="ooba, tabby" class="wide100p">
15101561 <hr class="width100p">
15111562 <h4 data-i18n="CFG" class="textAlignCenter">CFG
15121563 <div class="margin5 fa-solid fa-circle-info opacity50p " data-i18n="[title]Classifier Free Guidance. More helpful tip coming soon" title="Classifier Free Guidance. More helpful tip coming soon."></div>
@@ -1528,33 +1579,33 @@
15281579 </div>
15291580 </div>
15301581 </div>
15311582 <div data-newbie-hidden id="json_schema_blockgrammar_block_ooba" data-tg-type="tabbyooba, llamacppaphrodite" class="wide100p">
15321583 <hr class="wide100p">
15331584 <h4 class="wide100p textAlignCenter"><span data-i18n="JSON Schema">JSON Schema</span>
1534- <a href="https://json-schema.org/learn/getting-started-step-by-step" target="_blank">
1585+ <label>
1586+ <span data-i18n="Grammar String">Grammar String</span>
1587+ <div class="margin5 fa-solid fa-circle-info opacity50p " data-i18n="[title]GBNF or EBNF, depends on the backend in use. If you're using this you should know which." title="GBNF or EBNF, depends on the backend in use. If you're using this you should know which."></div>
1588+ <a href="https://github.com/ggerganov/llama.cpp/blob/master/grammars/README.md" target="_blank">
15351589 <small>
15361590 <div class="fa-solid fa-circleup-questionright-from-square note-link-span"></div>
15371591 </small>
15381592 </a>
1593+ </label>
15391594 </h4>
15401595 <textarea id="tabby_json_schemagrammar_string_textgenerationwebui" rows="4" class="text_pole textarea_compact monospace" data-i18n="[placeholder]Type in the desired JSONcustom schemagrammar" placeholder="Type in the desired JSONcustom schemagrammar"></textarea>
15411596 </div>
15421597 <div id="json_schema_block" data-newbietg-hidden idtype="grammar_block_oobatabby, llamacpp, aphrodite" class="wide100p">
15431598 <hr class="wide100p">
15441599 <h4 class="wide100p textAlignCenter"><span data-i18n="JSON Schema">JSON Schema</span>
1545- <label>
1600+ <a href="https://json-schema.org/learn/getting-started-step-by-step" target="_blank">
1546- <span data-i18n="Grammar String">Grammar String</span>
1547- <div class="margin5 fa-solid fa-circle-info opacity50p " data-i18n="[title]GBNF or EBNF, depends on the backend in use. If you're using this you should know which." title="GBNF or EBNF, depends on the backend in use. If you're using this you should know which."></div>
1548- <a href="https://github.com/ggerganov/llama.cpp/blob/master/grammars/README.md" target="_blank">
15491601 <small>
15501602 <div class="fa-solid fa-up-right-fromcircle-squarequestion note-link-span"></div>
15511603 </small>
15521604 </a>
1553- </label>
15541605 </h4>
15551606 <textarea id="grammar_string_textgenerationwebuitabby_json_schema" rows="4" class="text_pole textarea_compact monospace" data-i18n="[placeholder]Type in the desired customJSON grammarschema" placeholder="Type in the desired customJSON grammarschema"></textarea>
15561607 </div>
15571608 <div id="sampler_order_block_kcpp" data-newbie-hidden data-tg-type="koboldcpp" class="range-block flexFlowColumn wide100p">
15581609 <hr class="wide100p">
15591610 <div class="range-block-title">
15601611 <span data-i18n="Samplers Order">Samplers Order</span>
@@ -1597,7 +1648,7 @@
15971648 <span data-i18n="Load default order">Load default order</span>
15981649 </div>
15991650 </div>
16001651 <div id="sampler_order_block_lcpp" data-newbie-hidden data-tg-type="llamacpp" class="range-block flexFlowColumn wide100p">
16011652 <hr class="wide100p">
16021653 <h4 class="range-block-title justifyCenter">
16031654 <span data-i18n="Sampler Order">Sampler Order</span>
@@ -1618,7 +1669,7 @@
16181669 <span data-i18n="Load default order">Load default order</span>
16191670 </div>
16201671 </div>
16211672 <div id="sampler_priority_block_ooba" data-newbie-hidden data-tg-type="ooba" class="range-block flexFlowColumn wide100p">
16221673 <hr class="wide100p">
16231674 <h4 class="range-block-title justifyCenter">
16241675 <span data-i18n="Sampler Priority">Sampler Priority</span>
@@ -1791,22 +1842,6 @@
17911842 </select>
17921843 </div>
17931844 </div>
1794- <div class="range-block" data-source="ai21">
1795- <label for="use_ai21_tokenizer" title="Use AI21 Tokenizer" data-i18n="[title]Use AI21 Tokenizer" class="checkbox_label widthFreeExpand">
1796- <input id="use_ai21_tokenizer" type="checkbox" /><span data-i18n="Use AI21 Tokenizer">Use AI21 Tokenizer</span>
1797- </label>
1798- <div class="toggle-description justifyLeft">
1799- <span data-i18n="Use the appropriate tokenizer for Jurassic models, which is more efficient than GPT's.">Use the appropriate tokenizer for Jurassic models, which is more efficient than GPT's.</span>
1800- </div>
1801- </div>
1802- <div class="range-block" data-source="makersuite">
1803- <label for="use_google_tokenizer" title="Use Google Tokenizer" data-i18n="[title]Use Google Tokenizer" class="checkbox_label widthFreeExpand">
1804- <input id="use_google_tokenizer" type="checkbox" /><span data-i18n="Use Google Tokenizer">Use Google Tokenizer</span>
1805- </label>
1806- <div class="toggle-description justifyLeft">
1807- <span data-i18n="Use the appropriate tokenizer for Google models via their API. Slower prompt processing, but offers much more accurate token counting.">Use the appropriate tokenizer for Google models via their API. Slower prompt processing, but offers much more accurate token counting.</span>
1808- </div>
1809- </div>
18101845 <div class="range-block" data-source="makersuite">
18111846 <label for="use_makersuite_sysprompt" class="checkbox_label widthFreeExpand">
18121847 <input id="use_makersuite_sysprompt" type="checkbox" />
@@ -1821,18 +1856,18 @@
18211856 </span>
18221857 </div>
18231858 </div>
18241859 <div data-newbie-hidden class="range-block" data-source="claude">
18251860 <div class="wide100p">
18261861 <div class="flex-container alignItemsCenter">
18271862 <span id="claude_assistant_prefill_text" data-i18n="Assistant Prefill">Assistant Prefill</span>
18281863 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="claude_assistant_prefill" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
18291864 </div>
18301865 <textarea id="claude_assistant_prefill" class="text_pole textarea_compact autoSetHeight" name="assistant_prefill" rows="6" maxlength="1000002" data-i18n="[placeholder]Start Claude's answer with..." placeholder="Start Claude's answer with..."></textarea>
18311866 <div class="flex-container alignItemsCenter">
18321867 <span id="claude_assistant_impersonation_text" data-i18n="Assistant Impersonation Prefill">Assistant Impersonation Prefill</span>
18331868 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="claude_assistant_impersonation" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
18341869 </div>
18351870 <textarea id="claude_assistant_impersonation" class="text_pole textarea_compact autoSetHeight" name="assistant_impersonation" rows="6" maxlength="1000002" data-i18n="[placeholder]Start Claude's answer with..." placeholder="Start Claude's answer with..."></textarea>
18361871 </div>
18371872 <label for="claude_use_sysprompt" class="checkbox_label widthFreeExpand">
18381873 <input id="claude_use_sysprompt" type="checkbox" />
@@ -1852,11 +1887,11 @@
18521887 <div class="fa-solid fa-clock-rotate-left"></div>
18531888 </div>
18541889 </div>
18551890 <textarea id="claude_human_sysprompt_textarea" class="text_pole textarea_compact" rows="4autoSetHeight" maxlengthrows="100002" data-i18n="[placeholder]Human message" placeholder="Human message, instruction, etc.&#10;Adds nothing when empty, i.e. requires a new prompt with the role 'user'."></textarea>
18561891 </div>
18571892 </div>
18581893 </div>
18591894 <div data-newbie-hidden class="range-block m-t-1" data-source="openai,openrouter,scale">
18601895 <div id="logit_bias_openai" class="range-block-title openai_restorable" data-i18n="Logit Bias">
18611896 Logit Bias
18621897 </div>
@@ -1894,7 +1929,7 @@
18941929 </div>
18951930 </div>
18961931 </div>
18971932 <div data-newbie-hidden class="range-block m-b-1">
18981933 <div id="completion_prompt_manager"></div>
18991934 </div>
19001935 </div><!-- end of OpenAI settings-->
@@ -1905,35 +1940,44 @@
19051940 </div>
19061941 <div id="sys-settings-button" class="drawer">
19071942 <div class="drawer-toggle drawer-header">
19081943 <div id="API-status-top" class="drawer-icon fa-solid fa-plug-circle-exclamation fa-fw closedIcon" title="API Connections" data-i18n="[title]API Connections;[no_connection_text]api_no_connection" no_connection_text="No connection..."></div>
19091944 </div>
19101945 <div id="rm_api_block" class="drawer-content closedDrawer">
19111946 <h3 class="margin0" id="title_api">API</h3>
19121947 <div class="flex-container flexFlowColumn">
19131948 <div id="main-API-selector-block">
19141949 <select id="main_api">
19151950 <option value="textgenerationwebui"><span data-i18n="Text Completion">Text Completion</span></option>
19161951 <option value="openai"><span data-i18n="Chat Completion">Chat Completion</span></option>
19171952 <option value="novel"><span data-i18n="NovelAI">NovelAI</span></option>
19181953 <option value="koboldhorde"><span data-i18n="KoboldAI Horde">KoboldAI Horde</span></option>
19191954 <option value="kobold"><span data-i18n="KoboldAI">KoboldAI Classic</span></option>
19201955 </select>
19211956 </div>
19221957 <div id="kobold_horde" style="position: relative;"> <!-- shows the kobold settings -->
19231958 <form action="javascript:void(null);" method="post" enctype="multipart/form-data">
19241959 <div id="kobold_horde_block">
19251960 <ul>
1926- <li data-i18n="Avoid sending sensitive information to the Horde.">
1961+ <li>
1927- Avoid sending sensitive information to the Horde.
1962+ <a target="_blank" href="https://aihorde.net/" data-i18n="KoboldAI Horde Website">
1928- <a target="_blank" href="https://docs.sillytavern.app/usage/api-connections/horde/" data-i18n="Review the Privacy statement">Review the Privacy statement</a>
1963+ KoboldAI Horde Website
1964+ </a>
19291965 </li>
19301966 <li>
1931- <a target="_blank" href="https://horde.koboldai.net/register" data-i18n="Register a Horde account for faster queue times">Register a Horde
1967+ <span data-i18n="Avoid sending sensitive information to the Horde.">Avoid sending sensitive information to the Horde.</span>
1932- account for faster queue times</a>
1968+ <a target="_blank" href="https://docs.sillytavern.app/usage/api-connections/horde/" data-i18n="Review the Privacy statement">
1969+ Review the Privacy statement
1970+ </a>
1971+ </li>
1972+ <li>
1973+ <a target="_blank" href="https://aihorde.net/register" data-i18n="Register a Horde account for faster queue times">
1974+ Register a Horde account for faster queue times
1975+ </a>
19331976 </li>
19341977 <li>
19351978 <a target="_blank" href="https://github.com/Haidra-Org/horde-worker-reGen?tab=readme-ov-file#ai-horde-worker-regen" data-i18n="Learn how to contribute your idle GPU cycles to the Horde">Learn
19361979 Learn how to contribute your idle GPU cycles to the Horde</a>
1980+ </a>
19371981 </li>
19381982 </ul>
19391983 <label for="horde_auto_adjust_context_length" class="checkbox_label">
@@ -1951,14 +1995,11 @@
19511995 <small id="adjustedHordeParams">Context: --, Response: --</small>
19521996 <h4 data-i18n="API key">API key</h4>
19531997 <small>
19541998 <span data-i18n="Get it here:">Get it here: </span> <a target="_blank" href="https://horde.koboldaiaihorde.net/register" data-i18n="Register">Register</a> (<a id="horde_kudos" href="javascript:void(0);" data-i18n="View my Kudos">View my Kudos</a>)<br>
19551999 <span data-i18n="Enter">Enter </span> <span class="monospace">0000000000</span> <span data-i18n="to use anonymous mode.">to use anonymous mode. </span>
19562000 </small>
1957- <!-- <div>
1958- <a id="horde_kudos" href="javascript:void(0);">View my Kudos</a>
1959- </div> -->
19602001 <div class="flex-container">
19612002 <input id="horde_api_key" name="horde_api_key" class="text_pole flex1" maxlength="500" type="text" placeholder="0000000000" autocomplete="off">
19622003 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_horde"></div>
19632004 </div>
19642005 <div data-for="horde_api_key" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -1985,13 +2026,13 @@
19852026 <div id="kobold_api_block">
19862027 <h4 data-i18n="API url">API url</h4>
19872028 <small data-i18n="Example: http://127.0.0.1:5000/api ">Example: http://127.0.0.1:5000/api </small>
19882029 <input id="api_url_text" name="api_url" class="text_pole" placeholder="http://127.0.0.1:5000/api" maxlength="500" value="" autocomplete="off" data-server-history="kobold">
19892030 <div id="koboldcpp_hint" class="neutral_warning displayNone">
19902031 KoboldCpp works better when you select the Text Completion API and then KoboldCpp as a type!
19912032 </div>
19922033 <div class="flex-container">
19932034 <div id="api_button" class="api_button menu_button menu_button_icon" type="submit" data-i18n="Connect" data-server-connect="kobold">Connect</div>
19942035 <div class="api_loading menu_button menu_button_icon" data-i18n="Cancel">Cancel</div>
19952036 </div>
19962037 </div>
19972038 <div class="online_status">
@@ -2013,7 +2054,7 @@
20132054 </ol>
20142055 </span>
20152056 <div class="flex-container">
20162057 <input id="api_key_novel" name="api_key_novel" class="text_pole flex1 wide100p" maxlength="500" size="35" type="text" autocomplete="off">
20172058 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_novel">
20182059 </div>
20192060 </div>
@@ -2028,10 +2069,11 @@
20282069 <select id="model_novel_select">
20292070 <option value="clio-v1">Clio</option>
20302071 <option value="kayra-v1">Kayra</option>
2072+ <option value="llama-3-erato-v1">Erato</option>
20312073 </select>
20322074 <div class="flex-container">
20332075 <div id="api_button_novel" class="api_button menu_button menu_button_icon" type="submit" data-i18n="Connect">Connect</div>
20342076 <div class="api_loading menu_button menu_button_icon" data-i18n="Cancel">Cancel</div>
20352077 </div>
20362078 </form>
20372079 <div class="online_status">
@@ -2063,7 +2105,7 @@
20632105 <div data-tg-type="togetherai" class="flex-container flexFlowColumn">
20642106 <h4 data-i18n="TogetherAI API Key">TogetherAI API Key</h4>
20652107 <div class="flex-container">
20662108 <input id="api_key_togetherai" name="api_key_togetherai" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
20672109 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_togetherai"></div>
20682110 </div>
20692111 <div data-for="api_key_togetherai" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2072,7 +2114,7 @@
20722114 <div>
20732115 <h4 data-i18n="TogetherAI Model">TogetherAI Model</h4>
20742116 <select id="model_togetherai_select">
20752117 <option value="" data-i18n="-- Connect to the API --">
20762118 -- Connect to the API --
20772119 </option>
20782120 </select>
@@ -2087,7 +2129,7 @@
20872129 <a href="https://openrouter.ai/account" target="_blank" data-i18n="View Remaining Credits">View Remaining Credits</a>
20882130 </div>
20892131 <div class="flex-container">
20902132 <input id="api_key_openrouter-tg" name="api_key_openrouter" class="text_pole flex1 api_key_openrouter" maxlength="500" value="" type="text" autocomplete="off">
20912133 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_openrouter"></div>
20922134 </div>
20932135 <div data-for="api_key_openrouter" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2096,7 +2138,7 @@
20962138 <div>
20972139 <h4 data-i18n="OpenRouter Model">OpenRouter Model</h4>
20982140 <select id="openrouter_model">
20992141 <option value="" data-i18n="-- Connect to the API --">
21002142 -- Connect to the API --
21012143 </option>
21022144 </select>
@@ -2114,7 +2156,7 @@
21142156 <div data-tg-type="infermaticai" class="flex-container flexFlowColumn">
21152157 <h4 data-i18n="InfermaticAI API Key">InfermaticAI API Key</h4>
21162158 <div class="flex-container">
21172159 <input id="api_key_infermaticai" name="api_key_infermaticai" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
21182160 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_infermaticai"></div>
21192161 </div>
21202162 <div data-for="api_key_infermaticai" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2123,7 +2165,7 @@
21232165 <div>
21242166 <h4 data-i18n="InfermaticAI Model">InfermaticAI Model</h4>
21252167 <select id="model_infermaticai_select">
2126- <option>
2168+ <option value="" data-i18n="-- Connect to the API --">
21272169 -- Connect to the API --
21282170 </option>
21292171 </select>
@@ -2137,7 +2179,7 @@
21372179 </a>
21382180 </h4>
21392181 <div class="flex-container">
21402182 <input id="api_key_dreamgen" name="api_key_dreamgen" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
21412183 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_dreamgen"></div>
21422184 </div>
21432185 <div data-for="api_key_dreamgen" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2146,7 +2188,7 @@
21462188 <div>
21472189 <h4 data-i18n="DreamGen Model">DreamGen Model</h4>
21482190 <select id="model_dreamgen_select">
2149- <option>
2191+ <option value="" data-i18n="-- Connect to the API --">
21502192 -- Connect to the API --
21512193 </option>
21522194 </select>
@@ -2162,7 +2204,7 @@
21622204 </a>
21632205 </h4>
21642206 <div class="flex-container">
21652207 <input id="api_key_mancer" name="api_key_mancer" class="text_pole flex1 wide100p" maxlength="500" size="35" type="text" autocomplete="off">
21662208 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_mancer">
21672209 </div>
21682210 </div>
@@ -2172,7 +2214,7 @@
21722214 <div class="flex1">
21732215 <h4 data-i18n="Mancer Model">Mancer Model</h4>
21742216 <select id="mancer_model">
21752217 <option value="" data-i18n="-- Connect to the API --">
21762218 -- Connect to the API --
21772219 </option>
21782220 </select>
@@ -2192,7 +2234,7 @@
21922234 </div>
21932235 <h4 data-i18n="API key (optional)">API key (optional)</h4>
21942236 <div class="flex-container">
21952237 <input id="api_key_ooba" name="api_key_ooba" class="text_pole flex1 wide100p" maxlength="500" size="35" type="text" autocomplete="off">
21962238 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_ooba">
21972239 </div>
21982240 </div>
@@ -2202,9 +2244,9 @@
22022244 <div class="flex1">
22032245 <h4 data-i18n="Server url">Server URL</h4>
22042246 <small data-i18n="Example: 127.0.0.1:5000">Example: http://127.0.0.1:5000</small>
22052247 <input id="textgenerationwebui_api_url_text" name="textgenerationwebui_api_url" class="text_pole wide100p" maxlength="500" value="" autocomplete="off" data-server-history="ooba_blocking">
22062248 </div>
22072249 <input id="custom_model_textgenerationwebui" class="text_pole wide100p" maxlength="500" placeholder="Custom model (optional)" data-i18n="[placeholder]Custom model (optional)" type="text">
22082250 </div>
22092251 <div data-tg-type="featherless" class="flex-container flexFlowColumn">
22102252 <div class="flex-container flexFlowColumn">
@@ -2214,7 +2256,7 @@
22142256 </div>
22152257 <h4 data-i18n="API key (optional)">API key</h4>
22162258 <div class="flex-container">
22172259 <input id="api_key_featherless" name="api_key_featherless" class="text_pole flex1 wide100p" maxlength="500" size="35" type="text" autocomplete="off">
22182260 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_featherless">
22192261 </div>
22202262 </div>
@@ -2222,7 +2264,7 @@
22222264 For privacy reasons, your API key will be hidden after you reload the page.
22232265 </div>
22242266 <select id="featherless_model">
22252267 <option value="" data-i18n="-- Connect to the API --">
22262268 -- Connect to the API --
22272269 </option>
22282270 </select>
@@ -2235,7 +2277,7 @@
22352277 </div>
22362278 <h4 data-i18n="vLLM API key">vLLM API key</h4>
22372279 <div class="flex-container">
22382280 <input id="api_key_vllm" name="api_key_vllm" class="text_pole flex1 wide100p" maxlength="500" size="35" type="text" autocomplete="off">
22392281 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_vllm">
22402282 </div>
22412283 </div>
@@ -2245,12 +2287,12 @@
22452287 <div class="flex1">
22462288 <h4 data-i18n="API url">API URL</h4>
22472289 <small data-i18n="Example: 127.0.0.1:8000">Example: http://127.0.0.1:8000</small>
22482290 <input id="vllm_api_url_text" class="text_pole wide100p" maxlength="500" value="" autocomplete="off" data-server-history="vllm">
22492291 </div>
22502292 <div>
22512293 <h4 data-i18n="vLLM Model">vLLM Model</h4>
22522294 <select id="vllm_model">
22532295 <option value="" data-i18n="-- Connect to the API --">
22542296 -- Connect to the API --
22552297 </option>
22562298 </select>
@@ -2259,7 +2301,7 @@
22592301 <div data-tg-type="huggingface">
22602302 <h4 data-i18n="HuggingFace Token">HuggingFace Token</h4>
22612303 <div class="flex-container">
22622304 <input id="api_key_huggingface" name="api_key_huggingface" class="text_pole flex1 wide100p" maxlength="500" size="35" type="text" autocomplete="off">
22632305 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_huggingface">
22642306 </div>
22652307 </div>
@@ -2269,7 +2311,7 @@
22692311 <div class="flex1">
22702312 <h4 data-i18n="Endpoint URL">Endpoint URL</h4>
22712313 <small data-i18n="Example: https://****.endpoints.huggingface.cloud">Example: https://****.endpoints.huggingface.cloud</small>
22722314 <input id="huggingface_api_url_text" class="text_pole wide100p" maxlength="500" value="" autocomplete="off" data-server-history="huggingface">
22732315 </div>
22742316 </div>
22752317
@@ -2281,7 +2323,7 @@
22812323 </div>
22822324 <h4 data-i18n="Aphrodite API key">Aphrodite API key</h4>
22832325 <div class="flex-container">
22842326 <input id="api_key_aphrodite" name="api_key_aphrodite" class="text_pole flex1 wide100p" maxlength="500" size="35" type="text" autocomplete="off">
22852327 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_aphrodite">
22862328 </div>
22872329 </div>
@@ -2291,12 +2333,12 @@
22912333 <div class="flex1">
22922334 <h4 data-i18n="API url">API URL</h4>
22932335 <small data-i18n="Example: 127.0.0.1:5000">Example: http://127.0.0.1:5000</small>
22942336 <input id="aphrodite_api_url_text" class="text_pole wide100p" maxlength="500" value="" autocomplete="off" data-server-history="aphrodite">
22952337 </div>
22962338 <div>
22972339 <h4 data-i18n="Aphrodite Model">Aphrodite Model</h4>
22982340 <select id="aphrodite_model">
22992341 <option value="" data-i18n="-- Connect to the API --">
23002342 -- Connect to the API --
23012343 </option>
23022344 </select>
@@ -2310,7 +2352,7 @@
23102352 </div>
23112353 <h4 data-i18n="API key (optional)">API key (optional)</h4>
23122354 <div class="flex-container">
23132355 <input id="api_key_llamacpp" name="api_key_llamacpp" class="text_pole flex1 wide100p" maxlength="500" size="35" type="text" autocomplete="off">
23142356 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_llamacpp">
23152357 </div>
23162358 </div>
@@ -2320,7 +2362,7 @@
23202362 <div class="flex1">
23212363 <h4 data-i18n="API url">API URL</h4>
23222364 <small data-i18n="Example: 127.0.0.1:8080">Example: http://127.0.0.1:8080</small>
23232365 <input id="llamacpp_api_url_text" class="text_pole wide100p" maxlength="500" value="" autocomplete="off" data-server-history="llamacpp">
23242366 </div>
23252367 </div>
23262368 <div data-tg-type="ollama">
@@ -2332,15 +2374,14 @@
23322374 <div class="flex1">
23332375 <h4 data-i18n="API url">API URL</h4>
23342376 <small data-i18n="Example: 127.0.0.1:11434">Example: http://127.0.0.1:11434</small>
23352377 <input id="ollama_api_url_text" class="text_pole wide100p" maxlength="500" value="" autocomplete="off" data-server-history="ollama">
23362378 </div>
23372379 <div class="flex1">
23382380 <h4>
23392381 <span data-i18n="Ollama Model">Ollama Model</span>
2340- </h4>
23412382 </h4>
23422383 <select id="ollama_model">
23432384 <option value="" data-i18n="-- Connect to the API --">
23442385 -- Connect to the API --
23452386 </option>
23462387 </select>
@@ -2358,7 +2399,7 @@
23582399 </div>
23592400 <h4 data-i18n="Tabby API key">Tabby API key</h4>
23602401 <div class="flex-container">
23612402 <input id="api_key_tabby" name="api_key_tabby" class="text_pole flex1 wide100p" maxlength="500" size="35" type="text" autocomplete="off">
23622403 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_tabby">
23632404 </div>
23642405 </div>
@@ -2368,13 +2409,33 @@
23682409 <div class="flex1">
23692410 <h4 data-i18n="API url">API URL</h4>
23702411 <small data-i18n="Example: 127.0.0.1:5000">Example: http://127.0.0.1:5000</small>
23712412 <input id="tabby_api_url_text" class="text_pole wide100p" maxlength="500" value="" autocomplete="off" data-server-history="tabby">
23722413 </div>
23732414 <div class="flex1">
23742415 <h4>
23752416 <span data-i18n="Tabby Model">Tabby Model</span>
23762417 </h4>
23772418 </h4b>
2419+ EXPERIMENTAL FEATURE. USE AT YOUR OWN RISK. DON'T ASK FOR SUPPORT ON THIS.
2420+ </b>
2421+ <select id="tabby_model">
2422+ <option value="" data-i18n="-- Connect to the API --">
2423+ -- Connect to the API --
2424+ </option>
2425+ </select>
2426+ <div class="marginTopBot5">
2427+ <small>
2428+ <i class="fa-solid fa-lightbulb"></i>
2429+ &nbsp;
2430+ <code>inline_model_loading: True</code>
2431+ <span data-i18n="must be set in Tabby's config.yml to switch models.">
2432+ must be set in Tabby's config.yml to switch models.
2433+ </span>
2434+ <b data-i18n="Use an admin API key.">
2435+ Use an admin API key.
2436+ </b>
2437+ </small>
2438+ </div>
23782439 <div id="tabby_download_model" class="menu_button menu_button_icon">
23792440 <i class="fa-solid fa-download"></i>
23802441 <span data-i18n="Download">Download</span>
@@ -2389,7 +2450,7 @@
23892450 </div>
23902451 <h4 data-i18n="koboldcpp API key (optional)">koboldcpp API key (optional)</h4>
23912452 <div class="flex-container">
23922453 <input id="api_key_koboldcpp" name="api_key_koboldcpp" class="text_pole flex1 wide100p" maxlength="500" size="35" type="text" autocomplete="off">
23932454 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_koboldcpp">
23942455 </div>
23952456 </div>
@@ -2399,15 +2460,15 @@
23992460 <div class="flex1">
24002461 <h4 data-i18n="API url">API URL</h4>
24012462 <small data-i18n="Example: 127.0.0.1:5001">Example: http://127.0.0.1:5001</small>
24022463 <input id="koboldcpp_api_url_text" class="text_pole wide100p" maxlength="500" value="" autocomplete="off" data-server-history="koboldcpp">
24032464 </div>
24042465 </div>
24052466 <div class="flex-container">
24062467 <div id="api_button_textgenerationwebui" class="api_button menu_button menu_button_icon" type="submit" data-i18n="Connect" data-server-connect="ooba_blocking,vllm,aphrodite,tabby,koboldcpp,ollama,llamacpp,huggingface">Connect</div>
24072468 <div data-tg-type="openrouter" class="menu_button menu_button_icon openrouter_authorize" title="Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai" data-i18n="Authorize;[title]Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai">Authorize</div>
24082469 <div class="api_loading menu_button menu_button_icon" data-i18n="Cancel">Cancel</div>
24092470 </div>
24102471 <label data-tg-type="ooba,aphrodite" class="checkbox_label margin-bot-10px" for="legacy_api_textgenerationwebui">
24112472 <input type="checkbox" id="legacy_api_textgenerationwebui" />
24122473 <span data-i18n="Legacy API (pre-OAI, no streaming)">Legacy API (pre-OAI, no streaming)</span>
24132474 </label>
@@ -2445,7 +2506,7 @@
24452506 <option value="windowai">Window AI</option>
24462507 </optgroup>
24472508 </select>
24482509 <div data-newbie-hidden class="inline-drawer wide100p" data-source="openai,claude,mistralai,makersuite">
24492510 <div class="inline-drawer-toggle inline-drawer-header">
24502511 <b data-i18n="Reverse Proxy">Reverse Proxy</b>
24512512 <div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
@@ -2474,7 +2535,7 @@
24742535 </span>
24752536 </div>
24762537 <div class="wide100p">
24772538 <input id="openai_reverse_proxy_name" type="text" class="text_pole" placeholder="..." maxlength="100" />
24782539 </div>
24792540 <div class="range-block-title justifyLeft" data-i18n="Proxy Server URL">
24802541 Proxy Server URL
@@ -2485,7 +2546,7 @@
24852546 </span>
24862547 </div>
24872548 <div class="wide100p">
24882549 <input id="openai_reverse_proxy" type="text" class="text_pole" placeholder="https://api.openai.com/v1" maxlength="5000" />
24892550 <small class="reverse_proxy_warning">
24902551 <span data-i18n="Doesn't work? Try adding">Doesn't work? Try adding</span> <code>/v1</code> <span data-i18n="at the end!">at the end!</span>
24912552 </small>
@@ -2499,7 +2560,7 @@
24992560 </span>
25002561 </div>
25012562 <div class="flex-container width100p">
25022563 <input id="openai_proxy_password" type="password" class="text_pole flex1" placeholder="" maxlength="5000" form="openai_form" autocomplete="off" />
25032564 <div id="openai_proxy_password_show" title="Peek a password" data-i18n="[title]Peek a password" class="menu_button fa-solid fa-eye-slash fa-fw"></div>
25042565 </div>
25052566 </div>
@@ -2540,7 +2601,7 @@
25402601 </ol>
25412602 </span>
25422603 <div class="flex-container">
25432604 <input id="api_key_openai" name="api_key_openai" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
25442605 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_openai"></div>
25452606 </div>
25462607 <div id="ReverseProxyWarningMessage2" class="reverse_proxy_warning">
@@ -2593,6 +2654,10 @@
25932654 <option value="gpt-4-0125-preview">gpt-4-0125-preview (2024)</option>
25942655 <option value="gpt-4-1106-preview">gpt-4-1106-preview (2023)</option>
25952656 </optgroup>
2657+ <optgroup label="o1">
2658+ <option value="o1-preview">o1-preview</option>
2659+ <option value="o1-mini">o1-mini</option>
2660+ </optgroup>
25962661 <optgroup label="Other">
25972662 <option value="text-davinci-003">text-davinci-003</option>
25982663 <option value="text-davinci-002">text-davinci-002</option>
@@ -2625,7 +2690,7 @@
26252690 </b>
26262691 </div>
26272692 <div class="flex-container">
26282693 <input id="api_key_claude" name="api_key_claude" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
26292694 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_claude"></div>
26302695 </div>
26312696 <div data-for="api_key_claude" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2677,7 +2742,7 @@
26772742 <a href="https://openrouter.ai/account" target="_blank" data-i18n="View Remaining Credits">View Remaining Credits</a>
26782743 </div>
26792744 <div class="flex-container">
26802745 <input id="api_key_openrouter" name="api_key_openrouter" class="text_pole flex1 api_key_openrouter" maxlength="500" value="" type="text" autocomplete="off">
26812746 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_openrouter"></div>
26822747 </div>
26832748 <div data-for="api_key_openrouter" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2686,7 +2751,7 @@
26862751 <div>
26872752 <h4 data-i18n="OpenRouter Model">OpenRouter Model</h4>
26882753 <select id="model_openrouter_select">
26892754 <option value="" data-i18n="-- Connect to the API --">-- Connect to the API --</option>
26902755 </select>
26912756 </div>
26922757 <label for="openrouter_use_fallback" class="checkbox_label marginTopBot5" data-i18n="[title]Allow fallback routes Description" title="Automatically chooses an alternative model if the chosen model can't serve your request.">
@@ -2753,19 +2818,19 @@
27532818 <div id="normal_scale_form">
27542819 <h4 data-i18n="Scale API Key">Scale API Key</h4>
27552820 <div class="flex-container">
27562821 <input id="api_key_scale" name="api_key_scale" class="text_pole flex1" maxlength="500" value="" autocomplete="off">
27572822 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_scale"></div>
27582823 </div>
27592824 <div data-for="api_key_scale" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
27602825 For privacy reasons, your API key will be hidden after you reload the page.
27612826 </div>
27622827 <h4>Scale API URL</h4>
27632828 <input id="api_url_scale" name="api_url_scale" class="text_pole" maxlength="500" value="" autocomplete="off" placeholder="https://dashboard.scale.com/spellbook/api/v2/deploy/xxxxxxx">
27642829 </div>
27652830 <div id="alt_scale_form">
27662831 <h4>Scale Cookie (_jwt)</h4>
27672832 <div class="flex-container">
27682833 <input id="scale_cookie" name="scale_cookie" class="text_pole flex1" maxlength="500" value="" autocomplete="off">
27692834 <div title="Clear your cookie" data-i18n="[title]Clear your cookie" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="scale_cookie"></div>
27702835 </div>
27712836 <div data-for="scale_cookie" class="neutral_warning">
@@ -2782,7 +2847,7 @@
27822847 <form id="ai21_form" data-source="ai21" action="javascript:void(null);" method="post" enctype="multipart/form-data">
27832848 <h4 data-i18n="AI21 API Key">AI21 API Key</h4>
27842849 <div class="flex-container">
27852850 <input id="api_key_ai21" name="api_key_ai21" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
27862851 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_ai21"></div>
27872852 </div>
27882853 <div data-for="api_key_ai21" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2791,10 +2856,12 @@
27912856 <div>
27922857 <h4 data-i18n="AI21 Model">AI21 Model</h4>
27932858 <select id="model_ai21_select">
27942859 <optgroup label="LatestJamba 1.5">
27952860 <option value="j2jamba-ultra1.5-mini">j2jamba-ultra1.5-mini</option>
27962861 <option value="j2jamba-mid1.5-large">j2jamba-mid1.5-large</option>
2797- <option value="j2-light">j2-light</option>
2862+ </optgroup>
2863+ <optgroup label="Jamba-Instruct (Deprecated)">
2864+ <option value="jamba-instruct-preview">jamba-instruct-preview</option>
27982865 </optgroup>
27992866 </select>
28002867 </div>
@@ -2802,7 +2869,7 @@
28022869 <form id="makersuite_form" data-source="makersuite" action="javascript:void(null);" method="post" enctype="multipart/form-data">
28032870 <h4 data-i18n="Google AI Studio API Key">Google AI Studio API Key</h4>
28042871 <div class="flex-container">
28052872 <input id="api_key_makersuite" name="api_key_makersuite" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
28062873 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_makersuite"></div>
28072874 </div>
28082875 <div data-for="api_key_makersuite" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2824,8 +2891,11 @@
28242891 </optgroup>
28252892 <optgroup label="Subversions">
28262893 <option value="gemini-1.5-pro-exp-0801">Gemini 1.5 Pro Experiment 2024-08-01</option>
2894+ <option value="gemini-1.5-pro-exp-0827">Gemini 1.5 Pro Experiment 2024-08-27</option>
28272895 <option value="gemini-1.5-pro-latest">Gemini 1.5 Pro [latest]</option>
28282896 <option value="gemini-1.5-pro-001">Gemini 1.5 Pro [001]</option>
2897+ <option value="gemini-1.5-flash-exp-0827">Gemini 1.5 Flash Experiment 2024-08-27</option>
2898+ <option value="gemini-1.5-flash-8b-exp-0827">Gemini 1.5 Flash 8B Experiment 2024-08-27</option>
28292899 <option value="gemini-1.5-flash-latest">Gemini 1.5 Flash [latest]</option>
28302900 <option value="gemini-1.5-flash-001">Gemini 1.5 Flash [001]</option>
28312901 <option value="gemini-1.0-pro-latest">Gemini 1.0 Pro [latest]</option>
@@ -2838,7 +2908,7 @@
28382908 <form id="mistralai_form" data-source="mistralai" action="javascript:void(null);" method="post" enctype="multipart/form-data">
28392909 <h4 data-i18n="MistralAI API Key">MistralAI API Key</h4>
28402910 <div class="flex-container">
28412911 <input id="api_key_mistralai" name="api_key_mistralai" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
28422912 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_mistralai"></div>
28432913 </div>
28442914 <div data-for="api_key_mistralai" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2858,6 +2928,7 @@
28582928 <option value="mistral-large-latest">mistral-large-latest</option>
28592929 <option value="codestral-latest">codestral-latest</option>
28602930 <option value="codestral-mamba-latest">codestral-mamba-latest</option>
2931+ <option value="pixtral-latest">pixtral-latest</option>
28612932 </optgroup>
28622933 <optgroup label="Sub-versions">
28632934 <option value="open-mistral-nemo-2407">open-mistral-nemo-2407</option>
@@ -2865,11 +2936,13 @@
28652936 <option value="mistral-tiny-2312">mistral-tiny-2312</option>
28662937 <option value="mistral-small-2312">mistral-small-2312</option>
28672938 <option value="mistral-small-2402">mistral-small-2402</option>
2939+ <option value="mistral-small-2409">mistral-small-2409</option>
28682940 <option value="mistral-medium-2312">mistral-medium-2312</option>
28692941 <option value="mistral-large-2402">mistral-large-2402</option>
28702942 <option value="mistral-large-2407">mistral-large-2407</option>
28712943 <option value="codestral-2405">codestral-2405</option>
28722944 <option value="codestral-mamba-2407">codestral-mamba-2407</option>
2945+ <option value="pixtral-12b-2409">pixtral-12b-2409</option>
28732946 </optgroup>
28742947 </select>
28752948 </div>
@@ -2877,7 +2950,7 @@
28772950 <div id="groq_form" data-source="groq">
28782951 <h4 data-i18n="Groq API Key">Groq API Key</h4>
28792952 <div class="flex-container">
28802953 <input id="api_key_groq" name="api_key_groq" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
28812954 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_groq"></div>
28822955 </div>
28832956 <div data-for="api_key_groq" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2900,7 +2973,7 @@
29002973 <div id="perplexity_form" data-source="perplexity">
29012974 <h4 data-i18n="Perplexity API Key">Perplexity API Key</h4>
29022975 <div class="flex-container">
29032976 <input id="api_key_perplexity" name="api_key_perplexity" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
29042977 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_perplexity"></div>
29052978 </div>
29062979 <div data-for="api_key_perplexity" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2940,7 +3013,7 @@
29403013 <form id="cohere_form" data-source="cohere" action="javascript:void(null);" method="post" enctype="multipart/form-data">
29413014 <h4 data-i18n="Cohere API Key">Cohere API Key</h4>
29423015 <div class="flex-container">
29433016 <input id="api_key_cohere" name="api_key_cohere" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
29443017 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_cohere"></div>
29453018 </div>
29463019 <div data-for="api_key_cohere" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2950,11 +3023,14 @@
29503023 <h4 data-i18n="Cohere Model">Cohere Model</h4>
29513024 <select id="model_cohere_select">
29523025 <optgroup label="Stable">
29533026 <option value="c4ai-aya-23-35b">c4ai-aya-23-35b</option>
3027+ <option value="c4ai-aya-23-8b">c4ai-aya-23-8b</option>
29543028 <option value="command-light">command-light</option>
29553029 <option value="command">command</option>
29563030 <option value="command-r">command-r</option>
29573031 <option value="command-r-plus">command-r-plus</option>
3032+ <option value="command-r-08-2024">command-r-08-2024</option>
3033+ <option value="command-r-plus-08-2024">command-r-plus-08-2024</option>
29583034 </optgroup>
29593035 <optgroup label="Nightly">
29603036 <option value="command-light-nightly">command-light-nightly</option>
@@ -2966,7 +3042,7 @@
29663042 <form id="blockentropy_form" data-source="blockentropy">
29673043 <h4 data-i18n="Block Entropy API Key">Block Entropy API Key</h4>
29683044 <div class="flex-container">
29693045 <input id="api_key_blockentropy" name="api_key_blockentropy" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
29703046 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_blockentropy"></div>
29713047 </div>
29723048 <div data-for="api_key_blockentropy" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -2980,7 +3056,7 @@
29803056 <form id="custom_form" data-source="custom">
29813057 <h4 data-i18n="Custom Endpoint (Base URL)">Custom Endpoint (Base URL)</h4>
29823058 <div class="flex-container">
29833059 <input id="custom_api_url_text" class="text_pole wide100p" maxlength="5000" value="" autocomplete="off" data-i18n="[placeholder]Example: http://localhost:1234/v1" placeholder="Example: http://localhost:1234/v1">
29843060 </div>
29853061 <div>
29863062 <small>
@@ -2992,7 +3068,7 @@
29923068 <small data-i18n="(Optional)">(Optional)</small>
29933069 </h4>
29943070 <div class="flex-container">
29953071 <input id="api_key_custom" name="api_key_custom" class="text_pole flex1" maxlength="5000" value="" type="text" autocomplete="off">
29963072 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_custom"></div>
29973073 </div>
29983074 <div data-for="api_key_custom" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -3000,7 +3076,7 @@
30003076 </div>
30013077 <h4 data-i18n="Enter a Model ID">Enter a Model ID</h4>
30023078 <div class="flex-container">
30033079 <input list="model_custom_select_fill" id="custom_model_id" class="text_pole wide100p" maxlength="500" value="" autocomplete="off" data-i18n="[placeholder]Example: gpt-3.5-turbo" placeholder="Example: gpt-3.5-turbo">
30043080 <datalist id="model_custom_select_fill" class="text_pole model_custom_select"></datalist>
30053081 </div>
30063082 <h4 data-i18n="Available Models">Available Models</h4>
@@ -3020,7 +3096,7 @@
30203096 </a>
30213097 </h4>
30223098 <div class="flex-container">
30233099 <input id="api_key_01ai" name="api_key_01ai" class="text_pole flex1" maxlength="500" value="" type="text" autocomplete="off">
30243100 <div title="Clear your API key" data-i18n="[title]Clear your API key" class="menu_button fa-solid fa-circle-xmark clear-api-key" data-key="api_key_01ai"></div>
30253101 </div>
30263102 <div data-for="api_key_01ai" class="neutral_warning" data-i18n="For privacy reasons, your API key will be hidden after you reload the page.">
@@ -3032,7 +3108,7 @@
30323108 </div>
30333109 <div class="flex-container flex">
30343110 <div id="api_button_openai" class="api_button menu_button menu_button_icon" type="submit" data-i18n="Connect">Connect</div>
30353111 <div class="api_loading menu_button menu_button_icon" data-i18n="Cancel">Cancel</div>
30363112 <div data-source="custom" id="customize_additional_parameters" class="menu_button menu_button_icon" data-i18n="Additional Parameters">Additional Parameters</div>
30373113 <div data-source="openrouter" class="menu_button menu_button_icon openrouter_authorize" title="Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai" data-i18n="Authorize;[title]Get your OpenRouter API token using OAuth flow. You will be redirected to openrouter.ai">Authorize</div>
30383114 <div id="test_api_button" class="menu_button menu_button_icon" title="Verifies your API connection by sending a short test message. Be aware that you'll be credited for it!" data-i18n="[title]Verifies your API connection by sending a short test message. Be aware that you'll be credited for it!"><span data-i18n="Test Message">Test Message</span></div>
@@ -3053,14 +3129,27 @@
30533129 </div>
30543130 <div id="advanced-formatting-button" class="drawer">
30553131 <div class="drawer-toggle">
30563132 <div class="drawer-icon fa-solid fa-font fa-fw closedIcon" title="AI Response Formatting" data-i18n="[title]AI Response Formatting"></div>
30573133 </div>
30583134 <div id="AdvancedFormatting" class="drawer-content">
30593135 <h3div class="margin0" dataflex-i18n="Advancedcontainer FormattingalignItemsBaseline">
3136+ <h3 class="margin0 flex1" data-i18n="Advanced Formatting">
30603137 Advanced Formatting
30613138 </h3>
30623139 <div class="flex-container">
3063- <div id="PygOverrides">
3140+ <input id="af_master_import_file" type="file" hidden accept=".json" class="displayNone">
3141+ <div id="af_master_import" class="menu_button menu_button_icon" title="Import Advanced Formatting settings&#10;&#10;You can also provide legacy files for Instruct and Context templates." data-i18n="[title]Import Advanced Formatting settings">
3142+ <i class="fa-solid fa-file-import"></i>
3143+ <span data-i18n="Master Import">Master Import</span>
3144+ </div>
3145+ <div id="af_master_export" class="menu_button menu_button_icon" title="Export Advanced Formatting settings" data-i18n="[title]Export Advanced Formatting settings">
3146+ <i class="fa-solid fa-file-export"></i>
3147+ <span data-i18n="Master Export">Master Export</span>
3148+ </div>
3149+ </div>
3150+ </div>
3151+ <div class="flex-container spaceEvenly">
3152+ <div id="ContextSettings" class="flex-container flexNoGap flexFlowColumn flex1">
30643153 <div>
30653154 <h4 class="standoutHeader title_restorable">
30663155 <div>
@@ -3069,32 +3158,32 @@
30693158 <span class="fa-solid fa-circle-question note-link-span"></span>
30703159 </a>
30713160 </div>
3072- <div class="flex-container">
3073- <i data-newbie-hidden data-preset-manager-import="context" class="margin0 menu_button fa-solid fa-file-import" title="Import preset" data-i18n="[title]Import preset"></i>
3074- <i data-newbie-hidden data-preset-manager-export="context" class="margin0 menu_button fa-solid fa-file-export" title="Export preset" data-i18n="[title]Export preset"></i>
3075- <i data-newbie-hidden data-preset-manager-restore="context" class="margin0 menu_button fa-solid fa-recycle" title="Restore current preset" data-i18n="[title]Restore current preset"></i>
3076- <i data-newbie-hidden id="context_delete_preset" data-preset-manager-delete="context" class="margin0 menu_button fa-solid fa-trash-can" title="Delete the preset" data-i18n="[title]Delete the preset"></i>
3077- </div>
30783161 </h4>
3079- <div class="flex-container">
3162+ <div class="flex-container" title="Select your current Context Template" data-i18n="[title]Select your current Context Template">
30803163 <select id="context_presets" data-preset-manager-for="context" class="flex1 text_pole"></select>
3164+ <div class="flex-container justifyCenter">
30813165 <input type="file" hidden data-preset-manager-file="context" accept=".json, .settings">
30823166 <i iddata-preset-manager-update="context_set_defaultcontext" class="menu_button fa-solid fa-heartsave" title="Auto-select this preset forUpdate Instructcurrent Mode.template" data-i18n="[title]Auto-select this preset forUpdate Instructcurrent Modetemplate"></i>
30833167 <i data-newbie-hidden data-preset-manager-updatenew="context" class="menu_button fa-solid fa-savefile-circle-plus" title="UpdateSave currenttemplate presetas" data-i18n="[title]UpdateSave currenttemplate presetas"></i>
30843168 <i data-newbie-hidden data-preset-manager-newimport="context" class="displayNone menu_button fa-solid fa-file-circle-plusimport" title="Save presetImport astemplate" data-i18n="[title]Save presetImport astemplate"></i>
3169+ <i data-preset-manager-export="context" class="displayNone menu_button fa-solid fa-file-export" title="Export template" data-i18n="[title]Export template"></i>
3170+ <i data-preset-manager-restore="context" class="menu_button fa-solid fa-recycle" title="Restore current template" data-i18n="[title]Restore current template"></i>
3171+ <i id="context_delete_preset" data-preset-manager-delete="context" class="menu_button fa-solid fa-trash-can" title="Delete the template" data-i18n="[title]Delete the template"></i>
3172+ </div>
30853173 </div>
30863174 <div data-newbie-hidden>
30873175 <label for="context_story_string" class="flex-container">
30883176 <small data-i18n="Story String">Story String</small>
3177+ <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="context_story_string" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
30893178 </label>
30903179 <textarea id="context_story_string" class="text_pole textarea_compact autoSetHeight" rows="1"></textarea>
30913180 <div class="flex-container">
30923181 <div class="flex1">
30933182 <label for="context_example_separator">
30943183 <small data-i18n="Example Separator">Example Separator</small>
30953184 </label>
30963185 <div>
30973186 <textarea id="context_example_separator" class="text_pole textarea_compact autoSetHeight" maxlength="500" rows="1"></textarea>
30983187 </div>
30993188 </div>
31003189 <div class="flex1">
@@ -3102,10 +3191,45 @@
31023191 <small data-i18n="Chat Start">Chat Start</small>
31033192 </label>
31043193 <div>
31053194 <textarea id="context_chat_start" class="text_pole textarea_compact autoSetHeight" maxlength="500" rows="1"></textarea>
31063195 </div>
31073196 </div>
31083197 </div>
3198+ <div>
3199+ <h4 class="standoutHeader">
3200+ <span data-i18n="Context Formatting">
3201+ Context Formatting
3202+ </span>
3203+ </h4>
3204+
3205+ <label class="checkbox_label" for="always-force-name2-checkbox">
3206+ <input id="always-force-name2-checkbox" type="checkbox" />
3207+ <small data-i18n="Always add character's name to prompt">
3208+ Always add character's name to prompt
3209+ </small>
3210+ </label>
3211+ <label class="checkbox_label" for="single_line">
3212+ <input id="single_line" type="checkbox" />
3213+ <small data-i18n="Generate only one line per request">
3214+ Generate only one line per request
3215+ </small>
3216+ </label>
3217+ <label class="checkbox_label" for="collapse-newlines-checkbox">
3218+ <input id="collapse-newlines-checkbox" type="checkbox" />
3219+ <small data-i18n="Collapse Consecutive Newlines">
3220+ Collapse Consecutive Newlines
3221+ </small>
3222+ </label>
3223+ <label class="checkbox_label" for="trim_spaces">
3224+ <input id="trim_spaces" type="checkbox" />
3225+ <small data-i18n="Trim spaces">Trim spaces</small>
3226+ </label>
3227+ <label class="checkbox_label" for="trim_sentences_checkbox">
3228+ <input id="trim_sentences_checkbox" type="checkbox" />
3229+ <small data-i18n="Trim Incomplete Sentences">
3230+ Trim Incomplete Sentences
3231+ </small>
3232+ </label>
31093233 <label class="checkbox_label" title="Add Chat Start and Example Separator to a list of stopping strings." data-i18n="[title]Add Chat Start and Example Separator to a list of stopping strings.">
31103234 <input id="context_use_stop_strings" type="checkbox" />
31113235 <small data-i18n="Separators as Stop Strings">Separators as Stop Strings</small>
@@ -3114,201 +3238,127 @@
31143238 <input id="context_names_as_stop_strings" type="checkbox" />
31153239 <small data-i18n="Names as Stop Strings">Names as Stop Strings</small>
31163240 </label>
3241+ </div>
3242+
31173243 <label class="checkbox_label" title="Includes Post-History Instructions at the end of the prompt, if defined in the character card AND ''Prefer Char. Instructions'' is enabled.&#10;THIS IS NOT RECOMMENDED FOR TEXT COMPLETION MODELS, CAN LEAD TO BAD OUTPUT." data-i18n="[title]context_allow_post_history_instructions">
31183244 <input id="context_allow_jailbreak" type="checkbox" />
31193245 <small data-i18n="Allow Post-History Instructions">Allow Post-History Instructions</small>
31203246 </label>
31213247 </div>
3122-
3123- <div data-newbie-hidden class="inline-drawer wide100p flexFlowColumn margin-bot-10px" style="display:none;">
3124- <div class="inline-drawer-toggle inline-drawer-header">
3125- <b><span data-i18n="Context Order">Context Order</span></b>
3126- <div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
3127- </div>
3128- <div class="inline-drawer-content">
3129- <div id="context_order" class="prompt_order">
3130- <div data-id="0">
3131- <span data-i18n="Story String">Story String</span>
3132- <small>0</small>
3133- </div>
3134- <div data-id="1">
3135- <span data-i18n="Summary">Summary</span>
3136- <small>1</small>
3137- </div>
3138- <div data-id="2">
3139- <span data-i18n="Author's Note">Author's Note</span>
3140- <small>2</small>
3141- </div>
3142- <div data-id="3">
3143- <span data-i18n="Example Dialogues">Example Dialogues</span>
3144- <small>3</small>
3145- </div>
3146- <div data-id="4">
3147- <span data-i18n="Chat Start">Chat History</span>
3148- <small>4</small>
3149- </div>
3150- </div>
3151- <small>
3152- <b data-i18n="Hint">Hint:</b>
3153- <span data-i18n="In-Chat Position not affected">
3154- Summary and Author's Note orders are only affected when they don't have an In-Chat position set.
3155- </span>
3156- </small>
3157- </div>
31583248 </div>
31593249 </div>
3160- <div>
3250+ <div id="InstructSettingsColumn" class="flex-container flexNoGap flexFlowColumn flex1">
31613251 <h4div classid="standoutHeader title_restorableinstructSettingsBlock">
3162- <div>
3252+ <h4 class="standoutHeader title_restorable justifySpaceBetween">
3163- <span data-i18n="Instruct Mode">Instruct Mode</span>
3253+ <div class="flex-container">
3254+ <span data-i18n="Instruct Template">Instruct Template</span>
31643255 <a href="https://docs.sillytavern.app/usage/core-concepts/instructmode/" class="notes-link" target="_blank">
31653256 <span class="fa-solid fa-circle-question note-link-span"></span>
31663257 </a>
31673258 </div>
31683259 <div class="flex-container">
3169- <i data-newbie-hidden data-preset-manager-import="instruct" class="margin0 menu_button fa-solid fa-file-import" title="Import preset" data-i18n="[title]Import preset"></i>
3260+ <label for="instruct_bind_to_context" class="checkbox_label flex1" title="Bind to Context&#10If enabled, Context templates will be automatically selected based on selected Instruct template name or by preference." data-i18n="[title]instruct_bind_to_context">
3170- <i data-newbie-hidden data-preset-manager-export="instruct" class="margin0 menu_button fa-solid fa-file-export" title="Export preset" data-i18n="[title]Export preset"></i>
3261+ <input id="instruct_bind_to_context" type="checkbox" style="display:none;" />
3171- <i data-newbie-hidden data-preset-manager-restore="instruct" class="margin0 menu_button fa-solid fa-recycle" title="Restore current preset" data-i18n="[title]Restore current preset"></i>
3262+ <small><i class="fa-solid fa-link menu_button margin0"></i></small>
3172- <i data-newbie-hidden data-preset-manager-delete="instruct" class="margin0 menu_button fa-solid fa-trash-can" title="Delete the preset" data-i18n="[title]Delete the preset"></i>
3173- </div>
3174- </h4>
3175- <div class="flex-container">
3176- <label for="instruct_enabled" class="checkbox_label flex1">
3177- <input id="instruct_enabled" type="checkbox" />
3178- <span data-i18n="Enabled">Enabled</span>
31793263 </label>
31803264 <label for="instruct_bind_to_contextinstruct_enabled" class="checkbox_label flex1" title="If enabled, Context templates will be automatically selected based on selectedEnable Instruct template name or by preference.Mode" data-i18n="[title]instruct_bind_to_contextinstruct_enabled">
31813265 <input id="instruct_bind_to_contextinstruct_enabled" type="checkbox" style="display:none;" />
3182- <span data-i18n="Bind to Context">Bind to Context</span>
3266+ <small><i class="fa-solid fa-power-off menu_button margin0"></i></small>
31833267 </label>
31843268 </div>
3185- <label for="instruct_presets">
3269+ </h4>
3186- <span data-i18n="Presets">Presets</span>
3270+
3187- </label>
3271+ <div class="flex-container" title="Select your current Instruct Template" data-i18n="[title]Select your current Instruct Template">
3188- <div class="flex-container">
31893272 <select id="instruct_presets" data-preset-manager-for="instruct" class="flex1 text_pole"></select>
3273+ <div class="flex-container margin0 justifyCenter">
31903274 <input type="file" hidden data-preset-manager-file="instruct" accept=".json, .settings">
31913275 <i iddata-preset-manager-update="instruct_set_defaultinstruct" class="menu_button fa-solid fa-heartsave" title="Auto-select this preset onUpdate APIcurrent connection.template" data-i18n="[title]Auto-select this preset onUpdate APIcurrent connectiontemplate"></i>
31923276 <i data-newbie-hidden data-preset-manager-updatenew="instruct" class="menu_button fa-solid fa-savefile-circle-plus" title="UpdateSave currenttemplate presetas" data-i18n="[title]UpdateSave currenttemplate presetas"></i>
31933277 <i data-newbie-hidden data-preset-manager-newimport="instruct" class="displayNone menu_button fa-solid fa-file-circle-plusimport" title="Save presetImport astemplate" data-i18n="[title]Save presetImport astemplate"></i>
3278+ <i data-preset-manager-export="instruct" class="displayNone menu_button fa-solid fa-file-export" title="Export template" data-i18n="[title]Export template"></i>
3279+ <i data-preset-manager-restore="instruct" class="menu_button fa-solid fa-recycle" title="Restore current template" data-i18n="[title]Restore current template"></i>
3280+ <i data-preset-manager-delete="instruct" class="menu_button fa-solid fa-trash-can" title="Delete template" data-i18n="[title]Delete template"></i>
3281+ </div>
31943282 </div>
31953283 <label data-newbie-hidden>
3196- <small data-i18n="Activation Regex">
3284+ <small>
3197- Activation Regex
3285+ <span data-i18n="Activation Regex">Activation Regex</span>
3286+ <span class="fa-solid fa-circle-question" title="When connecting to an API or choosing a model, automatically activate this Instruct Template if the model name matches the provided regular expression."></span>
31983287 </small>
31993288 </label>
32003289 <div data-newbie-hidden>
32013290 <textareainput type="text" id="instruct_activation_regex" class="text_pole textarea_compact autoSetHeight" maxlengthplaceholder="5000"e.g. rows="/llama(-)?[3|3.1"><]/textareai">
32023291 </div>
32033292 <div data-newbie-hidden>
32043293 <label for="instruct_wrap" class="checkbox_label">
32053294 <input id="instruct_wrap" type="checkbox" />
32063295 <spansmall data-i18n="Wrap Sequences with Newline">Wrap Sequences with Newline</spansmall>
32073296 </label>
32083297 <label for="instruct_macro" class="checkbox_label">
32093298 <input id="instruct_macro" type="checkbox" />
32103299 <spansmall data-i18n="Replace Macro in Sequences">Replace Macro in Sequences</spansmall>
32113300 </label>
32123301 <label for="instruct_skip_examples" class="checkbox_label">
32133302 <input id="instruct_skip_examples" type="checkbox" />
32143303 <spansmall data-i18n="Skip Example Dialogues Formatting">Skip Example Dialogues Formatting</spansmall>
3215- </label>
3216- <label for="instruct_names" class="checkbox_label">
3217- <input id="instruct_names" type="checkbox" />
3218- <span data-i18n="Include Names">Include Names</span>
3219- </label>
3220- <label for="instruct_names_force_groups" class="checkbox_label indent20p">
3221- <input id="instruct_names_force_groups" type="checkbox" />
3222- <span data-i18n="Force for Groups and Personas">Force for Groups and Personas</span>
3223- </label>
3224- </div>
3225- <div data-newbie-hidden>
3226- <label>
3227- <small data-i18n="System Prompt">System Prompt</small>
3228- </label>
3229- <textarea id="instruct_system_prompt" class="text_pole textarea_compact autoSetHeight" rows="1"></textarea>
3230- </div>
3231- <div data-newbie-hidden class="inline-drawer wide100p flexFlowColumn">
3232- <div class="inline-drawer-toggle inline-drawer-header">
3233- <b><span data-i18n="Instruct Mode Sequences">Instruct Mode Sequences</span></b>
3234- <div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
3235- </div>
3236- <div class="inline-drawer-content">
3237- <h5 class="textAlignCenter" data-i18n="System Prompt Wrapping">
3238- System Prompt Wrapping
3239- </h5>
3240- <div class="flex-container">
3241- <div class="flex1" title="Inserted before a System prompt." data-i18n="[title]Inserted before a System prompt.">
3242- <label for="instruct_system_sequence_prefix">
3243- <small data-i18n="System Prompt Prefix">System Prompt Prefix</small>
3244- </label>
3245- <div>
3246- <textarea id="instruct_system_sequence_prefix" class="text_pole textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
3247- </div>
3248- </div>
3249- <div class="flex1" title="Inserted after a System prompt." data-i18n="[title]Inserted after a System prompt.">
3250- <label for="instruct_system_sequence_suffix">
3251- <small data-i18n="System Prompt Suffix">System Prompt Suffix</small>
32523304 </label>
32533305 <div>
3254- <textarea id="instruct_system_sequence_suffix" class="text_pole wide100p textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
3306+ <small data-i18n="Include Names">
3307+ Include Names
3308+ </small>
3309+ <select id="instruct_names_behavior">
3310+ <option value="none" data-i18n="Never">Never</option>
3311+ <option value="force" data-i18n="Groups and Past Personas">Groups and Past Personas</option>
3312+ <option value="always" data-i18n="Always">Always</option>
3313+ </select>
32553314 </div>
32563315 </div>
32573316 </div>
32583317 <h5div classid="textAlignCenterInstructSequencesColumn" data-i18nclass="Chat Messageswide100p WrappingflexFlowColumn">
3259- Chat Messages Wrapping
3318+ <h4 class="standoutHeader title_restorable">
3260- </h5>
3319+ <b>
3320+ <span data-i18n="Instruct Sequences">
3321+ Instruct Sequences
3322+ </span>
3323+ </b>
3324+ </h4>
3325+ <!-- We keep one auto-open so the user would know what is going on in the picked template -->
3326+ <details open>
3327+ <summary>User Message Sequences</summary>
32613328 <div class="flex-container">
32623329 <div class="flex1flexAuto" title="Inserted before a User message and as a last prompt line when impersonating." data-i18n="[title]Inserted before a User message and as a last prompt line when impersonating.">
3263- <label for="instruct_input_sequence">
3330+ <small data-i18n="User Prefix">User Message Prefix</small>
3264- <small data-i18n="User Message Prefix">User Message Prefix</small>
3331+ <textarea id="instruct_input_sequence" class="text_pole textarea_compact autoSetHeight"></textarea>
3265- </label>
3266- <div>
3267- <textarea id="instruct_input_sequence" class="text_pole textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
3268- </div>
3269- </div>
3270- <div class="flex1" title="Inserted after a User message." data-i18n="[title]Inserted after a User message.">
3271- <label for="instruct_input_suffix">
3272- <small data-i18n="User Message Suffix">User Message Suffix</small>
3273- </label>
3274- <div>
3275- <textarea id="instruct_input_suffix" class="text_pole wide100p textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
32763332 </div>
3333+ <div class="flexAuto" title="Inserted after a User message." data-i18n="[title]Inserted after a User message.">
3334+ <small data-i18n="User Suffix">User Message Suffix</small>
3335+ <textarea id="instruct_input_suffix" class="text_pole wide100p textarea_compact autoSetHeight"></textarea>
32773336 </div>
32783337 </div>
3338+ </details>
3339+ <details open>
3340+ <summary>Assistant Message Sequences</summary>
32793341 <div class="flex-container">
32803342 <div class="flex1flexAuto" title="Inserted before an Assistant message and as a last prompt line when generating an AI reply." data-i18n="[title]Inserted before an Assistant message and as a last prompt line when generating an AI reply.">
3281- <label for="instruct_output_sequence">
3343+ <small data-i18n="Assistant Prefix">Assistant Message Prefix</small>
3282- <small data-i18n="Assistant Message Prefix">Assistant Message Prefix</small>
3344+ <textarea id="instruct_output_sequence" class="text_pole wide100p textarea_compact autoSetHeight"></textarea>
3283- </label>
3284- <div>
3285- <textarea id="instruct_output_sequence" class="text_pole wide100p textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
3286- </div>
3287- </div>
3288- <div class="flex1" title="Inserted after an Assistant message." data-i18n="[title]Inserted after an Assistant message.">
3289- <label for="instruct_output_suffix">
3290- <small data-i18n="Assistant Message Suffix">Assistant Message Suffix</small>
3291- </label>
3292- <div>
3293- <textarea id="instruct_output_suffix" class="text_pole wide100p textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
32943345 </div>
3346+ <div class="flexAuto" title="Inserted after an Assistant message." data-i18n="[title]Inserted after an Assistant message.">
3347+ <small data-i18n="Assistant Suffix">Assistant Message Suffix</small>
3348+ <textarea id="instruct_output_suffix" class="text_pole wide100p textarea_compact autoSetHeight"></textarea>
32953349 </div>
32963350 </div>
3351+ </details>
3352+ <details>
3353+ <summary>System Message Sequences</summary>
32973354 <div class="flex-container">
32983355 <div class="flex1flexAuto" id="instruct_system_sequence_block" title="Inserted before a System (added by slash commands or extensions) message." data-i18n="[title]Inserted before a System (added by slash commands or extensions) message.">
3299- <label for="instruct_system_sequence">
3356+ <small data-i18n="System Prefix">System Message Prefix</small>
3300- <small data-i18n="System Message Prefix">System Message Prefix</small>
3357+ <textarea id="instruct_system_sequence" class="text_pole textarea_compact autoSetHeight"></textarea>
3301- </label>
3302- <div>
3303- <textarea id="instruct_system_sequence" class="text_pole textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
33043358 </div>
3305- </div>
3359+ <div class="flexAuto" id="instruct_system_suffix_block" title="Inserted after a System message." data-i18n="[title]Inserted after a System message.">
3306- <div class="flex1" title="Inserted after a System message." data-i18n="[title]Inserted after a System message.">
3360+ <small data-i18n="System Suffix">System Message Suffix</small>
3307- <label for="instruct_system_suffix">
3361+ <textarea id="instruct_system_suffix" class="text_pole wide100p textarea_compact autoSetHeight"></textarea>
3308- <small data-i18n="System Message Suffix">System Message Suffix</small>
3309- </label>
3310- <div>
3311- <textarea id="instruct_system_suffix" class="text_pole wide100p textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
33123362 </div>
33133363 </div>
33143364 <div class="flexBasis100p" title="If enabled, System Sequences will be the same as User Sequences." data-i18n="[title]If enabled, System Sequences will be the same as User Sequences.">
@@ -3317,127 +3367,141 @@
33173367 <small data-i18n="System same as User">System same as User</small>
33183368 </label>
33193369 </div>
33203370 </divdetails>
3321- <h5 class="textAlignCenter" data-i18n="Misc. Sequences">
3371+ <details>
3322- Misc. Sequences
3372+ <summary>System Prompt Sequences</summary>
3323- </h5>
33243373 <div class="flex-container">
33253374 <div class="flex1flexAuto" title="Inserted before the firsta Assistant'sSystem messageprompt." data-i18n="[title]Inserted before the firsta Assistant'sSystem messageprompt.">
33263375 <label for="instruct_first_output_sequenceinstruct_system_sequence_prefix">
33273376 <small data-i18n="FirstSystem AssistantPrompt Prefix">FirstSystem AssistantPrompt Prefix</small>
33283377 </label>
33293378 <div>
33303379 <textarea id="instruct_first_output_sequenceinstruct_system_sequence_prefix" class="text_pole textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
33313380 </div>
33323381 </div>
33333382 <div class="flex1flexAuto" title="Inserted before the last Assistant's message or asafter a lastSystem prompt line when generating an AI reply (except a neutral/system role)." data-i18n="[title]instruct_last_output_sequenceInserted after a System prompt.">
33343383 <label for="instruct_last_output_sequenceinstruct_system_sequence_suffix">
33353384 <small data-i18n="LastSystem AssistantPrompt PrefixSuffix">LastSystem AssistantPrompt PrefixSuffix</small>
33363385 </label>
33373386 <div>
33383387 <textarea id="instruct_last_output_sequenceinstruct_system_sequence_suffix" class="text_pole wide100p textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
33393388 </div>
33403389 </div>
33413390 </div>
3391+ </details>
3392+ <details>
3393+ <summary data-i18n="Misc. Sequences">Misc. Sequences</summary>
33423394 <div class="flex-container">
33433395 <div class="flex1flexAuto" title="Inserted before the first UserAssistant's message." data-i18n="[title]Inserted before the first UserAssistant's message.">
3344- <label for="instruct_first_input_sequence">
3396+ <small data-i18n="First Assistant Prefix">First Assistant Prefix</small>
3345- <small data-i18n="First User Prefix">First User Prefix</small>
3397+ <textarea id="instruct_first_output_sequence" class="text_pole textarea_compact autoSetHeight"></textarea>
3346- </label>
3347- <div>
3348- <textarea id="instruct_first_input_sequence" class="text_pole textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
33493398 </div>
3399+ <div class="flexAuto" title="Inserted before the last Assistant's message or as a last prompt line when generating an AI reply (except a neutral/system role)." data-i18n="[title]instruct_last_output_sequence">
3400+ <small data-i18n="Last Assistant Prefix">Last Assistant Prefix</small>
3401+ <textarea id="instruct_last_output_sequence" class="text_pole wide100p textarea_compact autoSetHeight"></textarea>
33503402 </div>
3351- <div class="flex1" title="Inserted before the last User's message." data-i18n="[title]instruct_last_input_sequence">
3352- <label for="instruct_last_input_sequence">
3353- <small data-i18n="Last User Prefix">Last User Prefix</small>
3354- </label>
3355- <div>
3356- <textarea id="instruct_last_input_sequence" class="text_pole wide100p textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
33573403 </div>
3404+ <div class="flex-container">
3405+ <div class="flexAuto" title="Inserted before the first User's message." data-i18n="[title]Inserted before the first User's message.">
3406+ <small data-i18n="First User Prefix">First User Prefix</small>
3407+ <textarea id="instruct_first_input_sequence" class="text_pole textarea_compact autoSetHeight"></textarea>
3408+ </div>
3409+ <div class="flexAuto" title="Inserted before the last User's message." data-i18n="[title]instruct_last_input_sequence">
3410+ <small data-i18n="Last User Prefix">Last User Prefix</small>
3411+ <textarea id="instruct_last_input_sequence" class="text_pole wide100p textarea_compact autoSetHeight"></textarea>
33583412 </div>
33593413 </div>
33603414 <div class="flex-container">
33613415 <div class="flex1flexAuto" title="Will be inserted as a last prompt line when using system/neutral generation." data-i18n="[title]Will be inserted as a last prompt line when using system/neutral generation.">
3362- <label for="instruct_last_system_sequence">
33633416 <small data-i18n="System Instruction Prefix">System Instruction Prefix</small>
3364- </label>
3417+ <textarea id="instruct_last_system_sequence" class="text_pole textarea_compact autoSetHeight"></textarea>
3365- <div>
3366- <textarea id="instruct_last_system_sequence" class="text_pole textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
3367- </div>
33683418 </div>
33693419 <div class="flex1flexAuto" title="If a stop sequence is generated, everything past it will be removed from the output (inclusive)." data-i18n="[title]If a stop sequence is generated, everything past it will be removed from the output (inclusive).">
3370- <label for="instruct_stop_sequence">
33713420 <small data-i18n="Stop Sequence">Stop Sequence</small>
3372- </label>
3421+ <textarea id="instruct_stop_sequence" class="text_pole textarea_compact autoSetHeight"></textarea>
3373- <div>
3374- <textarea id="instruct_stop_sequence" class="text_pole textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
3375- </div>
33763422 </div>
33773423 </div>
33783424 <div class="flex-container">
33793425 <div class="flex1flexAuto" title="Will be inserted at the start of the chat history if it doesn't start with a User message." data-i18n="[title]Will be inserted at the start of the chat history if it doesn't start with a User message.">
3380- <label for="instruct_user_alignment_message">
33813426 <small data-i18n="User Filler Message">User Filler Message</small>
3382- </label>
3427+ <textarea id="instruct_user_alignment_message" class="text_pole textarea_compact autoSetHeight"></textarea>
33833428 </div>
3384- <textarea id="instruct_user_alignment_message" class="text_pole textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
33853429 </div>
3430+ </details>
33863431 </div>
33873432 </div>
3433+ <div id="SystemPromptColumn" class="flex-container flexNoGap flexFlowColumn flex1">
3434+ <div id="SystemPromptBlock">
3435+ <h4 class="standoutHeader title_restorable justifySpaceBetween">
3436+ <div class="flex-container">
3437+ <span data-i18n="System Prompt">System Prompt</span>
3438+ <a href="https://docs.sillytavern.app/usage/core-concepts/advancedformatting/#system-prompt" class="notes-link" target="_blank">
3439+ <span class="fa-solid fa-circle-question note-link-span"></span>
3440+ </a>
33883441 </div>
3442+ <div class="flex-container">
3443+ <label for="sysprompt_enabled" class="checkbox_label flex1" title="Enable System Prompt" data-i18n="[title]sysprompt_enabled">
3444+ <input id="sysprompt_enabled" type="checkbox" style="display:none;" />
3445+ <small><i class="fa-solid fa-power-off menu_button margin0"></i></small>
3446+ </label>
33893447 </div>
3448+ </h4>
3449+
3450+ <div class="flex-container" title="Select your current System Prompt" data-i18n="[title]Select your current System Prompt">
3451+ <select id="sysprompt_select" data-preset-manager-for="sysprompt" class="flex1 text_pole"></select>
3452+ <div class="flex-container margin0 justifyCenter">
3453+ <input type="file" hidden data-preset-manager-file="sysprompt" accept=".json, .settings">
3454+ <i data-preset-manager-update="sysprompt" class="menu_button fa-solid fa-save" title="Update current prompt" data-i18n="[title]Update current prompt"></i>
3455+ <i data-preset-manager-new="sysprompt" class="menu_button fa-solid fa-file-circle-plus" title="Save prompt as" data-i18n="[title]Save prompt as"></i>
3456+ <i data-preset-manager-import="sysprompt" class="displayNone menu_button fa-solid fa-file-import" title="Import template" data-i18n="[title]Import template"></i>
3457+ <i data-preset-manager-export="sysprompt" class="displayNone menu_button fa-solid fa-file-export" title="Export template" data-i18n="[title]Export template"></i>
3458+ <i data-preset-manager-restore="sysprompt" class="menu_button fa-solid fa-recycle" title="Restore current prompt" data-i18n="[title]Restore current prompt"></i>
3459+ <i data-preset-manager-delete="sysprompt" class="menu_button fa-solid fa-trash-can" title="Delete prompt" data-i18n="[title]Delete prompt"></i>
33903460 </div>
33913461 </div>
3392- <div id="ContextFormatting">
3462+
33933463 <div>
33943464 <divlabel for="sysprompt_content" class="flex-container alignItemsBaseline">
33953465 <h4small data-i18n="ContextPrompt FormattingContent">Prompt Content</small>
3396- Context Formatting
3466+ <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="sysprompt_content" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
3467+ </label>
3468+ <textarea id="sysprompt_content" class="text_pole textarea_compact autoSetHeight"></textarea>
3469+ </div>
3470+ </div>
3471+
3472+ <div>
3473+ &nbsp;
3474+ </div>
3475+
3476+ <div>
3477+ <h4 class="range-block-title justifyLeft standoutHeader">
3478+ <span data-i18n="Custom Stopping Strings">
3479+ Custom Stopping Strings
3480+ </span>
3481+ <a href="https://docs.sillytavern.app/usage/core-concepts/advancedformatting/#custom-stopping-strings" class="notes-link" target="_blank">
3482+ <span class="fa-solid fa-circle-question note-link-span"></span>
3483+ </a>
33973484 </h4>
3398- <small data-i18n="(Saved to Context Template)">
3485+ <div>
3399- &nbsp;(Saved to Context Template)
3486+ <small>
3487+ <span data-i18n="JSON serialized array of strings">JSON serialized array of strings</span>
3488+ <i class="fa-solid fa-question-circle opacity50p" title="e.g: [&quot;Ford&quot;, &quot;BMW&quot;, &quot;Fiat&quot;]"></i>
34003489 </small>
34013490 </div>
3402- <label class="checkbox_label" for="always-force-name2-checkbox">
3491+ <div>
34033492 <inputtextarea id="always-force-name2-checkboxcustom_stopping_strings" typeclass="checkbox"text_pole textarea_compact monospace autoSetHeight"></textarea>
3404- <span data-i18n="Always add character's name to prompt">
3405- Always add character's name to prompt
3406- </span>
3407- </label>
3408- <label class="checkbox_label" for="single_line">
3409- <input id="single_line" type="checkbox" />
3410- <span data-i18n="Generate only one line per request">
3411- Generate only one line per request
3412- </span>
3413- </label>
3414- <label class="checkbox_label" for="trim_sentences_checkbox">
3415- <input id="trim_sentences_checkbox" type="checkbox" />
3416- <span data-i18n="Trim Incomplete Sentences">
3417- Trim Incomplete Sentences
3418- </span>
3419- </label>
3420- <!-- Add margin since this is a child of above -->
3421- <label data-newbie-hidden class="checkbox_label indent20p" for="include_newline_checkbox">
3422- <input id="include_newline_checkbox" type="checkbox" />
3423- <span data-i18n="Include Newline">Include Newline</span>
3424- </label>
34253493 </div>
3426- <h4 data-i18n="Misc. Settings">
3494+ <label class="checkbox_label" for="custom_stopping_strings_macro">
3427- Misc. Settings
3495+ <input id="custom_stopping_strings_macro" type="checkbox" checked>
3428- </h4>
3496+ <small data-i18n="Replace Macro in Custom Stopping Strings">
3429- <label class="checkbox_label" for="collapse-newlines-checkbox">
3497+ Replace Macro in Custom Stopping Strings
3430- <input id="collapse-newlines-checkbox" type="checkbox" />
3498+ </small>
3431- <span data-i18n="Collapse Consecutive Newlines">
3432- Collapse Consecutive Newlines
3433- </span>
3434- </label>
3435- <label data-newbie-hidden class="checkbox_label" for="trim_spaces">
3436- <input id="trim_spaces" type="checkbox" />
3437- <span data-i18n="Trim spaces">Trim spaces</span>
34383499 </label>
34393500 </div data-newbie-hidden>
3440- <h4><span data-i18n="Tokenizer">Tokenizer</span>
3501+
3502+ <div name="tokenizerSettingsBlock">
3503+ <div name="tokenizerSelectorBlock">
3504+ <h4 class="standoutHeader"><span data-i18n="Tokenizer">Tokenizer</span>
34413505 <a href="https://docs.sillytavern.app/usage/core-concepts/advancedformatting/#tokenizer" class="notes-link" target="_blank">
34423506 <span class="fa-solid fa-circle-question note-link-span"></span>
34433507 </a>
@@ -3450,99 +3514,59 @@
34503514 <option value="3">Llama 1/2</option>
34513515 <option value="12">Llama 3</option>
34523516 <option value="13">Gemma / Gemini</option>
3517+ <option value="14">Jamba</option>
3518+ <option value="15">Qwen2</option>
3519+ <option value="16">Command-R</option>
34533520 <option value="4">NerdStash (NovelAI Clio)</option>
34543521 <option value="5">NerdStash v2 (NovelAI Kayra)</option>
34553522 <option value="7">Mistral V1</option>
3523+ <option value="17">Mistral Nemo</option>
34563524 <option value="8">Yi</option>
34573525 <option value="11">Claude 1/2</option>
34583526 <option value="6">API (WebUI / koboldcpp)</option>
34593527 </select>
34603528 </div>
34613529 <div class="range-block" data-newbieflex-hiddencontainer flexnowrap" name="tokenPaddingBlock">
34623530 <div class="range-block-title justifyLeft">
34633531 <spansmall data-i18n="Token Padding" class="flex-container">Token Padding</span>
34643532 <a href="https://docs.sillytavern.app/usage/core-concepts/advancedformatting/#token-padding" class="notes-link" target="_blank">
34653533 <span class="fa-solid fa-circle-question note-link-span"></span>
34663534 </a>
3535+ </small>
34673536 </div>
34683537 <input id="token_padding" class="text_pole textarea_compact" type="number" min="-2048" max="2048" />
34693538 </div>
3470- <div class="flex-container flexFlowColumn" data-newbie-hidden>
3471- <div>
3472- <h4 class="range-block-title justifyLeft">
3473- <span data-i18n="Start Reply With">
3474- Start Reply With
3475- </span>
3476- </h4>
3477- <div>
3478- <textarea id="start_reply_with" rows="2" class="text_pole textarea_compact" data-i18n="[placeholder]AI reply prefix" placeholder="AI reply prefix"></textarea>
3479- </div>
3480- <label class="checkbox_label" for="chat-show-reply-prefix-checkbox">
3481- <input id="chat-show-reply-prefix-checkbox" type="checkbox" />
3482- <span data-i18n="Show reply prefix in chat">
3483- Show reply prefix in chat
3484- </span>
3485- </label>
34863539 </div>
34873540 <div>
3488- <h4 class="range-block-title justifyLeft">
3541+ <h4 class="standoutHeader" data-i18n="Miscellaneous">Miscellaneous</h4>
3542+ <div>
3543+ <small>
34893544 <span data-i18n="Non-markdown strings">
34903545 Non-markdown strings
34913546 </span>
34923547 </h4small>
34933548 <div>
34943549 <input id="markdown_escape_strings" class="text_pole textarea_compact" type="text" data-i18n="[placeholder]separate with commascomma w/odelimited,no spacespaces between" placeholder="separate with commascomma w/odelimited,no spacespaces between" maxlength="100" />
34953550 </div>
34963551 </div>
3497- <div>
3552+
3498- <h4 class="range-block-title justifyLeft">
3553+ <div name="startReplyWithBlock">
3499- <span data-i18n="Custom Stopping Strings">
3500- Custom Stopping Strings
3501- </span>
3502- <a href="https://docs.sillytavern.app/usage/core-concepts/advancedformatting/#custom-stopping-strings" class="notes-link" target="_blank">
3503- <span class="fa-solid fa-circle-question note-link-span"></span>
3504- </a>
3505- </h4>
35063554 <div>
35073555 <small>
35083556 <span data-i18n="JSON serialized arrayStart ofReply stringsWith">JSON serialized array of strings</span>
3557+ Start Reply With
3558+ </span>
35093559 </small>
3510- </div>
35113560 <div>
3512- <textarea id="custom_stopping_strings" rows="2" class="text_pole textarea_compact monospace" placeholder="[&quot;Ford&quot;, &quot;BMW&quot;, &quot;Fiat&quot;]"></textarea>
3561+ <textarea id="start_reply_with" class="text_pole textarea_compact autoSetHeight"></textarea>
3513- </div>
3514- <label class="checkbox_label" for="custom_stopping_strings_macro">
3515- <input id="custom_stopping_strings_macro" type="checkbox" checked>
3516- <span data-i18n="Replace Macro in Custom Stopping Strings">
3517- Replace Macro in Custom Stopping Strings
3518- </span>
3519- </label>
3520- </div>
35213562 </div>
3522- <div data-newbie-hidden>
3563+ <label class="checkbox_label" for="chat-show-reply-prefix-checkbox">
3523- <h4>
3564+ <input id="chat-show-reply-prefix-checkbox" type="checkbox" />
3524- <span data-i18n="Auto-Continue">Auto-Continue</span>
3565+ <small data-i18n="Show reply prefix in chat">
3525- </h4>
3566+ Show reply prefix in chat
3526- <div class="flex-container">
3567+ </small>
3527- <label class="checkbox_label" for="auto_continue_enabled">
3528- <input id="auto_continue_enabled" type="checkbox" />
3529- <span data-i18n="Enabled">
3530- Enabled
3531- </span>
3532- </label>
3533- <label class="checkbox_label" for="auto_continue_allow_chat_completions">
3534- <input id="auto_continue_allow_chat_completions" type="checkbox" />
3535- <span data-i18n="Allow for Chat Completion APIs">
3536- Allow for Chat Completion APIs
3537- </span>
35383568 </label>
35393569 </div>
3540-
3541- <div class="auto_continue_settings_block">
3542- <label for="auto_continue_target_length">
3543- <span data-i18n="Target length (tokens)">Target length (tokens)</span>
3544- <input id="auto_continue_target_length" type="number" class="text_pole textarea_compact" min="0" max="1024" />
3545- </label>
35463570 </div>
35473571 </div>
35483572 </div>
@@ -3551,16 +3575,18 @@
35513575 </div>
35523576 <div id="WI-SP-button" class="drawer">
35533577 <div class="drawer-toggle drawer-header">
35543578 <div id="WIDrawerIcon" class="drawer-icon fa-solid fa-book-atlas fa-fw closedIcon " title="World Info" data-i18n="[title]World Info"></div>
35553579 </div>
35563580 <div id="WorldInfo" class="drawer-content closedDrawer">
35573581 <div id="WorldInfoheader" class="fa-solid fa-grip drag-grabber"></div>
3558- <div id="WI_panel_pin_div" class="flex-container alignitemscenter gap10px" title="Locked = World Editor will stay open" data-i18n="[title]Locked = World Editor will stay open">
3582+ <div class="flex-container alignitemscenter gap10px">
3583+ <div id="WI_panel_pin_div" title="Locked = World Editor will stay open" data-i18n="[title]Locked = World Editor will stay open">
35593584 <input type="checkbox" id="WI_panel_pin">
35603585 <label for="WI_panel_pin">
35613586 <div class="unchecked fa-solid fa-unlock "></div>
35623587 <div class="checked fa-solid fa-lock "></div>
35633588 </label>
3589+ </div>
35643590 <h3 class="margin0">
35653591 <span data-i18n="Worlds/Lorebooks">Worlds/Lorebooks</span>
35663592 <a href="https://docs.sillytavern.app/usage/core-concepts/worldinfo/" class="notes-link" target="_blank">
@@ -3750,7 +3776,7 @@
37503776 </div>
37513777 <div id="user-settings-button" class="drawer">
37523778 <div class="drawer-toggle">
37533779 <div class="drawer-icon fa-solid fa-user-cog fa-fw closedIcon" title="User Settings" data-i18n="[title]User Settings"></div>
37543780 </div>
37553781 <div id="user-settings-block" class="drawer-content closedDrawer">
37563782 <div class="flex-container flexFlowColumn">
@@ -3758,10 +3784,6 @@
37583784 <div class="flex-container">
37593785 <div class="flex-container flexnowrap alignItemsBaseline">
37603786 <h3 class="margin0"><span data-i18n="User Settings">User Settings</span></h3>
3761- <select id="ui_mode_select" class="margin0 widthNatural">
3762- <option value="0" data-i18n="Simple">Simple</option>
3763- <option value="1" data-i18n="Advanced">Advanced</option>
3764- </select>
37653787 </div>
37663788 </div>
37673789 <div id="UI-language-block" class="flex-container alignItemsBaseline">
@@ -3792,7 +3814,7 @@
37923814 </div>
37933815 </div>
37943816 <div id="user-settings-block-content" class="flex-container spaceEvenly">
37953817 <div name="UserSettingsFirstColumn" id="UI-Theme-Block" class="flex-container flexFlowColumn wide100p flex1">
37963818 <div id="UI-presets-block" class="flex-container flexFlowColumn">
37973819 <h4 class="title_restorable">
37983820 <span data-i18n="UI Theme">UI Theme</span>
@@ -3820,10 +3842,10 @@
38203842 </div>
38213843 </div>
38223844 </div>
38233845 <div name="themeElements" data-newbie-hidden class="flex-container flexFlowColumn flexNoGap">
38243846 <!-- <h4><span data-i18n="UI Colors">Theme Settings</span></h4> -->
38253847 <div name="AvatarAndChatDisplay" class="flex-container flexFlowColumn">
38263848 <div class="flex-container alignItemsBaseline">
38273849 <span data-i18n="Avatar Style">Avatars:</span>
38283850 <select id="avatar_style" class="widthNatural flex1 margin0">
38293851 <option value="0" data-i18n="Circle">Circle</option>
@@ -3831,16 +3853,16 @@
38313853 <option value="1" data-i18n="Rectangle">Rectangle</option>
38323854 </select>
38333855 </div>
38343856 <div class="flex-container alignItemsBaseline">
38353857 <span data-i18n="Chat Style:">Chat Style:</span><br>
38363858 <select id="chat_display" class="widthNatural flex1 margin0">
38373859 <option value="0" data-i18n="Flat">Flat</spanoption>
38383860 <option value="1" data-i18n="Bubbles">Bubbles</option>
38393861 <option value="2" data-i18n="Document">Document</option>
38403862 </select>
38413863 </div>
38423864 </div>
38433865 <div data-newbie-hidden class="inline-drawer wide100p flexFlowColumn">
38443866 <div class="inline-drawer-toggle inline-drawer-header userSettingsInnerExpandable" title="Specify colors for your theme." data-i18n="[title]Specify colors for your theme.">
38453867 <b><span data-i18n="Theme Colors">Theme Colors</span></b>
38463868 <div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
@@ -3891,7 +3913,7 @@
38913913 </div>
38923914 </div>
38933915 <hr>
38943916 <div data-newbie-hidden name="FontBlurChatWidthBlock" class="flex-container">
38953917
38963918 <div class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0">
38973919 <small>
@@ -3907,8 +3929,8 @@
39073929 <span data-i18n="Font Scale">Font Scale</span>
39083930 <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Font size" title="Font size"></div>
39093931 </small>
39103932 <input class="neo-range-slider" type="range" id="font_scale" name="font_scale" min="0.85" max="1.25" step="0.01">
39113933 <input class="neo-range-input" type="number" min="0.85" max="1.25" step="0.01" data-for="font_scale" id="font_scale_counter">
39123934 </div>
39133935
39143936 <div class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0">
@@ -3937,11 +3959,11 @@
39373959 <input id="reduced_motion" type="checkbox" />
39383960 <small data-i18n="Reduced Motion">Reduced Motion</small>
39393961 </label>
39403962 <label data-newbie-hidden for="fast_ui_mode" class="checkbox_label" title="Remove blur from window backgrounds, for faster rendering." data-i18n="[title]removes blur from window backgrounds">
39413963 <input id="fast_ui_mode" type="checkbox" />
39423964 <small data-i18n="No Blur Effect">No Blur Effect</small>
39433965 </label>
39443966 <label data-newbie-hidden for="noShadowsmode" class="checkbox_label" title="Remove text shadow effect." data-i18n="[title]Remove text shadow effect">
39453967 <input id="noShadowsmode" type="checkbox" />
39463968 <small data-i18n="No Text Shadows">No Text Shadows</small>
39473969 </label>
@@ -3949,39 +3971,39 @@
39493971 <input id="waifuMode" type="checkbox" />
39503972 <small data-i18n="Waifu Mode">Visual Novel Mode</small>
39513973 </label>
39523974 <label data-newbie-hidden for="expandMessageActions" class="checkbox_label" title="Always show the full list of the Message Actions context items for chat messages, instead of hiding them behind '...'." data-i18n="[title]Always show the full list of the Message Actions context items for chat messages, instead of hiding them behind '...'">
39533975 <input id="expandMessageActions" type="checkbox" />
39543976 <small data-i18n="Auto-Expand Message Actions">Expand Message Actions</small>
39553977 </label>
39563978 <label data-newbie-hidden for="enableZenSliders" class="checkbox_label" title="Alternative UI for numeric sampling parameters with fewer steps." data-i18n="[title]Alternative UI for numeric sampling parameters with fewer steps">
39573979 <input id="enableZenSliders" type="checkbox" />
39583980 <small data-i18n="Zen Sliders">Zen Sliders</small>
39593981 </label>
39603982 <label data-newbie-hidden for="enableLabMode" class="checkbox_label" title="Entirely unrestrict all numeric sampling parameters." data-i18n="[title]Entirely unrestrict all numeric sampling parameters">
39613983 <input id="enableLabMode" type="checkbox" />
39623984 <small data-i18n="Mad Lab Mode">Mad Lab Mode</small>
39633985 </label>
39643986 <label data-newbie-hidden for="messageTimerEnabled" class="checkbox_label" title="Time the AI's message generation, and show the duration in the chat log." data-i18n="[title]Time the AI's message generation, and show the duration in the chat log">
39653987 <input id="messageTimerEnabled" type="checkbox" />
39663988 <small data-i18n="Message Timer">Message Timer</small>
39673989 </label>
39683990 <label data-newbie-hidden for="messageTimestampsEnabled" class="checkbox_label" title="Show a timestamp for each message in the chat log." data-i18n="[title]Show a timestamp for each message in the chat log">
39693991 <input id="messageTimestampsEnabled" type="checkbox" />
39703992 <small data-i18n="Chat Timestamps">Chat Timestamps</small>
39713993 </label>
39723994 <label data-newbie-hidden for="messageModelIconEnabled" class="checkbox_label" title="Show an icon for the API that generated the message." data-i18n="[title]Show an icon for the API that generated the message">
39733995 <input id="messageModelIconEnabled" type="checkbox" />
39743996 <small data-i18n="Model Icon">Model Icons</small>
39753997 </label>
39763998 <label data-newbie-hidden for="mesIDDisplayEnabled" class="checkbox_label" title="Show sequential message numbers in the chat log." data-i18n="[title]Show sequential message numbers in the chat log">
39773999 <input id="mesIDDisplayEnabled" type="checkbox" />
39784000 <small data-i18n="Message IDs">Message IDs</small>
39794001 </label>
39804002 <label data-newbie-hidden for="hideChatAvatarsEnabled" class="checkbox_label" title="Hide avatars in chat messages." data-i18n="[title]Hide avatars in chat messages.">
39814003 <input id="hideChatAvatarsEnabled" type="checkbox" />
39824004 <small data-i18n="Hide Chat Avatars">Hide Chat Avatars</small>
39834005 </label>
39844006 <label data-newbie-hidden for="messageTokensEnabled" class="checkbox_label" title="Show the number of tokens for each message in the chat log." data-i18n="[title]Show the number of tokens in each message in the chat log">
39854007 <input id="messageTokensEnabled" type="checkbox" />
39864008 <small data-i18n="Show Message Token Count">Message Token Count</small>
39874009 </label>
@@ -3989,7 +4011,7 @@
39894011 <input id="compact_input_area" type="checkbox" />
39904012 <small data-i18n="Compact Input Area (Mobile)">Compact Input Area</small><i class="fa-solid fa-mobile-screen-button"></i>
39914013 </label>
39924014 <label data-newbie-hidden for="hotswapEnabled" class="checkbox_label" title="In the Character Management panel, show quick selection buttons for favorited characters." data-i18n="[title]In the Character Management panel, show quick selection buttons for favorited characters">
39934015 <input id="hotswapEnabled" type="checkbox" />
39944016 <small data-i18n="Characters Hotswap">Characters Hotswap</small>
39954017 </label>
@@ -4009,8 +4031,8 @@
40094031
40104032 </div>
40114033 </div>
40124034 <div name="UserSettingsSecondColumn" id="UI-Customization" class="flex-container flexFlowColumn wide100p flexNoGap flex1">
40134035 <div data-newbie-hidden name="CharacterHandlingToggles">
40144036 <h4 data-i18n="Character Handling">
40154037 Character Handling
40164038 </h4>
@@ -4021,7 +4043,7 @@
40214043 <option data-i18n="Created by" value="creator">Created by</option>
40224044 </select>
40234045 </div>
40244046 <div data-newbie-hidden class="flex-container alignitemscenter" title="Defines on importing cards which action should be chosen for importing its listed tags. 'Ask' will always display the dialog." data-i18n="[title]Defines on importing cards which action should be chosen for importing its listed tags. 'Ask' will always display the dialog.">
40254047 <label for="tag_import_setting"><small data-i18n="Import Card Tags">Import Card Tags</small></label>
40264048 <select id="tag_import_setting" class="widthNatural flex1 margin0">
40274049 <option data-i18n="Ask" value="1">Ask</option>
@@ -4030,27 +4052,27 @@
40304052 <option data-i18n="Existing" value="4">Existing</option>
40314053 </select>
40324054 </div>
40334055 <label data-newbie-hidden class="checkbox_label" for="fuzzy_search_checkbox" title="Use fuzzy matching, and search characters in the list by all data fields, not just by a name substring." data-i18n="[title]Use fuzzy matching, and search characters in the list by all data fields, not just by a name substring">
40344056 <input id="fuzzy_search_checkbox" type="checkbox" />
40354057 <small data-i18n="Advanced Character Search">Advanced Character Search</small>
40364058 </label>
40374059 <label data-newbie-hidden for="prefer_character_prompt" title="If checked and the character card contains a prompt override (System Prompt), use that instead." data-i18n="[title]If checked and the character card contains a prompt override (System Prompt), use that instead" class="checkbox_label">
40384060 <input id="prefer_character_prompt" type="checkbox" />
40394061 <small data-i18n="Prefer Character Card Prompt">Prefer Char. Prompt</small>
40404062 </label>
40414063 <label data-newbie-hidden for="prefer_character_jailbreak" title="If checked and the character card contains a Post-History Instructions override, use that instead." data-i18n="[title]If checked and the character card contains a Post-History Instructions override, use that instead" class="checkbox_label">
40424064 <input id="prefer_character_jailbreak" type="checkbox" />
40434065 <small data-i18n="Prefer Character Card Instructions">Prefer Char. Instructions</small>
40444066 </label>
40454067 <label data-newbie-hidden class="checkbox_label" for="never_resize_avatars" title="Avoid cropping and resizing imported character images. When off, crop/resize to 512x768." data-i18n="[title]Avoid cropping and resizing imported character images. When off, crop/resize to 512x768">
40464068 <input id="never_resize_avatars" type="checkbox" />
40474069 <small data-i18n="Never resize avatars">Never resize avatars</small>
40484070 </label>
40494071 <label data-newbie-hidden class="checkbox_label" for="show_card_avatar_urls" title="Show actual file names on the disk, in the characters list display only." data-i18n="[title]Show actual file names on the disk, in the characters list display only">
40504072 <input id="show_card_avatar_urls" type="checkbox" />
40514073 <small data-i18n="Show avatar filenames">Show avatar filenames</small>
40524074 </label>
40534075 <label data-newbie-hidden class="checkbox_label" for="spoiler_free_mode" title="Hide character definitions from the editor panel behind a spoiler button." data-i18n="[title]Hide character definitions from the editor panel behind a spoiler button">
40544076 <input id="spoiler_free_mode" type="checkbox" />
40554077 <small data-i18n="Spoiler Free Mode">Spoiler Free Mode</small>
40564078 </label>
@@ -4059,7 +4081,7 @@
40594081
40604082 <div name="MiscellaneousToggles">
40614083 <h4><span data-i18n="Miscellaneous">Miscellaneous</span></h4>
40624084 <div data-newbie-hidden class="flex-container">
40634085 <div id="reload_chat" class="menu_button whitespacenowrap" data-i18n="[title]Reload and redraw the currently open chat" title="Reload and redraw the currently open chat.">
40644086 <small data-i18n="Reload Chat">Reload Chat</small>
40654087 </div>
@@ -4099,30 +4121,43 @@
40994121 <input id="play_sound_unfocused" type="checkbox" />
41004122 <small data-i18n="Background Sound Only">Background Sound Only</small>
41014123 </label>
41024124 <label data-newbie-hidden class="checkbox_label" for="relaxed_api_urls" title="Reduce the formatting requirements on API URLs." data-i18n="[title]Reduce the formatting requirements on API URLs">
41034125 <input id="relaxed_api_urls" type="checkbox" />
41044126 <small data-i18n="Relaxed API URLS">Relaxed API URLs</small>
41054127 </label>
41064128 <label data-newbie-hidden class="checkbox_label" for="world_import_dialog" title="Ask to import the World Info/Lorebook for every new character with embedded lorebook. If unchecked, a brief message will be shown instead." data-i18n="[title]Ask to import the World Info/Lorebook for every new character with embedded lorebook. If unchecked, a brief message will be shown instead">
41074129 <input id="world_import_dialog" type="checkbox" />
41084130 <small data-i18n="Lorebook Import Dialog">Lorebook Import Dialog</small>
41094131 </label>
41104132 <label data-newbie-hidden class="checkbox_label" for=" enable_auto_select_input" title="Enable auto-select of input text in some text fields when clicking/selecting them. Applies to popup input textboxes, and possible other custom input fields." data-i18n="[title]Enable auto-select of input text in some text fields when clicking/selecting them. Applies to popup input textboxes, and possible other custom input fields.">
41114133 <input id="enable_auto_select_input" type="checkbox" />
41124134 <small data-i18n="Auto-select Input Text">Auto-select Input Text</small>
41134135 </label>
4136+ <label class="checkbox_label alignItemsCenter" for="enable_md_hotkeys" title="Enable hotkeys for inserting markdown format characters in certain text input boxes. See '/help hotkeys'.">
4137+ <input id="enable_md_hotkeys" type="checkbox" />
4138+ <small>
4139+ <span data-i18n="Markdown Hotkeys">Markdown Hotkeys</span>
4140+ <i class="fa-brands fa-markdown"></i>
4141+ </small>
4142+ </label>
41144143 <label class="checkbox_label" for="restore_user_input" title="Restore unsaved user input on page refresh." data-i18n="[title]Restore unsaved user input on page refresh">
41154144 <input id="restore_user_input" type="checkbox" />
41164145 <small data-i18n="Restore User Input">Restore User Input</small>
41174146 </label>
41184147 <div class="flex-container alignItemsCenter">
41194148 <label data-newbie-hidden id="movingUIModeCheckBlock" for="movingUImode" class="checkbox_label" title="Allow repositioning certain UI elements by dragging them. PC only, no effect on mobile." data-i18n="[title]Allow repositioning certain UI elements by dragging them. PC only, no effect on mobile">
41204149 <input id="movingUImode" type="checkbox" />
4121- <small data-i18n="Movable UI Panels">MovingUI&nbsp;<i class="fa-solid fa-desktop"></i></small>
4150+ <small>
4151+ <span data-i18n="Movable UI Panels">MovingUI</span>
4152+ <i class="fa-solid fa-desktop"></i>
4153+ </small>
41224154 </label>
41234155 <div data-newbie-hidden id="movingUIreset" title="Reset MovingUI panel sizes/locations." class="menu_button margin0" data-i18n="[title]Reset MovingUI panel sizes/locations."><i class=" fa-solid fa-recycle margin-r5"></i> Reset</div>
4156+ <i class=" fa-solid fa-recycle margin-r5"></i>
4157+ <span data-i18n="mui_reset">Reset</span>
41244158 </div>
4125- <div data-newbie-hidden id="MovingUI-presets-block" class="flex-container alignitemscenter">
4159+ </div>
4160+ <div id="MovingUI-presets-block" class="flex-container alignitemscenter">
41264161 <div class="flex-container alignItemsFlexEnd">
41274162 <label for="movingUIPresets" title="MovingUI preset. Predefined/saved draggable positions." data-i18n="[title]MovingUI preset. Predefined/saved draggable positions">
41284163 <small data-i18n="MUI Preset">MovingUI Preset:</small>
@@ -4134,7 +4169,7 @@
41344169 <div id="movingui-preset-save-button" title="Save changes to a new MovingUI preset file." data-i18n="[title]Save movingUI changes to a new file" class="menu_button margin0 fa-solid fa-save"></div>
41354170 </div>
41364171 </div>
41374172 <div data-newbie-hidden id="CustomCSS-block" class="flex-container flexFlowColumn">
41384173 <h4 class="title_restorable" title="Apply a custom CSS style to all of the ST GUI." data-i18n="[title]Apply a custom CSS style to all of the ST GUI">
41394174 <span data-i18n="Custom CSS">Custom CSS</span>
41404175 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="customCSS" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
@@ -4145,7 +4180,7 @@
41454180 </div>
41464181 </div>
41474182 </div>
41484183 <div name="UserSettingsThirdColumn" id="power-user-options-block" class="flex-container wide100p flex1">
41494184 <div id="power-user-option-checkboxes">
41504185
41514186 <div name="ChatMessageHandlingToggles">
@@ -4171,7 +4206,7 @@
41714206 <input class="neo-range-input" type="number" min="5" max="100" step="5" data-for="streaming_fps" id="streaming_fps_counter">
41724207 </div>
41734208 </div>
41744209 <div data-newbie-hidden id="examples-behavior-block">
41754210 <label data-i18n="Example Messages Behavior">
41764211 <small>Example Messages Behavior:</small>
41774212 </label>
@@ -4181,7 +4216,7 @@
41814216 <option value="strip" data-i18n="Never include examples">Never include examples</option>
41824217 </select>
41834218 </div>
41844219 <div data-newbie-hidden class="flex-container alignitemscenter">
41854220 <small data-i18n="Send on Enter">
41864221 Enter to Send:
41874222 </small>
@@ -4191,7 +4226,7 @@
41914226 <option value="1" data-i18n="Enabled">Enabled</option>
41924227 </select>
41934228 </div>
41944229 <label data-newbie-hidden class="checkbox_label" for="continue_on_send">
41954230 <input id="continue_on_send" type="checkbox" />
41964231 <small data-i18n="Press Send to continue">
41974232 "Send" to Continue
@@ -4210,11 +4245,11 @@
42104245 </small>
42114246 </label>
42124247 <div class="checkbox-container flex-container">
42134248 <label data-newbie-hidden class="checkbox_label" for="swipes-checkbox" title="Show arrow buttons on the last in-chat message to generate alternative AI responses. Both PC and mobile." data-i18n="[title]Show arrow buttons on the last in-chat message to generate alternative AI responses. Both PC and mobile">
42144249 <input id="swipes-checkbox" type="checkbox" />
42154250 <small data-i18n="Swipes">Swipes</small><i class="fa-solid fa-desktop"></i><i class="fa-solid fa-mobile-screen-button"></i>
42164251 </label>
42174252 <label data-newbie-hidden class="checkbox_label" for="gestures-checkbox" title="Allow using swiping gestures on the last in-chat message to trigger swipe generation. Mobile only, no effect on PC." , data-i18n="[title]Allow using swiping gestures on the last in-chat message to trigger swipe generation. Mobile only, no effect on PC">
42184253 <input id="gestures-checkbox" type="checkbox" />
42194254 <small data-i18n="Gestures">Gestures</small>
42204255 <i class="fa-solid fa-mobile-screen-button"></i>
@@ -4224,15 +4259,15 @@
42244259 <input id="auto-load-chat-checkbox" type="checkbox" />
42254260 <small data-i18n="Auto-load Last Chat">Auto-load Last Chat</small>
42264261 </label>
42274262 <label data-newbie-hidden for="auto_scroll_chat_to_bottom" class="checkbox_label">
42284263 <input id="auto_scroll_chat_to_bottom" type="checkbox" />
42294264 <small data-i18n="Auto-scroll Chat">Auto-scroll Chat</small>
42304265 </label>
42314266 <label data-newbie-hidden class="checkbox_label" for="auto_save_msg_edits" title="Save edits to messages without confirmation as you type." data-i18n="[title]Save edits to messages without confirmation as you type">
42324267 <input id="auto_save_msg_edits" type="checkbox" />
42334268 <small data-i18n="Auto-save Message Edits">Auto-save Message Edits</small>
42344269 </label>
42354270 <label data-newbie-hidden class="checkbox_label" for="confirm_message_delete">
42364271 <input id="confirm_message_delete" type="checkbox" />
42374272 <small data-i18n="Confirm message deletion">Confirm message deletion</small>
42384273 </label>
@@ -4240,7 +4275,7 @@
42404275 <input id="auto_fix_generated_markdown" type="checkbox" />
42414276 <small data-i18n="Auto-fix Markdown">Auto-fix Markdown</small>
42424277 </label>
42434278 <label data-newbie-hidden class="checkbox_label" for="render_formulas" title="Render LaTeX and AsciiMath equation notation in chat messages. Powered by KaTeX." data-i18n="[title]Render LaTeX and AsciiMath equation notation in chat messages. Powered by KaTeX">
42444279 <input id="render_formulas" type="checkbox" />
42454280 <small data-i18n="Render Formulas">Render Formulas</small>
42464281 <a href="https://docs.sillytavern.app/usage/core-concepts/uicustomization/#formulas-rendering" class="notes-link" target="_blank">
@@ -4251,11 +4286,11 @@
42514286 <input id="forbid_external_media" type="checkbox" />
42524287 <small data-i18n="Forbid External Media">Forbid External Media</small>
42534288 </label>
42544289 <label data-newbie-hidden class="checkbox_label" for="allow_name2_display">
42554290 <input id="allow_name2_display" type="checkbox" />
42564291 <small data-i18n="Allow {{char}}: in bot messages">Show {{char}}: in responses</small>
42574292 </label>
42584293 <label data-newbie-hidden class="checkbox_label" for="allow_name1_display">
42594294 <input id="allow_name1_display" type="checkbox" />
42604295 <small data-i18n="Allow {{user}}: in bot messages">Show {{user}}: in responses</small>
42614296 </label>
@@ -4263,23 +4298,23 @@
42634298 <input id="encode_tags" type="checkbox" />
42644299 <small data-i18n="Show tags in responses">Show &lt;tags&gt; in responses</small>
42654300 </label>
42664301 <label data-newbie-hidden class="checkbox_label" for="disable_group_trimming" title="Allow AI messages in groups to contain lines spoken by other group members." data-i18n="[title]Allow AI messages in groups to contain lines spoken by other group members">
42674302 <input id="disable_group_trimming" type="checkbox" />
42684303 <small data-i18n="Relax message trim in Groups">Relax message trim in Groups</small>
42694304 </label>
42704305 <label data-newbie-hidden class="checkbox_label" for="console_log_prompts">
42714306 <input id="console_log_prompts" type="checkbox" />
42724307 <small data-i18n="Log prompts to console">Log prompts to console</small>
42734308 </label>
42744309 <label data-newbie-hidden class="checkbox_label" for="request_token_probabilities" title="Requests logprobs from the API for the Token Probabilities feature." data-i18n="[title]Requests logprobs from the API for the Token Probabilities feature">
42754310 <input id="request_token_probabilities" type="checkbox" />
42764311 <small data-i18n="Request token probabilities">Request token probabilities</small>
42774312 </label>
42784313 <label data-newbie-hidden class="checkbox_label" for="show_group_chat_queue" title="In group chat, highlight the character(s) that are currently queued to generate responses and the order in which they will respond." data-i18n="[title]In group chat, highlight the character(s) that are currently queued to generate responses and the order in which they will respond.">
42794314 <input id="show_group_chat_queue" type="checkbox" />
42804315 <small data-i18n="Show group chat queue">Show group chat queue</small>
42814316 </label>
42824317 <div data-newbie-hidden class="inline-drawer wide100p flexFlowColumn">
42834318 <div class="inline-drawer-toggle inline-drawer-header userSettingsInnerExpandable" title="Automatically reject and re-generate AI message based on configurable criteria." data-i18n="[title]Automatically reject and re-generate AI message based on configurable criteria">
42844319 <b><span data-i18n="Auto-swipe">Auto-swipe</span></b>
42854320 <div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
@@ -4293,16 +4328,50 @@
42934328 <input id="auto_swipe_minimum_length" name="auto_swipe_minimum_length" type="number" min="0" step="1" value="0" class="text_pole" title="If the generated message is shorter than this, trigger an auto-swipe." data-i18n="[title]If the generated message is shorter than this, trigger an auto-swipe">
42944329 <small data-i18n="Blacklisted words">Blacklisted words</small>
42954330 <div class="auto_swipe">
42964331 <textarea id="auto_swipe_blacklist" name="auto_swipe_blacklist" data-i18n="[placeholder]words you dont want generated separated by comma ','" placeholder="words you don't want generated separated by comma ','" class="text_pole textarea_compact" maxlength="5000" value="" autocomplete="off" rows="3"></textarea>
42974332 <small data-i18n="Blacklisted word count to swipe">Blacklisted word count to swipe</small>
42984333 <input id="auto_swipe_blacklist_threshold" name="auto_swipe_blacklist_threshold" type="number" min="0" step="1" value="1" class="text_pole" title="Minimum number of blacklisted words detected to trigger an auto-swipe." data-i18n="[title]Minimum number of blacklisted words detected to trigger an auto-swipe">
42994334 </div>
43004335 </div>
43014336 </div>
4337+ <div nane="AutoContiueBlock" class="inline-drawer wide100p flexFlowColumn">
4338+ <div class="inline-drawer-toggle inline-drawer-header userSettingsInnerExpandable" title="Automatically 'continue' a response if the model stopped before reaching a certain amount of tokens.">
4339+ <b><span data-i18n="Auto-swipe">Auto-Continue</span></b>
4340+ <div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
4341+ </div>
4342+ <div class="inline-drawer-content">
4343+ <div class="flex-container">
4344+ <label class="checkbox_label" for="auto_continue_enabled">
4345+ <input id="auto_continue_enabled" type="checkbox" />
4346+ <small data-i18n="Enabled">
4347+ Enabled
4348+ </small>
4349+ </label>
4350+ <label class="checkbox_label" for="auto_continue_allow_chat_completions">
4351+ <input id="auto_continue_allow_chat_completions" type="checkbox" />
4352+ <small data-i18n="Allow for Chat Completion APIs">
4353+ Allow for Chat Completion APIs
4354+ </small>
4355+ </label>
4356+ </div>
4357+ <div class="auto_continue_settings_block">
4358+ <label for="auto_continue_target_length">
4359+ <small data-i18n="Target length (tokens)">Target length (tokens)</small>
4360+ <input id="auto_continue_target_length" type="number" class="text_pole textarea_compact" min="0" max="1024" />
4361+ </label>
4362+ </div>
4363+ </div>
4364+
4365+
4366+ </div>
4367+ </div>
4368+ <div name="AutoCompleteToggle" class="inline-drawer wide100p flexFlowColumn">
4369+ <div class="inline-drawer-toggle inline-drawer-header userSettingsInnerExpandable" title="Options for the various autocompelte input boxes.">
4370+ <b><span data-i18n="AutoComplete Settings">AutoComplete Settings</span></b>
4371+ <div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
43024372 </div>
43034373 <div nameclass="AutoCompleteToggleinline-drawer-content">
4304- <h4 data-i18n="AutoComplete Settings">AutoComplete Settings</h4>
4374+ <label class="checkbox_label" for="stscript_autocomplete_autoHide">
4305- <label data-newbie-hidden class="checkbox_label" for="stscript_autocomplete_autoHide">
43064375 <input id="stscript_autocomplete_autoHide" type="checkbox" />
43074376 <small data-i18n="Automatically hide details">
43084377 Automatically hide details
@@ -4366,6 +4435,7 @@
43664435 </div>
43674436 </div>
43684437 </div>
4438+ </div>
43694439 <div name="STscriptToggles">
43704440 <h4 data-i18n="STscript Settings">STscript Settings</h4>
43714441 <div title="Sets default flags for the STscript parser." data-i18n="[title]Sets default flags for the STscript parser.">
@@ -4393,11 +4463,14 @@
43934463 </div>
43944464 <div id="logo_block" class="drawer">
43954465 <div id="site_logo" class="drawer-toggle drawer-header" title="Change Background Image" data-i18n="[title]Change Background Image">
43964466 <div class="drawer-icon fa-solid fa-panorama fa-fw closedIcon"></div>
43974467 </div>
43984468 <div id="Backgrounds" class="drawer-content closedDrawer">
43994469 <div class="flex-container">
44004470 <div class="flex-container alignItemsBaseline wide100p">
4471+ <h3 class="margin0 flex2" data-i18n="Background Image">
4472+ Background Image
4473+ </h3>
44014474 <input id="bg-filter" data-i18n="[placeholder]Filter" placeholder="Filter" class="text_pole flex1" type="search" />
44024475 <div id="auto_background" class="menu_button menu_button_icon" data-i18n="[title]Automatically select a background based on the chat context" title="Automatically select a background based on the chat context.">
44034476 <i class="fa-solid fa-wand-magic"></i>
@@ -4428,7 +4501,7 @@
44284501 </div>
44294502 <div id="extensions-settings-button" class="drawer">
44304503 <div class="drawer-toggle">
44314504 <div class="drawer-icon fa-solid fa-cubes fa-fw closedIcon" title="Extensions" data-i18n="[title]Extensions"></div>
44324505 </div>
44334506 <div id="rm_extensions_block" class="drawer-content closedDrawer">
44344507 <div class="extensions_block flex-container">
@@ -4480,11 +4553,7 @@
44804553 </div>
44814554 <hr class="wide100p margin0">
44824555 <div class="alignitemscenter flex-container justifyCenter wide100p" style="justify-content: space-between;">
44834556 <h4 class="margin0"><span data-i18n="Extras API:">Extras API:</span></h4>
4484- <a target="_blank" href="https://github.com/SillyTavern/SillyTavern-Extras">
4485- SillyTavern-Extras
4486- </a>
4487- </h4>
44884557 <div class="flex-container">
44894558 <div id="extensions_status" data-i18n="Not connected...">Not connected...</div>
44904559 <label for="extensions_autoconnect" class="checkbox_label flexNoGap">
@@ -4494,8 +4563,8 @@
44944563 </div>
44954564 </div>
44964565 <div class="alignitemsflexstart flex-container wide100p">
44974566 <input id="extensions_url" type="text" class="flex1 heightFitContent text_pole widthNatural" maxlength="250" data-i18n="[placeholder]Extras API URL" placeholder="Extras API URL">
44984567 <input id="extensions_api_key" type="text" class="flex1 heightFitContent text_pole widthNatural" maxlength="250" data-i18n="[placeholder]Extras API key (optional)" placeholder="Extras API key (optional)">
44994568 <div class="extensions_url_block">
45004569 <div id="extensions_connect" class="menu_button" data-i18n="Connect">Connect</div>
45014570 </div>
@@ -4505,7 +4574,7 @@
45054574 </div>
45064575 <div id="persona-management-button" class="drawer">
45074576 <div class="drawer-toggle">
45084577 <div class="drawer-icon fa-solid fa-face-smile fa-fw closedIcon" title="Persona Management" data-i18n="[title]Persona Management"></div>
45094578 </div>
45104579 <div class="drawer-content closedDrawer">
45114580 <div class="flex-container wide100p alignitemscenter spaceBetween flexNoGap">
@@ -4539,7 +4608,7 @@
45394608 <i class="fa-solid fa-person-circle-question fa-fw"></i>
45404609 <div data-i18n="Create">Create</div>
45414610 </div>
45424611 <input id="persona_search_bar" class="text_pole width100p flex1 margin0" type="search" data-i18n="[placeholder]Search..." placeholder="Search..." maxlength="100">
45434612 <select id="persona_sort_order" class="margin0">
45444613 <option value="search" data-i18n="Search" hidden>Search</option>
45454614 <option value="asc">A-Z</option>
@@ -4559,7 +4628,7 @@
45594628 <div class="flex1">
45604629 <h4 data-i18n="Name">Name</h4>
45614630 <div class="change_name">
45624631 <input id="your_name" name="your_name" data-i18n="[placeholder]Enter your name" placeholder="Enter your name" class="text_pole wide100p" maxlength="100" value="" autocomplete="off">
45634632 <div id="your_name_button" class="menu_button fa-solid fa-check" title="Click to set a new User Name" data-i18n="[title]Click to set a new User Name">
45644633 </div>
45654634 <div id="lock_user_name" class="menu_button fa-solid fa-unlock" title="Click to lock your selected persona to the current chat. Click again to remove the lock." data-i18n="[title]Click to lock your selected persona to the current chat. Click again to remove the lock.">
@@ -4569,13 +4638,14 @@
45694638 </div>
45704639 <div>
45714640 <h4 data-i18n="Persona Description">Persona Description</h4>
45724641 <textarea id="persona_description" name="persona_description" data-i18n="[placeholder]Example: [{{user}} is a 28-year-old Romanian cat girl.]" placeholder="Example:&#10;[{{user}} is a 28-year-old Romanian cat girl.]" class="text_pole textarea_compact" maxlength="50000" value="" autocomplete="off" rows="8"></textarea>
45734642 <div class="extension_token_counter">
45744643 <span data-i18n="Tokens persona description">Tokens</span>: <span id="persona_description_token_count">0</span>
45754644 </div>
45764645 <div data-newbie-hidden>
45774646 <label for="persona_description_position" data-i18n="Position:">Position:</label>
45784647 <select id="persona_description_position">
4648+ <option value="9" data-i18n="None (disabled)">None (disabled)</option>
45794649 <option value="0" data-i18n="In Story String / Prompt Manager">In Story String / Prompt Manager</option>
45804650 <option value="2" data-i18n="Top of Author's Note">Top of Author's Note</option>
45814651 <option value="3" data-i18n="Bottom of Author's Note">Bottom of Author's Note</option>
@@ -4612,7 +4682,7 @@
46124682 </div>
46134683 <div id="rightNavHolder" class="drawer">
46144684 <div id="unimportantYes" class="drawer-toggle drawer-header">
46154685 <div id="rightNavDrawerIcon" class="drawer-icon fa-solid fa-address-card fa-fw closedIcon" title="Character Management" data-i18n="[title]Character Management">
46164686 </div>
46174687 </div>
46184688 <nav id="right-nav-panel" class="drawer-content closedDrawer fillRight">
@@ -4662,7 +4732,7 @@
46624732 <form id="form_create" action="javascript:void(null);" method="post" enctype="multipart/form-data">
46634733 <div id="avatar-and-name-block">
46644734 <div id="name_div">
46654735 <input id="character_name_pole" name="ch_name" class="text_pole" data-i18n="[placeholder]Name this character" placeholder="Name this character" maxlength="100" value="" autocomplete="off">
46664736 <div class="extension_token_counter">
46674737 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="character_name_pole" data-token-permanent="true">counting...</span>
46684738 </div>
@@ -4733,7 +4803,7 @@
47334803 </div>
47344804 <div id="tags_div">
47354805 <div class="tag_controls">
47364806 <input id="tagInput" class="text_pole textarea_compact tag_input wide100p margin0" data-i18n="[placeholder]Search / Create Tags" placeholder="Search / Create tags" maxlength="50" />
47374807 <div class="tags_view menu_button fa-solid fa-tags" title="View all tags" data-i18n="[title]View all tags"></div>
47384808 </div>
47394809 <div id="tagList" class="tags"></div>
@@ -4753,7 +4823,7 @@
47534823 <hr>
47544824 <div id="description_div" class="title_restorable">
47554825 <div class="flex-container alignitemscenter">
47564826 <span data-i18n="Character Description" class="mdhotkey_location">Description</span>
47574827 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="description_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
47584828 <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#character-description" class="notes-link" target="_blank">
47594829 <span class="fa-solid fa-circle-question note-link-span"></span>
@@ -4767,7 +4837,7 @@
47674837 </span>
47684838 </div>
47694839 </div>
47704840 <textarea id="description_textarea" class="mdHotkeys" data-i18n="[placeholder]Describe your character's physical and mental traits here." placeholder="Describe your character's physical and mental traits here." name="description" placeholder=""></textarea>
47714841 <div class="extension_token_counter">
47724842 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="description_textarea" data-token-permanent="true">counting...</span>
47734843 </div>
@@ -4775,7 +4845,7 @@
47754845 <div id="firstMessageWrapper" class="flex-container flexFlowColumn flex1">
47764846 <div id="first_message_div" class="title_restorable">
47774847 <div class="flex-container alignitemscenter flex1">
47784848 <span data-i18n="First message" class="mdhotkey_location">First message</span>
47794849 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="firstmessage_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
47804850 <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#first-message" class="notes-link" target="_blank">
47814851 <span class="fa-solid fa-circle-question note-link-span"></span>
@@ -4787,7 +4857,7 @@
47874857 </span>
47884858 </div>
47894859 </div>
47904860 <textarea class="mdHotkeys" id="firstmessage_textarea" data-i18n="[placeholder]This will be the first message from the character that starts every chat." placeholder="This will be the first message from the character that starts every chat." name="first_mes" placeholder=""></textarea>
47914861 <div class="extension_token_counter">
47924862 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="firstmessage_textarea">counting...</span>
47934863 </div>
@@ -4818,12 +4888,12 @@
48184888 <div class="inline-drawer-content">
48194889 <div id="group-metadata-controls" class="marginTopBot5">
48204890 <div class="flex-container wide100p">
48214891 <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)" maxlength="200" />
48224892 <div class="chat_lorebook_button menu_button fa-solid fa-passport" title="Chat Lore" data-i18n="[title]Chat Lore"></div>
48234893 </div>
48244894 <div id="group_tags_div" class="wide100p">
48254895 <div class="tag_controls">
48264896 <input id="groupTagInput" class="text_pole textarea_compact tag_input flex1 margin0" data-i18n="[placeholder]Search / Create Tags" placeholder="Search / Create tags" maxlength="50" />
48274897 <div class="tags_view menu_button fa-solid fa-tags margin0" title="View all tags" data-i18n="[title]View all tags"></div>
48284898 </div>
48294899 <div id="groupTagList" class="tags paddingTopBot5"></div>
@@ -4865,7 +4935,7 @@
48654935 <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]When 'Join character cards' is selected, all respective fields of the characters are being joined together.This means that in the story string for example all character descriptions will be joined to one big text.If you want those fields to be separated, you can define a prefix or suffix here.This value supports normal macros and will also replace {{char}} with the relevant char's name and &lt;FIELDNAME&gt; with the name of the part (e.g.: description, personality, scenario, etc.)" title="When 'Join character cards' is selected, all respective fields of the characters are being joined together.&#13;This means that in the story string for example all character descriptions will be joined to one big text.&#13;If you want those fields to be separated, you can define a prefix or suffix here.&#13;&#13;This value supports normal macros and will also replace {{char}} with the relevant char's name and &lt;FIELDNAME&gt; with the name of the part (e.g.: description, personality, scenario, etc.)">
48664936 </div>
48674937 </label>
48684938 <textarea id="rm_group_generation_mode_join_prefix" class="text_pole wide100p textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
48694939 </div>
48704940 <div class="flex1 flexGap5" title="Inserted after each part of the joined fields." data-i18n="[title]Inserted after each part of the joined fields.">
48714941 <label for="rm_group_generation_mode_join_suffix" class="flexnowrap width100p whitespacenowrap">
@@ -4873,7 +4943,7 @@
48734943 <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]When 'Join character cards' is selected, all respective fields of the characters are being joined together.This means that in the story string for example all character descriptions will be joined to one big text.If you want those fields to be separated, you can define a prefix or suffix here.This value supports normal macros and will also replace {{char}} with the relevant char's name and &lt;FIELDNAME&gt; with the name of the part (e.g.: description, personality, scenario, etc.)" title="When 'Join character cards' is selected, all respective fields of the characters are being joined together.&#13;This means that in the story string for example all character descriptions will be joined to one big text.&#13;If you want those fields to be separated, you can define a prefix or suffix here.&#13;&#13;This value supports normal macros and will also replace {{char}} with the relevant char's name and &lt;FIELDNAME&gt; with the name of the part (e.g.: description, personality, scenario, etc.)">
48744944 </div>
48754945 </label>
48764946 <textarea id="rm_group_generation_mode_join_suffix" class="text_pole wide100p textarea_compact autoSetHeight" maxlength="2000" placeholder="&mdash;" rows="1"></textarea>
48774947 </div>
48784948 </div>
48794949 <div id="GroupFavDelOkBack" class="flex-container flexGap5 spaceEvenly flex1">
@@ -4928,7 +4998,7 @@
49284998 <div class="inline-drawer-content">
49294999 <div name="Unadded Char List" class="flex-container flexFlowColumn overflowYAuto flex1">
49305000 <div id="rm_group_add_members_header">
49315001 <input id="rm_group_filter" class="text_pole margin0" type="search" data-i18n="[placeholder]Search..." placeholder="Search..." maxlength="200" />
49325002 </div>
49335003 <div class="rm_tag_controls">
49345004 <div class="tags rm_tag_filter"></div>
@@ -4942,7 +5012,7 @@
49425012 <div id="rm_character_import" class="right_menu" style="display: none;">
49435013 <form id="form_import" action="javascript:void(null);" method="post" enctype="multipart/form-data">
49445014 <input multiple type="file" id="character_import_file" accept=".json, image/png, .yaml, .yml, .charx" name="avatar">
49455015 <input id="character_import_file_type" name="file_type" class="text_pole" maxlength="999" size="2" value="" autocomplete="off">
49465016 </form>
49475017 <input type="file" id="character_replace_file" accept=".json, image/png, .yaml, .yml, .charx" name="replace_avatar" hidden>
49485018 </div>
@@ -4953,7 +5023,7 @@
49535023 <div id="character_import_button" title="Import Character from File" data-i18n="[title]Import Character from File" class="menu_button fa-solid fa-file-import faSmallFontSquareFix"></div>
49545024 <div id="external_import_button" title="Import content from external URL" data-i18n="[title]Import content from external URL" class="menu_button fa-solid fa-cloud-arrow-down faSmallFontSquareFix"></div>
49555025 <div id="rm_button_group_chats" title="Create New Chat Group" data-i18n="[title]Create New Chat Group" class="menu_button fa-solid fa-users-gear "></div>
49565026 <input id="character_search_bar" class="text_pole width100p" type="search" data-i18n="[placeholder]Search..." placeholder="Search..." maxlength="100" />
49575027 <select id="character_sort_order" title="Characters sorting order" data-i18n="[title]Characters sorting order">
49585028 <option data-field="search" data-order="desc" data-i18n="Search" hidden>Search</option>
49595029 <option data-field="name" data-order="asc" data-i18n="A-Z">A-Z</option>
@@ -4989,6 +5059,61 @@
49895059 </div>
49905060 </div>
49915061 <!-- various fullscreen popups -->
5062+ <div name="templatesAndPopupsWrapper"> <!--this div is just for IDE sanity for quick collapsing-->
5063+ <div id="export_format_popup" class="list-group">
5064+ <div class="export_format list-group-item" data-format="png">PNG</div>
5065+ <div class="export_format list-group-item" data-format="json">JSON</div>
5066+ </div>
5067+ <div id="zoomed_avatar_template" class="template_element">
5068+ <div class="zoomed_avatar">
5069+ <div class="panelControlBar flex-container">
5070+ <div class="fa-fw fa-solid fa-grip drag-grabber"></div>
5071+ <div class="fa-fw fa-solid fa-circle-xmark dragClose" id="closeZoom"></div>
5072+ </div>
5073+ <div class="zoomed_avatar_container">
5074+ <img class="zoomed_avatar_img" src="" data-izoomify-url="" data-izoomify-magnify="1.8" data-izoomify-duration="300" alt="">
5075+ </div>
5076+ </div>
5077+ </div>
5078+ <template id="generic_draggable_template">
5079+ <div class="draggable">
5080+ <div class="dragTitle"></div>
5081+ <div class="panelControlBar flex-container">
5082+ <div class="fa-fw fa-solid fa-grip drag-grabber"></div>
5083+ <div class="fa-fw fa-solid fa-circle-xmark dragClose"></div>
5084+ </div>
5085+ </div>
5086+ </template>
5087+ <div id="user_avatar_template" class="template_element">
5088+ <div class="avatar-container">
5089+ <div imgfile="" class="avatar">
5090+ <img src="" alt="User Avatar">
5091+ </div>
5092+ <div class="flex-container wide100pLess70px character_select_container">
5093+ <div class="wide100p character_name_block">
5094+ <span class="ch_name flex1"></span>
5095+ <div class="avatar-buttons">
5096+ <button class="menu_button bind_user_name" title="Bind user name to that avatar" data-i18n="[title]Bind user name to that avatar">
5097+ <i class="fa-fw fa-solid fa-user-edit"></i>
5098+ </button>
5099+ <button class="menu_button set_persona_image" title="Change persona image" data-i18n="[title]Change persona image">
5100+ <i class="fa-fw fa-solid fa-image"></i>
5101+ </button>
5102+ <button class="menu_button set_default_persona" title="Select this as default persona for the new chats." data-i18n="[title]Select this as default persona for the new chats.">
5103+ <i class="fa-fw fa-solid fa-crown"></i>
5104+ </button>
5105+ <button class="menu_button duplicate_persona" title="Duplicate persona" data-i18n="[title]Duplicate persona">
5106+ <i class="fa-fw fa-solid fa-clone"></i>
5107+ </button>
5108+ <button class="menu_button delete_avatar" title="Delete persona" data-i18n="[title]Delete persona">
5109+ <i class="fa-fw fa-solid fa-trash-alt"></i>
5110+ </button>
5111+ </div>
5112+ </div>
5113+ <div class="ch_description"></div>
5114+ </div>
5115+ </div>
5116+ </div>
49925117 <template id="popup_template" data-i18n="[popup-button-save]popup-button-save;[popup-button-yes]popup-button-yes;[popup-button-no]popup-button-no;[popup-button-cancel]popup-button-cancel;[popup-button-import]popup-button-import;[popup-button-crop]popup-button-crop" popup-button-save="Save" popup-button-yes="Yes" popup-button-no="No" popup-button-cancel="Cancel" popup-button-import="Import" popup-button-crop="Crop"> <!-- localization data holder for popups -->
49935118 <dialog class="popup">
49945119 <div class="popup-body">
@@ -5041,14 +5166,14 @@
50415166 <small data-i18n="Insert {{original}} into either box to include the respective default prompt from system settings.">Insert {{original}} into either box to include the respective default prompt from system settings.</small>
50425167 <div>
50435168 <h4 data-i18n="Main Prompt">Main Prompt</h4>
50445169 <textarea id="system_prompt_textarea" name="system_prompt" data-i18n="[placeholder]Any contents here will replace the default Main Prompt used for this character. (v2 spec: system_prompt)" placeholder="Any contents here will replace the default Main Prompt used for this character.&#10;(v2 spec: system_prompt)" form="form_create" class="text_pole" autocomplete="off" rows="3" maxlength="50000"></textarea>
50455170 <div class="extension_token_counter">
50465171 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="system_prompt_textarea">counting...</span>
50475172 </div>
50485173 </div>
50495174 <div>
50505175 <h4 data-i18n="Post-History Instructions">Post-History Instructions</h4>
50515176 <textarea id="post_history_instructions_textarea" name="post_history_instructions" data-i18n="[placeholder]Any contents here will replace the default Post-History Instructions used for this character. (v2 spec: post_history_instructions)" placeholder="Any contents here will replace the default Post-History Instructions used for this character.&#10;(v2 spec: post_history_instructions)" form="form_create" class="text_pole" autocomplete="off" rows="3" maxlength="50000"></textarea>
50525177 <div class="extension_token_counter">
50535178 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="post_history_instructions_textarea">counting...</span>
50545179 </div>
@@ -5069,44 +5194,44 @@
50695194 <div class="flex-container flexnowrap">
50705195 <div class="flex1">
50715196 <h4 data-i18n="Created by">Created by</h4>
50725197 <textarea id="creator_textarea" name="creator" data-i18n="[placeholder](Botmaker's name / Contact Info)" placeholder="(Botmaker's name / Contact info)" form="form_create" class="text_pole" autocomplete="off" rows="2" maxlength="5000"></textarea>
50735198 </div>
50745199 <div class="flex1">
50755200 <h4 data-i18n="Character Version">Character Version</h4>
50765201 <textarea id="character_version_textarea" name="character_version" data-i18n="[placeholder](If you want to track character versions)" placeholder="(If you want to track character versions)" form="form_create" class="text_pole" autocomplete="off" rows="2" maxlength="500"></textarea>
50775202 </div>
50785203 </div>
50795204 <div class="flex-container flexnowrap">
50805205 <div class="flex1">
50815206 <h4 class="flex-box" data-i18n="Creator's Notes">Creator's Notes<i class="editor_maximize fa-solid fa-maximize" data-for="creator_notes_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i></h4>
50825207 <textarea id="creator_notes_textarea" name="creator_notes" data-i18n="[placeholder](Describe the bot, give use tips, or list the chat models it has been tested on. This will be displayed in the character list.)" placeholder="(Describe the bot, give use tips, or list the chat models it has been tested on. This will be displayed in the character list.)" form="form_create" class="text_pole" autocomplete="off" rows="4" maxlength="20000"></textarea>
50835208 </div>
50845209 <div class="flex1">
50855210 <h4 data-i18n="Tags to Embed">Tags to Embed</h4>
50865211 <textarea id="tags_textarea" name="tags" data-i18n="[placeholder](Write a comma-separated list of tags)" placeholder="(Write a comma-separated list of tags)" form="form_create" class="text_pole" autocomplete="off" rows="4" maxlength="5000"></textarea>
50875212 </div>
50885213 </div>
50895214 </div>
50905215 </div>
50915216 <hr>
50925217 <div id="personality_div">
5093- <h4>
5218+ <h4 class="flex-container alignItemsBaseline">
50945219 <span data-i18n="Personality summary">Personality summary</span>
50955220 <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#personality-summary" class="notes-link" target="_blank"><span class="fa-solid fa-circle-question note-link-span"></span></a>
50965221 </h4>
50975222 <textarea id="personality_textarea" name="personality" data-i18n="[placeholder](A brief description of the personality)" placeholder="(A brief description of the personality)" form="form_create" class="text_pole" autocomplete="off" rows="4" maxlength="50000"></textarea>
50985223 <div class="extension_token_counter">
50995224 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="personality_textarea" data-token-permanent="true">counting...</span>
51005225 </div>
51015226 </div>
51025227 <div id="scenario_div">
5103- <h4>
5228+ <h4 class="flex-container alignItemsBaseline">
51045229 <span data-i18n="Scenario">Scenario</span>
51055230 <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#scenario" class="notes-link" target="_blank">
51065231 <span class="fa-solid fa-circle-question note-link-span"></span>
51075232 </a>
51085233 </h4>
51095234 <textarea id="scenario_pole" name="scenario" data-i18n="[placeholder](Circumstances and context of the interaction)" placeholder="(Circumstances and context of the interaction)" class="text_pole" maxlength="50000" value="" autocomplete="off" form="form_create" rows="4"></textarea>
51105235 <div class="extension_token_counter">
51115236 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="scenario_pole" data-token-permanent="true">counting...</span>
51125237 </div>
@@ -5118,7 +5243,7 @@
51185243 Character's Note
51195244 </span>
51205245 </h4>
51215246 <textarea id="depth_prompt_prompt" name="depth_prompt_prompt" class="text_pole" rows="5" maxlength="50000" autocomplete="off" form="form_create" data-i18n="[placeholder](Text to be inserted in-chat @ designated depth and role)" placeholder="(Text to be inserted in-chat @ designated depth and role)"></textarea>
51225247 </div>
51235248 <div>
51245249 <h4>
@@ -5157,55 +5282,27 @@
51575282 <hr>
51585283 <div id="mes_example_div" class="flex-container flexFlowColumn">
51595284 <div>
51605285 <h4 class="flex-container gap5px alignItemsBaseline"><span data-i18n="Examples of dialogue" class="mdhotkey_location">Examples of dialogue</span></h4>
51615286 <h5 data-i18n="Important to set the character's writing style.">Important to set the character's writing style. <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#examples-of-dialogue" class="notes-link" target="_blank"><span class="fa-solid fa-circle-question note-link-span"></span></a></h5>
51625287 </div>
51635288 <textarea id="mes_example_textarea" class="flexGrow mdHotkeys" name="mes_example" data-i18n="[placeholder](Examples of chat dialog. Begin each example with START on a new line.)" placeholder="(Examples of chat dialog. Begin each example with &lt;START&gt; on a new line.)" form="form_create" maxlength="50000" rows="6"></textarea>
51645289 <div class="extension_token_counter">
51655290 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="mes_example_textarea">counting...</span>
51665291 </div>
5167- <!-- PLACEHOLDER CODE FOR NEW EXAMPLE CHAT HANDLING
5292+ <!-- TODO: Example chats handhold-editor concept: https://gist.github.com/Cohee1207/50da02a4001ac1adae9b440f9b8e1079 -->
5168- <div name="exampleChatsBlockTemplate" class="flex-container flexFlowColumn">
5169- <div class="flex-container alignitemscenter">
5170- <textarea class="flexShrink flexGrow wideMinContent" rows="1" placeholder="Name for this example chat"></textarea>
5171- <div class="fa-solid fa-plus menu_button" title="Add a new message to this example chat block"></div>
5172- </div>
5173- <div class="flex-container whitespacenowrap">
5174- <div class="flex-container flexFlowColumn">
5175- <select>
5176- <option>{{user}}</option>
5177- <option>{{char}}</option>
5178- <option>Custom</option>
5179- </select>
5180- <textarea rows="1" placeholder="Custom Entity"></textarea>
5181- </div>
5182- <textarea class="flexShrink flexGrow wideMinContent" placeholder="Content of the example chat."></textarea>
5183- </div>
5184- <div class="flex-container whitespacenowrap">
5185- <div class="flex-container flexFlowColumn">
5186- <select>
5187- <option>{{user}}</option>
5188- <option>{{char}}</option>
5189- <option>Custom</option>
5190- </select>
5191- <textarea rows="1" placeholder="Custom Entity"></textarea>
5192- </div>
5193- <textarea class="flexShrink flexGrow wideMinContent" placeholder="Content of the example chat."></textarea>
5194- </div>
5195- </div>
5196- -->
51975293 </div>
51985294 <div id="character_popup_ok" class="menu_button" data-i18n="Save">Save</div>
51995295 </div>
5296+
52005297 <div id="shadow_select_chat_popup">
52015298 <div id="select_chat_popup">
52025299 <div name="selectChatPopupHeader" class="flex-container alignitemscenter justifySpaceBetween flexGap10">
52035300 <div id="select_chat_import"> <!-- import chat popup header -->
52045301 <form id="form_import_chat" action="javascript:void(null);" method="post" enctype="multipart/form-data" style="display: none;">
52055302 <input type="file" id="chat_import_file" accept=".json, .jsonl" name="avatar">
52065303 <input id="chat_import_file_type" name="file_type" class="text_pole" maxlength="999" size="2" value="" autocomplete="off" style="display: none;">
52075304 <input id="chat_import_avatar_url" name="avatar_url" class="text_pole" maxlength="999" size="2" value="" autocomplete="off" style="display: none;">
52085305 <input id="chat_import_character_name" name="character_name" class="text_pole" maxlength="999" size="2" value="" autocomplete="off" style="display: none;">
52095306 </form>
52105307 </div>
52115308 <div id="selectChatPopupHeaderText" class="TxtLrgBoldCenter">
@@ -5343,12 +5440,11 @@
53435440 <div class="inline-drawer-toggle fa-fw fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
53445441 <div class="fa-solid fa-toggle-on killSwitch" name="entryKillSwitch" title="Toggle entry's active state."></div>
53455442 <div class="flex-container alignitemscenter wide100p">
5346-
53475443 <div class="WIEntryTitleAndStatus flex-container flex1 alignitemscenter">
5348-
53495444 <div class="flex-container flex1">
53505445 <textarea class="text_pole" rows="1" name="comment" maxlength="5000" data-i18n="[placeholder]Entry Title/Memo" placeholder="Entry Title/Memo"></textarea>
53515446 </div>
5447+ <!-- <span class="world_entry_form_position_value"></span> -->
53525448 <select data-i18n="[title]WI Entry Status:🔵 Constant🟢 Normal🔗 Vectorized❌ Disabled" title="WI Entry Status:&#13;🔵 Constant&#13;🟢 Normal&#13;🔗 Vectorized&#13;❌ Disabled" name="entryStateSelector" class="text_pole widthNatural margin0">
53535449 <option value="constant" title="Constant" data-i18n="[title]WI_Entry_Status_Constant">🔵</option>
53545450 <option value="normal" title="Normal" data-i18n="[title]WI_Entry_Status_Normal">🟢</option>
@@ -5417,7 +5513,7 @@
54175513 </small>
54185514 <small class="textAlignCenter" data-i18n="Primary Keywords">Primary Keywords</small>
54195515 <select class="keyprimaryselect keyselect select2_multi_sameline" name="key" data-i18n="[placeholder]Keywords or Regexes" placeholder="Keywords or Regexes" multiple="multiple"></select>
54205516 <textarea class="text_pole keyprimarytextpole mobile" name="key" rows="1" data-i18n="[placeholder]Comma separated list" placeholder="Comma separated list" maxlength="2000" style="display: none;"></textarea>
54215517 <button type="button" class="switch_input_type_icon" tabindex="-1" title="Switch to plaintext mode" data-i18n="[title]Switch to plaintext mode" data-icon-on="✨" data-icon-off="⌨️" data-tooltip-on="Switch to fancy mode" data-tooltip-off="Switch to plaintext mode">
54225518 ⌨️
54235519 </button>
@@ -5439,7 +5535,7 @@
54395535 </small>
54405536 <small class="textAlignCenter" data-i18n="Optional Filter">Optional Filter</small>
54415537 <select class="keysecondaryselect keyselect select2_multi_sameline" name="keysecondary" data-i18n="[placeholder]Keywords or Regexes (ignored if empty)" placeholder="Keywords or Regexes (ignored if empty)" multiple="multiple"></select>
54425538 <textarea class="text_pole keysecondarytextpole mobile" name="keysecondary" rows="1" data-i18n="[placeholder]Comma separated list (ignored if empty)" placeholder="Comma separated list (ignored if empty)" maxlength="2000" style="display: none;"></textarea>
54435539 <button type="button" class="switch_input_type_icon" tabindex="-1" title="Switch to plaintext mode" data-i18n="[title]Switch to plaintext mode" data-icon-on="✨" data-icon-off="⌨️" data-tooltip-on="Switch to fancy mode" data-tooltip-off="Switch to plaintext mode">
54445540 ⌨️
54455541 </button>
@@ -5453,23 +5549,23 @@
54535549 <div class="world_entry_form_control flex1">
54545550 <small class="textAlignCenter" data-i18n="Case-Sensitive">Case-Sensitive</small>
54555551 <select name="caseSensitive" class="text_pole widthNatural margin0">
54565552 <option value="null" data-i18n="Use global setting">Use global setting</option>
54575553 <option value="true" data-i18n="Yes">Yes</option>
54585554 <option value="false" data-i18n="No">No</option>
54595555 </select>
54605556 </div>
54615557 <div class="world_entry_form_control flex1">
54625558 <small class="textAlignCenter" data-i18n="Match Whole Words">Match Whole Words</small>
54635559 <select name="matchWholeWords" class="text_pole widthNatural margin0">
54645560 <option value="null" data-i18n="Use global setting">Use global setting</option>
54655561 <option value="true" data-i18n="Yes">Yes</option>
54665562 <option value="false" data-i18n="No">No</option>
54675563 </select>
54685564 </div>
54695565 <div class="world_entry_form_control flex1">
54705566 <small class="textAlignCenter" data-i18n="Use Group Scoring">Use Group Scoring</small>
54715567 <select name="useGroupScoring" class="text_pole widthNatural margin0">
54725568 <option value="null" data-i18n="Use global setting">Use global setting</option>
54735569 <option value="true" data-i18n="Yes">Yes</option>
54745570 <option value="false" data-i18n="No">No</option>
54755571 </select>
@@ -5478,13 +5574,20 @@
54785574 <small class="textAlignCenter" data-i18n="Automation ID">Automation ID</small>
54795575 <input class="text_pole margin0" name="automationId" type="text" placeholder="( None )" data-i18n="[placeholder]( None )">
54805576 </div>
5577+ <div class="world_entry_form_control flex1" title="Defines delay levels for recursive scans.&#13;&#13;Initially, only the first level (smallest number) will match.&#13;Once no matches are found, the next level becomes eligible for matching.&#13;This repeats until all levels are checked.&#13;&#13;Tied to the &quot;Delay until recursion&quot; setting." data-i18n="[title]delay_until_recursion_level">
5578+ <small class="textAlignCenter">
5579+ <span data-i18n="Recursion Level">Recursion Level</span>
5580+ <div class="fa-solid fa-circle-info opacity50p"></div>
5581+ </small>
5582+ <input class="text_pole margin0" name="delayUntilRecursionLevel" type="text" placeholder="1">
5583+ </div>
54815584 </div>
54825585 <div name="contentAndCharFilterBlock" class="world_entry_thin_controls flex2">
54835586 <div class="world_entry_form_control flex1">
54845587 <label for="content ">
54855588 <small>
54865589 <span class="alignitemscenter flex-container flexnowrap wide100p justifySpaceBetween">
54875590 <span data-i18n="Content" class="alignitemscenter flex-container flexNoGap mdhotkey_location">
54885591 Content
54895592 </span>
54905593 <span>
@@ -5494,20 +5597,20 @@
54945597 <div>
54955598 <label class="checkbox flex-container alignitemscenter flexNoGap">
54965599 <input type="checkbox" name="exclude_recursion" />
54975600 <span data-i18n="ExcludeNon-recursable from(will recursionnot be activated by another)">
54985601 Non-recursable (this entry will not be activated by another)
54995602 </span>
55005603 </label>
55015604 <label class="checkbox flex-container alignitemscenter flexNoGap">
55025605 <input type="checkbox" name="prevent_recursion" />
55035606 <span data-i18n="Prevent further recursion (this entry will not activate others)">
55045607 Prevent further recursion (this entry will not activate others)
55055608 </span>
55065609 </label>
55075610 <label class="checkbox flex-container alignitemscenter flexNoGap">
55085611 <input type="checkbox" name="delay_until_recursion" />
55095612 <span data-i18n="Delay until recursion (this entry can only be activated on recursive checking)">
55105613 Delay until recursion (this entry can only be activated on recursive checking)
55115614 </span>
55125615 </label>
55135616 </div>
@@ -5519,7 +5622,7 @@
55195622 </span>
55205623 </small>
55215624 </label>
55225625 <textarea class="text_pole mdHotkeys" name="content" rows="8" data-i18n="[placeholder]What this keyword should mean to the AI, sent verbatim" placeholder="What this keyword should mean to the AI, sent verbatim"></textarea>
55235626 </div>
55245627 </div>
55255628 <div class="world_entry_thin_controls commentContainer">
@@ -5616,8 +5719,8 @@
56165719 </div>
56175720 <div class="range-block-range">
56185721 <select name="characterFilter" class="select2_multi_sameline" multiple>
5619- <option value="">
5722+ <option value="" data-i18n="-- Characters not found --">
5620- <span data-i18n="-- Characters not found --">-- Characters not found --</span>
5723+ -- Characters not found --
56215724 </option>
56225725 </select>
56235726 </div>
@@ -5674,7 +5777,6 @@
56745777 <input class="openai_logit_bias_text text_pole" data-i18n="[placeholder]Text or token ids" placeholder="Text or [token ids]" />
56755778 <input class="openai_logit_bias_value text_pole" type="number" min="-100" value="0" max="100" />
56765779 <i class="menu_button fa-solid fa-xmark openai_logit_bias_remove"></i>
5677- </form>
56785780 </div>
56795781 </div>
56805782 <div id="logit_bias_template" class="template_element">
@@ -5807,7 +5909,7 @@
58075909 <div title="Create branch" class="mes_button mes_create_branch fa-regular fa-code-branch" data-i18n="[title]Create Branch"></div>
58085910 <div title="Copy" class="mes_button mes_copy fa-solid fa-copy " data-i18n="[title]Copy"></div>
58095911 </div>
58105912 <div titledata-tooltip="OpenClick to open checkpoint chat&#10;Shift+Click to replace the existing checkpoint with a new one" class="mes_button mes_bookmark fa-solid fa-flag" data-i18n="[titledata-tooltip]Open checkpoint chat&#10;Shift+Click to replace the existing checkpoint with a new one"></div>
58115913 <div title="Edit" class="mes_button mes_edit fa-solid fa-pencil " data-i18n="[title]Edit"></div>
58125914 </div>
58135915 <div class="mes_edit_buttons">
@@ -5866,11 +5968,6 @@
58665968 <div id="onboarding_template" class="template_element">
58675969 <div class="onboarding">
58685970 <h3 data-i18n="Welcome to SillyTavern!">Welcome to SillyTavern!</h3>
5869- <ul class="justifyLeft margin-bot-10px">
5870- <li><span data-i18n="welcome_message_part_1">Read the</span> <a href="https://docs.sillytavern.app/" target="_blank" data-i18n="welcome_message_part_2">Official Documentation</a><span data-i18n="welcome_message_part_3">.</span></li>
5871- <li><span data-i18n="welcome_message_part_4">Type</span> <code>/help</code> <span data-i18n="welcome_message_part_5">in chat for commands and macros.</span></li>
5872- <li><span data-i18n="welcome_message_part_6">Join the</span> <a href="https://discord.gg/sillytavern" data-i18n="Discord server" target="_blank">Discord server</a> <span data-i18n="welcome_message_part_7">for info and announcements.</span></li>
5873- </ul>
58745971 <div id="onboarding-UI-language-block" class="flex-container alignItemsBaseline">
58755972 <span data-i18n="UI Language">Language:</span>
58765973 <select id="onboarding_ui_language_select" class="flex1 margin0">
@@ -5880,21 +5977,11 @@
58805977 <b data-i18n="SillyTavern is aimed at advanced users.">
58815978 SillyTavern is aimed at advanced users.
58825979 </b>
5883- <div>
5980+ <ul class="justifyLeft marginTopBot5">
5884- <span data-i18n="If you're new to this, enable the simplified UI mode below.">
5981+ <li><span data-i18n="welcome_message_part_1">Read the</span> <a href="https://docs.sillytavern.app/" target="_blank" data-i18n="welcome_message_part_2">Official Documentation</a><span data-i18n="welcome_message_part_3">.</span></li>
5885- If you're new to this, enable the simplified UI mode below.
5982+ <li><span data-i18n="welcome_message_part_4">Type</span> <code>/help</code> <span data-i18n="welcome_message_part_5">in chat for commands and macros.</span></li>
5886- </span>
5983+ <li><span data-i18n="welcome_message_part_6">Join the</span> <a href="https://discord.gg/sillytavern" data-i18n="Discord server" target="_blank">Discord server</a> <span data-i18n="welcome_message_part_7">for info and announcements.</span></li>
58875984 <br/ul>
5888- <span data-i18n="Change it later in the 'User Settings' panel.">
5889- Change it later in the 'User Settings' panel.
5890- </span>
5891- </div>
5892- <label class="checkbox_label">
5893- <input type="checkbox" name="enable_simple_mode" />
5894- <span data-i18n="Enable simple UI mode">
5895- Enable simple UI mode
5896- </span>
5897- </label>
58985985 <div class="expander"></div>
58995986 <div class="textAlignCenter">
59005987 <h3 data-i18n="Looking for AI characters?">
@@ -6010,7 +6097,7 @@
60106097 <div id="alternate_greetings_template" class="template_element">
60116098 <div class="alternate_grettings flexFlowColumn flex-container">
60126099 <div class="title_restorable">
60136100 <h3><span data-i18n="Alternate Greetings" class="mdhotkey_location">Alternate Greetings</span></h3>
60146101 <div title="Add" class="menu_button fa-solid fa-plus add_alternate_greeting" data-i18n="[title]Add"></div>
60156102 </div>
60166103 <small class="justifyLeft" data-i18n="Alternate_Greetings_desc">
@@ -6031,7 +6118,7 @@
60316118 <strong><span data-i18n="Alternate Greeting #">Alternate Greeting #</span><span class="greeting_index"></span></strong>
60326119 <div class="menu_button fa-solid fa-trash-alt delete_alternate_greeting"></div>
60336120 </div>
60346121 <textarea name="alternate_greetings" data-i18n="[placeholder](This will be the first message from the character that starts every chat)" placeholder="(This will be the first message from the character that starts every chat)" class="text_pole textarea_compact alternate_greeting_text" maxlength="50000mdHotkeys" value="" autocomplete="off" rows="16"></textarea>
60356122 </div>
60366123 </div>
60376124
@@ -6048,6 +6135,7 @@
60486135 <div class="right_menu_button mes_file_delete fa-solid fa-trash-can" title="Remove the file" data-i18n="[title]Remove the file"></div>
60496136 </div>
60506137 </div>
6138+ </div>
60516139 <div id="movingDivs">
60526140 <div id="floatingPrompt" class="drawer-content flexGap5">
60536141 <div class="panelControlBar flex-container alignItemsBaseline">
@@ -6068,7 +6156,7 @@
60686156 <b data-i18n="Unique to this chat">Unique to this chat</b>.<br>
60696157 <span data-i18n="Checkpoints inherit the Note from their parent, and can be changed individually after that.">Checkpoints inherit the Note from their parent, and can be changed individually after that.</span><br>
60706158 </small>
60716159 <textarea id="extension_floating_prompt" class="text_pole textarea_compact" rows="8" maxlength="50000"></textarea>
60726160 <div class="extension_token_counter">
60736161 <span data-i18n="extension_token_counter">Tokens:</span> <span id="extension_floating_prompt_token_counter">0</span>
60746162 </div>
@@ -6125,7 +6213,7 @@
61256213 <div class="inline-drawer-content">
61266214 <small data-i18n="Will be automatically added as the author's note for this character. Will be used in groups, but can't be modified when a group chat is open.">Will be automatically added as the author's note for this character. Will be used in groups, but
61276215 can't be modified when a group chat is open.</small>
61286216 <textarea id="extension_floating_chara" class="text_pole textarea_compact" rows="8" maxlength="50000" placeholder="Example:&#10;[Scenario: wacky adventures; Genre: romantic comedy; Style: verbose, creative]"></textarea>
61296217 <div class="extension_token_counter">
61306218 <span data-i18n="extension_token_counter">Tokens:</span> <span id="extension_floating_chara_token_counter">0</span>
61316219 </div>
@@ -6157,7 +6245,7 @@
61576245 </div>
61586246 <div class="inline-drawer-content">
61596247 <small data-i18n="Will be automatically added as the Author's Note for all new chats.">Will be automatically added as the Author's Note for all new chats.</small>
61606248 <textarea id="extension_floating_default" class="text_pole textarea_compact" rows="8" maxlength="50000" placeholder="Example:&#10;[Scenario: wacky adventures; Genre: romantic comedy; Style: verbose, creative]"></textarea>
61616249 <div class="extension_token_counter">
61626250 <span data-i18n="extension_token_counter">Tokens:</span> <span id="extension_floating_default_token_counter">0</span>
61636251 </div>
@@ -6414,7 +6502,7 @@
64146502 <div id="leftSendForm" class="alignContentCenter">
64156503 <div id="options_button" class="fa-solid fa-bars interactable"></div>
64166504 </div>
64176505 <textarea id="send_textarea" name="text" class="mdHotkeys" data-i18n="[no_connection_text]Not connected to API!;[connected_text]Type a message, or /? for help" placeholder="Not connected to API!" no_connection_text="Not connected to API!" connected_text="Type a message, or /? for help"></textarea>
64186506 <div id="rightSendForm" class="alignContentCenter">
64196507 <div id="stscript_continue" title="Continue script execution" class="stscript_btn stscript_continue" data-i18n="[title]Continue script execution">
64206508 <i class="fa-solid fa-play"></i>
@@ -6451,11 +6539,11 @@
64516539 <i class="fa-lg fa-solid fa-note-sticky"></i>
64526540 <span data-i18n="Author's Note">Author's Note</span>
64536541 </a>
64546542 <a data-newbie-hidden id="option_toggle_CFG">
64556543 <i class="fa-lg fa-solid fa-scale-balanced"></i>
64566544 <span data-i18n="CFG Scale">CFG Scale</span>
64576545 </a>
64586546 <a data-newbie-hidden id="option_toggle_logprobs">
64596547 <i class="fa-lg fa-solid fa-pie-chart"></i>
64606548 <span data-i18n="Token Probabilities">Token Probabilities</span>
64616549 </a>
@@ -6503,69 +6591,17 @@
65036591 </a>
65046592 </div>
65056593 </div>
6506- <div id="export_format_popup" class="list-group">
6594+
6507- <div class="export_format list-group-item" data-format="png">PNG</div>
6508- <div class="export_format list-group-item" data-format="json">JSON</div>
6509- </div>
6510- <div id="zoomed_avatar_template" class="template_element">
6511- <div class="zoomed_avatar">
6512- <div class="panelControlBar flex-container">
6513- <div class="fa-fw fa-solid fa-grip drag-grabber"></div>
6514- <div class="fa-fw fa-solid fa-circle-xmark dragClose" id="closeZoom"></div>
6515- </div>
6516- <div class="zoomed_avatar_container">
6517- <img class="zoomed_avatar_img" src="" data-izoomify-url="" data-izoomify-magnify="1.8" data-izoomify-duration="300" alt="">
6518- </div>
6519- </div>
6520- </div>
6521- <template id="generic_draggable_template">
6522- <div class="draggable">
6523- <div class="dragTitle"></div>
6524- <div class="panelControlBar flex-container">
6525- <div class="fa-fw fa-solid fa-grip drag-grabber"></div>
6526- <div class="fa-fw fa-solid fa-circle-xmark dragClose"></div>
6527- </div>
6528- </div>
6529- </template>
6530- <div id="user_avatar_template" class="template_element">
6531- <div class="avatar-container">
6532- <div imgfile="" class="avatar">
6533- <img src="" alt="User Avatar">
6534- </div>
6535- <div class="flex-container wide100pLess70px character_select_container">
6536- <div class="wide100p character_name_block">
6537- <span class="ch_name flex1"></span>
6538- <div class="avatar-buttons">
6539- <button class="menu_button bind_user_name" title="Bind user name to that avatar" data-i18n="[title]Bind user name to that avatar">
6540- <i class="fa-fw fa-solid fa-user-edit"></i>
6541- </button>
6542- <button class="menu_button set_persona_image" title="Change persona image" data-i18n="[title]Change persona image">
6543- <i class="fa-fw fa-solid fa-image"></i>
6544- </button>
6545- <button class="menu_button set_default_persona" title="Select this as default persona for the new chats." data-i18n="[title]Select this as default persona for the new chats.">
6546- <i class="fa-fw fa-solid fa-crown"></i>
6547- </button>
6548- <button class="menu_button duplicate_persona" title="Duplicate persona" data-i18n="[title]Duplicate persona">
6549- <i class="fa-fw fa-solid fa-clone"></i>
6550- </button>
6551- <button class="menu_button delete_avatar" title="Delete persona" data-i18n="[title]Delete persona">
6552- <i class="fa-fw fa-solid fa-trash-alt"></i>
6553- </button>
6554- </div>
6555- </div>
6556- <div class="ch_description"></div>
6557- </div>
6558- </div>
6559- </div>
65606595 <!-- Script includes -->
6596+ <script src="lib/polyfill.js"></script>
65616597 <script src="lib/diff_match_patch.js"></script>
6562- <script src="lib/object-hasown.js"></script>
65636598 <script src="lib/jquery-3.5.1.min.js"></script>
65646599 <script src="lib/jquery-ui.min.js"></script>
65656600 <script src="lib/jquery.transit.min.js"></script>
65666601 <script src="lib/jquery-cookie-1.4.1.min.js"></script>
65676602 <script src="lib/jquery.ui.touch-punch.min.js"></script>
65686603 <script src="lib/showdown.min.js"></script>
6604+ <script src="lib/showdown-patch.js"></script>
65696605 <script src="lib/showdown-katex.min.js"></script>
65706606 <script src="lib/popper.js"></script>
65716607 <script src="lib/purify.min.js"></script>
public/lib/object-hasown.js+0 -4
@@ -1,4 +0,0 @@
1-// Polyfill for old Safari versions
2-if (!Object.hasOwn) {
3- Object.hasOwn = function (obj, prop) { return obj.hasOwnProperty(prop); }
4-}
public/lib/polyfill.js+19 -0
@@ -0,0 +1,19 @@
1+// Polyfills for old Safari versions
2+if (!Object.hasOwn) {
3+ Object.hasOwn = function (obj, prop) { return obj.hasOwnProperty(prop); }
4+}
5+
6+if (!Array.prototype.findLastIndex) {
7+ Array.prototype.findLastIndex = function (callback, thisArg) {
8+ for (let i = this.length - 1; i >= 0; i--) {
9+ if (callback.call(thisArg, this[i], i, this)) return i;
10+ }
11+ return -1;
12+ };
13+}
14+
15+if (!Array.prototype.toSorted) {
16+ Array.prototype.toSorted = function (compareFunction) {
17+ return this.slice().sort(compareFunction);
18+ };
19+}
public/lib/showdown-patch.js+24 -0
@@ -0,0 +1,24 @@
1+showdown.subParser('unhashHTMLSpans', function (text, options, globals) {
2+ 'use strict';
3+ text = globals.converter._dispatch('unhashHTMLSpans.before', text, options, globals);
4+
5+ for (var i = 0; i < globals.gHtmlSpans.length; ++i) {
6+ var repText = globals.gHtmlSpans[i],
7+ // limiter to prevent infinite loop (assume 10 as limit for recurse)
8+ limit = 0;
9+
10+ while (/¨C(\d+)C/.test(repText)) {
11+ var num = RegExp.$1;
12+ repText = repText.replace('¨C' + num + 'C', globals.gHtmlSpans[num]);
13+ if (limit === 10000) {
14+ console.error('maximum nesting of 10000 spans reached!!!');
15+ break;
16+ }
17+ ++limit;
18+ }
19+ text = text.replace('¨C' + i + 'C', repText);
20+ }
21+
22+ text = globals.converter._dispatch('unhashHTMLSpans.after', text, options, globals);
23+ return text;
24+});
public/locales/ar-sa.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "عرض الاستجابة لحظيا كما يتم إنشاؤها.",
3333 "context size(tokens)": "حجم الاحرف (بعدد الاحرف او الرموز)",
3434 "unlocked": "مفتوح",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "قم بتمكين هذا فقط إذا كانت نموذجك يدعم مقاطع السياق بأحجام أكبر من 40968192 رمزًا.",
3636 "Max prompt cost:": "أقصى تكلفة فورية:",
3737 "Display the response bit by bit as it is generated.": "عرض الاستجابة بتدريج كما يتم إنشاؤها.",
3838 "When this is off, responses will be displayed all at once when they are complete.": "عند إيقاف هذا الخيار، سيتم عرض الردود جميعها دفعة واحدة عند اكتمالها.",
public/locales/de-de.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "Zeige die Antwort Stück für Stück an, während sie generiert wird.",
3333 "context size(tokens)": "Größe des Zusammenhangs (Tokens)",
3434 "unlocked": "Freigeschaltet",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "Aktiviere dies nur, wenn dein Modell Kontextgrößen von mehr als 40968192 Tokens unterstützt.",
3636 "Max prompt cost:": "Maximale Sofortkosten:",
3737 "Display the response bit by bit as it is generated.": "Zeige die Antwort Stück für Stück, während sie generiert wird.",
3838 "When this is off, responses will be displayed all at once when they are complete.": "Wenn dies ausgeschaltet ist, werden Antworten angezeigt, sobald sie vollständig sind.",
public/locales/es-es.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "Mostrar la respuesta poco a poco según se genera",
3333 "context size(tokens)": "Tamaño de contexto (tokens)",
3434 "unlocked": "Desbloqueado",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "Habilita esto solo si tu modelo admite tamaños de contexto mayores de 40968192 tokens",
3636 "Max prompt cost:": "Costo inmediato máximo:",
3737 "Display the response bit by bit as it is generated.": "Mostrar la respuesta poco a poco a medida que se genera.",
3838 "When this is off, responses will be displayed all at once when they are complete.": "Cuando esto está apagado, las respuestas se mostrarán de una vez cuando estén completas.",
public/locales/fr-fr.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "Afficher la réponse bit par bit au fur et à mesure de sa génération",
3333 "context size(tokens)": "Taille du contexte (en tokens)",
3434 "unlocked": "Déverrouillé",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "Activez cela uniquement si votre modèle prend en charge des tailles de contexte supérieures à 40968192 tokens",
3636 "Max prompt cost:": "Coût rapide maximum :",
3737 "Display the response bit by bit as it is generated.": "Afficher la réponse morceau par morceau au fur et à mesure de sa génération.",
3838 "When this is off, responses will be displayed all at once when they are complete.": "Lorsque cette fonction est désactivée, les réponses s'affichent toutes en une fois lorsqu'elles sont complètes.",
public/locales/is-is.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "Birta svarið bita fyrir bita þegar það er myndað.",
3333 "context size(tokens)": "Stærð samhengis (í táknum eða stöfum)",
3434 "unlocked": "Opinn",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "Virkjið þetta aðeins ef stærð samhengis styður model meira en 40968192 tákn.",
3636 "Max prompt cost:": "Hámarks skyndikostnaður:",
3737 "Display the response bit by bit as it is generated.": "Birta svarid bita fyrir bita þegar það er búið til.",
3838 "When this is off, responses will be displayed all at once when they are complete.": "Þegar þetta er slökkt verða svör birt allt í einu þegar þau eru búin.",
public/locales/it-it.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "Mostra la risposta pezzo per pezzo man mano che viene generata",
3333 "context size(tokens)": "Dimensione del contesto (token)",
3434 "unlocked": "Sbloccato",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "Abilita solo se il tuo modello supporta dimensioni del contesto superiori a 40968192 token",
3636 "Max prompt cost:": "Costo massimo immediato:",
3737 "Display the response bit by bit as it is generated.": "Visualizza la risposta pezzo per pezzo mentre viene generata.",
3838 "When this is off, responses will be displayed all at once when they are complete.": "Quando questo è disattivato, le risposte verranno visualizzate tutte in una volta quando sono complete.",
public/locales/ja-jp.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "生成された応答を逐次表示します。",
3333 "context size(tokens)": "コンテキストのサイズ(トークン数)",
3434 "unlocked": "ロック解除",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "モデルが4096トークンを超えるコンテキストサイズをサポートしている場合にのみ有効にしますモデルが8192トークンを超えるコンテキストサイズをサポートしている場合にのみ有効にします",
3636 "Max prompt cost:": "最大プロンプトコスト:",
3737 "Display the response bit by bit as it is generated.": "生成されるたびに、応答を逐次表示します。",
3838 "When this is off, responses will be displayed all at once when they are complete.": "この機能がオフの場合、応答は完全に生成されたときに一度ですべて表示されます。",
public/locales/ko-kr.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "생성되는대로 응답을 조금씩 표시하십시오",
3333 "context size(tokens)": "컨텍스트 크기 (토큰)",
3434 "unlocked": "잠금 해제됨",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "모델이 40968192 토큰보다 큰 컨텍스트 크기를 지원하는 경우에만 활성화하십시오",
3636 "Max prompt cost:": "최대 프롬프트 비용:",
3737 "Display the response bit by bit as it is generated.": "생성되는 대답을 조금씩 표시합니다.",
3838 "When this is off, responses will be displayed all at once when they are complete.": "이 기능이 꺼져 있으면 대답은 완료되면 한 번에 모두 표시됩니다.",
public/locales/nl-nl.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "Toon de reactie beetje bij beetje zoals deze wordt gegenereerd",
3333 "context size(tokens)": "Contextgrootte (tokens)",
3434 "unlocked": "Ontgrendeld",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "Schakel dit alleen in als uw model contextgroottes ondersteunt groter dan 40968192 tokens",
3636 "Max prompt cost:": "Maximale promptkosten:",
3737 "Display the response bit by bit as it is generated.": "Toon het antwoord stuk voor stuk terwijl het wordt gegenereerd.",
3838 "When this is off, responses will be displayed all at once when they are complete.": "Als dit uit staat, worden reacties in één keer weergegeven wanneer ze compleet zijn.",
public/locales/pt-pt.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "Exibir a resposta pouco a pouco conforme ela é gerada",
3333 "context size(tokens)": "Tamanho do contexto (tokens)",
3434 "unlocked": "Desbloqueado",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "Ative isso apenas se seu modelo suportar tamanhos de contexto maiores que 40968192 tokens",
3636 "Max prompt cost:": "Custo imediato máximo:",
3737 "Display the response bit by bit as it is generated.": "Exibir a resposta bit a bit conforme é gerada.",
3838 "When this is off, responses will be displayed all at once when they are complete.": "Quando isso estiver desligado, as respostas serão exibidas de uma vez quando estiverem completas.",
public/locales/ru-ru.json+55 -8
@@ -43,7 +43,7 @@
4343 "Smoothing Factor": "Коэффициент сглаживания",
4444 "No Repeat Ngram Size": "Размер no_repeat_ngram",
4545 "Min Length": "Мин. длина",
4646 "Alternative server URL (leave empty to use the default value).": "Альтернативный URL альтернативного сервера (оставьте пустым для стандартного значения)",
4747 "Remove your real OAI API Key from the API panel BEFORE typing anything into this box": "Удалите свой личный OAI API Key из панели API, и ТОЛЬКО ПОСЛЕ ЭТОГО вводите что-то сюда",
4848 "We cannot provide support for problems encountered while using an unofficial OpenAI proxy": "Мы не сможем предоставить помощь с проблемами, с которыми вы столкнетесь при использовании неофициальных прокси для OpenAI",
4949 "Context Size (tokens)": "Размер контекста (в токенах)",
@@ -89,7 +89,7 @@
8989 "Text Completion presets": "Пресеты для Text Completion",
9090 "Documentation on sampling parameters": "Документация по параметрам сэмплеров",
9191 "Set all samplers to their neutral/disabled state.": "Установить все сэмплеры в нейтральное/отключенное состояние.",
9292 "Only enable this if your model supports context sizes greater than 40968192 tokens": "Включайте эту опцию, только если ваша модель поддерживает размер контекста более 40968192 токенов.\nУвеличивайте только если вы знаете, что делаете.",
9393 "Wrap in Quotes": "Заключать в кавычки",
9494 "Wrap entire user message in quotes before sending.": "Перед отправкой заключать всё сообщение пользователя в кавычки.",
9595 "Leave off if you use quotes manually for speech.": "Оставьте выключенным, если вручную выставляете кавычки для прямой речи.",
@@ -186,7 +186,7 @@
186186 "Generate only one line per request": "Генерировать одну строку на запрос",
187187 "Misc. Settings": "Доп. настройки",
188188 "Auto-Continue": "Авто-продолжение",
189189 "Collapse Consecutive Newlines": "Сворачивать последовательныенеск. новыеновых строкистрок в одну",
190190 "Allow for Chat Completion APIs": "Разрешить для Chat Completion API",
191191 "Target length (tokens)": "Целевая длина (в токенах)",
192192 "World Info": "Информация о мире",
@@ -373,7 +373,7 @@
373373 "Prefer Character Card Prompt": "Приоритет промпту из карточки персонажа",
374374 "Prefer Character Card Jailbreak": "Приоритет джейлбрейку из карточки персонажа",
375375 "Press Send to continue": "Кнопка отправки продолжает сообщение",
376376 "Quick 'Continue' button": "Кнопка быстрогоБыстрое продолженияпродолжение",
377377 "Log prompts to console": "Выводить промпты в консоль",
378378 "Never resize avatars": "Не менять размер аватарок",
379379 "Show avatar filenames": "Показывать названия файлов аватарок",
@@ -495,7 +495,7 @@
495495 "(Write a comma-separated list of tags)": "(Список тегов через запятую)",
496496 "(A brief description of the personality)": "(Краткое описание личности)",
497497 "(Circumstances and context of the interaction)": "(Обстоятельства и контекст этого диалога)",
498498 "(Examples of chat dialog. Begin each example with START on a new line.)": "(Примеры диалога. Начинайте каждый пример с START или новой линиейстрокой.)",
499499 "Type here...": "Пишите здесь...",
500500 "Comma separated (required)": "Через запятую (обязательное поле)",
501501 "What this keyword should mean to the AI, sent verbatim": "Что это ключевое слово должно означать для ИИ, отправляется дословно",
@@ -552,7 +552,7 @@
552552 "Click to set a new User Name": "Нажмите, чтобы задать новое имя пользователя.",
553553 "Click to lock your selected persona to the current chat. Click again to remove the lock.": "Нажмите, чтобы закрепить выбранную персону для текущего чата. Нажмите еще раз, чтобы открепить.",
554554 "Click to set user name for all messages": "Нажмите, чтобы задать имя пользователя для всех сообщений.",
555555 "Create a dummy persona": "Создать пустую персону-болванку",
556556 "Character Management": "Управление персонажами",
557557 "Locked = Character Management panel will stay open": "Закреплено = Панель управление персонажами останется открытой",
558558 "Select/Create Characters": "Выбрать/Создать персонажа",
@@ -625,7 +625,7 @@
625625 "Automatically select a background based on the chat context": "Автоматический выбор фона в зависимости от контекста чата",
626626 "Filter": "Фильтр",
627627 "Exclude message from prompts": "Исключить сообщение из промпта",
628628 "Include message in prompts": "Включить сообщение в подсказкипромпт",
629629 "Create checkpoint": "Создать чекпоинт",
630630 "Create Branch": "Создать ветку",
631631 "Embed file or image": "Вставить файл или изображение",
@@ -1661,5 +1661,52 @@
16611661 "ext_regex_ai_output_desc": "Сообщения, полученные от API",
16621662 "ext_regex_sts_desc": "Сообщения, отправленные с помощью команд STscript",
16631663 "ext_regex_wi_desc": "Содержимое лорбуков и миров. Для работы требует включения флажка \"Только промпт\"!",
16641664 "ext_regex_only_format_display_desc": "История чата не изменится, замена будет осуществляться только в отображаемом сообщении (в UI)",
1665+ "Prefer Character Card Instructions": "Приоритет инструкциям из карточек",
1666+ "If checked and the character card contains a Post-History Instructions override, use that instead": "Если в карточке персонажа имеется собственная инструкция после истории, в промпт попадёт именно она",
1667+ "Auto-select Input Text": "Автовыделение вводимого текста",
1668+ "Enable auto-select of input text in some text fields when clicking/selecting them. Applies to popup input textboxes, and possible other custom input fields.": "Автоматически выделять вводимый текст в некоторых текстовых полях при клике/выборе. Работает для вспл. окон и различных кастомных полей ввода.",
1669+ "Reset MovingUI panel sizes/locations.": "Сбросить расположение и размеры панелей MovingUI.",
1670+ "mui_reset": "Сброс",
1671+ "Quick 'Impersonate' button": "Быстрое перевоплощение",
1672+ "Show a button in the input area to ask the AI to impersonate your character for a single message": "Показать в поле ввода кнопку, по нажатии на которую ИИ сгенерирует одно сообщение от лица вашего персонажа.",
1673+ "Separators as Stop Strings": "Разделители как стоп-строки",
1674+ "Names as Stop Strings": "Имена как стоп-строки",
1675+ "Add Character and User names to a list of stopping strings.": "Добавлять имена персонажа и пользователя в список стоп-строк.",
1676+ "Allow Post-History Instructions": "Разрешить инструкции после истории",
1677+ "context_allow_post_history_instructions": "Добавлять в конец промпта инструкции после истории. Работает только при наличии таких инструкций в карточке И при включенной опции ''Приоритет инструкциям из карточек''.\nНЕ РЕКОМЕНДУЕТСЯ ДЛЯ МОДЕЛЕЙ TEXT COMPLETION, МОЖЕТ ПОРТИТЬ ВЫХОДНОЙ ТЕКСТ.",
1678+ "First User Prefix": "Первый префикс пользователя",
1679+ "Inserted before the first User's message.": "Вставляется перед первым сообщением пользователя.",
1680+ "Last User Prefix": "Последний префикс пользователя",
1681+ "instruct_last_input_sequence": "Вставляется перед последним сообщением пользователя.",
1682+ "Inserted before a User message and as a last prompt line when impersonating.": "Вставляется перед сообщением пользователя в качестве последней строки промпта при перевоплощении.",
1683+ "Inserted before a System (added by slash commands or extensions) message.": "Вставляется перед сообщением системы (может быть добавлено слэш-командой или расширением).",
1684+ "Load Asset List": "Загрузить список ресурсов",
1685+ "Never add character names.": "Не вставлять имя персонажа.",
1686+ "Don't add character names unless necessary.": "Вставлять имя персонажа только когда это необходимо.",
1687+ "character_names_none": "Не добавлять имена персонажей в качестве префикса. Может повредить качеству ответов в групповых чатах, используйте с осторожностью.",
1688+ "Auxiliary": "Вспомогательный",
1689+ "Post-History Instructions": "Инструкции после истории",
1690+ "Current persona updated": "Текущая персона изменена",
1691+ "Your messages will now be sent as ${0}": "Ваши сообщения будут отправляться от лица ${0}",
1692+ "Copied!": "Скопировано!",
1693+ "Are you sure you want to delete this message?": "Вы точно хотите удалить это сообщение?",
1694+ "Delete Message": "Удалить сообщение",
1695+ "Delete Swipe": "Удалить свайп",
1696+ "Could not get a reply from API. Check your connection settings / API key and try again.": "Не удалось получить ответ от API. Проверьте настройки соединения и API-ключ и повторите попытку.",
1697+ "Connecting To Proxy": "Подключение к прокси",
1698+ "Are you sure you want to connect to the following proxy URL?": "Вы точно хотите соединиться с прокси по этому адресу?",
1699+ "API connection successful!": "Соединение с API установлено!",
1700+ "Proxy Saved": "Прокси сохранена",
1701+ "Proxy Deleted": "Прокси удалена",
1702+ "Could not find proxy with name '${0}'": "Не удалось найти прокси с названием '${0}'",
1703+ "Proxy preset '${0}' not found in proxies array.": "Пресет с названием '${0}' не найден в списке прокси.",
1704+ "Please wait for the previous request to complete.": "Пожалуйста, дождитесь окончания обработки предыдущего запроса.",
1705+ "Start new chat?": "Начать новый чат?",
1706+ "If necessary, you can later restore this chat file from the /backups folder": "При необходимости этот чат можно будет восстановить из папки /backups",
1707+ "Also delete the current chat file": "Также удалить текущий чат",
1708+ "chat_rename_1": "Введите новое имя чата:",
1709+ "chat_rename_2": "!!Не используйте имя уже существующего файла, это приведёт к ошибке!!",
1710+ "chat_rename_3": "Будут разрушены связи между чатами-чекпоинтами.",
1711+ "chat_rename_4": "Расширение '.jsonl' дописывать не нужно."
16651712}
public/locales/uk-ua.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "Поступово відображати відповідь по мірі її створення",
3333 "context size(tokens)": "Контекст (токени)",
3434 "unlocked": "Розблоковано",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "Увімкніть це лише в разі підтримки моделлю розмірів контексту більше 40968192 токенів",
3636 "Max prompt cost:": "Максимальна оперативна вартість:",
3737 "Display the response bit by bit as it is generated.": "Показувати відповідь по бітах по мірі її генерації.",
3838 "When this is off, responses will be displayed all at once when they are complete.": "Коли це вимкнено, відповіді будуть відображатися разом, коли вони будуть завершені.",
public/locales/vi-vn.json+415 -415
@@ -1,132 +1,132 @@
11{
22 "Favorite": "Yêu thích",
33 "Tag": "NhãnTừ khóa",
44 "Duplicate": "Nhân bảnđôi",
55 "Persona": "nhânNhân cách",
66 "Delete": "Xóa",
77 "AI Response Configuration": "Cấu hìnhSetting Phản hồi của AI",
88 "AI Configuration panel will stay open": "Bảng cấu hìnhSetting AI sẽ luôn được mở",
99 "clickslidertips": "Nhấp vào thanh trượt để nhập giá trị bằng tay.",
1010 "MAD LAB MODE ON": "CHẾ ĐỘ PHÒNG THÍ NGHIỆM ĐIÊN RỒ ĐANG BẬT",
1111 "Documentation on sampling parameters": "Tài liệu về các tham số lấy mẫu",
1212 "kobldpresets": "Cài đặt trước Kobold",
1313 "guikoboldaisettings": "Cài đặt giao diện KoboldAI",
1414 "Update current preset": "Cập nhật thiết lập hiện tại",
1515 "Save preset as": "Lưu cài đặt trước dưới dạng",
1616 "Import preset": "Nhập thiết lậppreset",
1717 "Export preset": "Xuất thiết lậppreset",
1818 "Restore current preset": "Khôi phục cài đặt hiện tại",
1919 "Delete the preset": "Xóa thiết lậppreset",
2020 "novelaipresets": "Cài đặt trước NovelAI presets",
2121 "Default": "Mặc định",
2222 "openaipresets": "Cài đặt trước OpenAI presets",
2323 "Text Completion presets": "Cài đặt hoànPreset thiệncho vănText bảnCompletion",
2424 "AI Module": "Mô-đun Trí tuệ Nhân tạoAI",
2525 "Changes the style of the generated text.": "Thay đổi kiểu của văn bản được tạo ra.",
2626 "No Module": "Không có mô-đun",
2727 "Instruct": "DạyInstruct",
2828 "Prose Augmenter": "Trình tăngGia cườngtố văn xuôi",
2929 "Text Adventure": "Cuộc phiêuPhiêu lưu văn bản",
3030 "response legth(tokens)": "Độ dài của văn phản hồi (trong các token)",
3131 "Streaming": "Phát trực tuyếntiếp",
3232 "Streaming_desc": "Hiển thị văn phản hồi kí tự từng chút một khi nó được tạo ra.",
3333 "context size(tokens)": "Kích thước ngữcỡ cảnhContext (trong các token)",
3434 "unlocked": "Đã mở",
3535 "Only enable this if your model supports context sizes greater than 4096 tokens": "Chỉ bật tính năng này nếu AI hìnhmodel của bạn hỗ trợ kích thước ngữContext cảnhsize lớn hơn 4096 token.",
3636 "Max prompt cost:": "Chi phí nhanhcho chóngprompt tối đa:",
3737 "Display the response bit by bit as it is generated.": "Hiển thị phản hồi từngtừ phầntừ khi nó được tạo ra.",
3838 "When this is off, responses will be displayed all at once when they are complete.": "Khi chứctắt tính năng này tắt, các phản hồi sẽ được hiển thị mộtcùng lầnlúc khi chúng hoàn thành.",
3939 "Temperature": "Nhiệt độĐộ (Temperature)",
4040 "rep.pen": "Trừ phạt tái phátrep.pen",
4141 "Rep. Pen. Range.": "Phạm vi PhạtRep. lặpPen. lạiRange.",
4242 "Rep. Pen. Slope": "Góc Khuếch đạiRep. BútPen. phạtSlope",
4343 "Rep. Pen. Freq.": "Tần suất PhạtRep. lặpPen. lạiFreq.",
4444 "Rep. Pen. Presence": "Sự hiện diện PhạtRep. lặpPen. lạiPresence",
4545 "TFS": "TFS",
4646 "Phrase Repetition Penalty": "Phạt Lặp LạiPhrase CụmRepetition từPenalty",
4747 "Off": "Tắt",
4848 "Very light": "Rất nhẹ",
4949 "Light": "Nhẹ",
5050 "Medium": "Trung bình",
5151 "Aggressive": "Quyết đoán",
5252 "Very aggressive": "Rất quyết đoán",
5353 "Unlocked Context Size": "Kích thước ngữ cảnhcontext đã mở khóa",
5454 "Unrestricted maximum value for the context slider": "Giá trị tối đa không giới hạn cho thanh trượt ngữ cảnhcontext",
5555 "Context Size (tokens)": "Kích thước Ngữ cảnhcontext (token)",
5656 "Max Response Length (tokens)": "Độ dài Tối đaphản củahồi Phảntối hồiđa (token)",
5757 "Multiple swipes per generation": "NhiềuVuốt nhiều lần vuốttrong mỗimột thếlần hệtạo",
5858 "Enable OpenAI completion streaming": "Bật luồng hoàn thànhstreaming của OpenAI",
5959 "Enable Cohere web-search connector": "Bật trình kết nốiweb tìm kiếm webcủa Cohere",
6060 "Web-search": "Tìm kiếm trên web",
6161 "Allow the model to use the web-search connector.": "Cho phép mô hìnhmodel sử dụng trình kết nối tìm kiếm trên web.",
6262 "Frequency Penalty": "Phạt TầnFrequency sốPenalty",
6363 "Presence Penalty": "Phạt SựPresence hiệnPenalty",
6464 "Count Penalty": "Tính hìnhCount phạtPenalty",
6565 "Top K": "Top K",
6666 "Top P": "Top P",
6767 "Repetition Penalty": "Phạt lặpRepetition lạiPenalty",
6868 "Min P": "tối thiểuMin P",
6969 "Top A": "Top A",
7070 "Quick Prompts Edit": "Chỉnh sửa nhanh lời mờiprompt",
7171 "Main": "Chính",
7272 "NSFW": "NSFW",
7373 "Jailbreak": "Phá vỡBẻ giamkhóa giữ(Jailbreak)",
7474 "Utility Prompts": "LờiTiện mờiích tiệncho íchprompt",
7575 "Impersonation prompt": "LờiGiả nhắcdanh Giảvăn mạothoại",
7676 "Restore default prompt": "Khôi phục lờilại nhắcprompt mặc định",
7777 "Prompt that is used for Impersonation function": "Lời nhắcPrompt được sử dụng cho chứctính năng Giả mạodanh",
7878 "World Info Format Template": "Mẫu định dạng Thông tincho thếWorld giớiInfo",
7979 "Restore default format": "Khôi phục định dạng mặc định",
8080 "Wraps activated World Info entries before inserting into the prompt.": "Bao bọc các mục Thông tin thếWorld giớiInfo đã kích hoạt trước khi chèn vào lời nhắcPrompt.",
8181 "scenario_format_template_part_1": "Sử dụng",
8282 "scenario_format_template_part_2": "để đánh dấu nơi chèn nội dung.",
8383 "Scenario Format Template": "Mẫu định dạng kịch bản",
8484 "Personality Format Template": "Mẫu cho định dạng Nhân tínhcách",
8585 "Group Nudge Prompt Template": "Mẫu lờicho nhắcPrompt của Nhóm",
8686 "Sent at the end of the group chat history to force reply from a specific character.": "Được gửichèn vào cuối lịch sử trò chuyện nhóm để buộc một nhân vật cụ thể phải trả lờiđáp.",
8787 "New Chat": "Cuộc trò truyện mới",
8888 "Restore new chat prompt": "Khôi phục lờiPrompt nhắccho trò chuyện mới",
8989 "Set at the beginning of the chat history to indicate that a new chat is about to start.": "ĐặtĐược đặt ở đầu lịch sử trò chuyện để cho biết một cuộc trò chuyện mới sắp bắt đầu.",
9090 "New Group Chat": "Trò chuyện nhóm mới",
9191 "Restore new group chat prompt": "Khôi phục lời nhắcPrompt mặc định",
9292 "Set at the beginning of the chat history to indicate that a new group chat is about to start.": "Đặt ở đầu lịch sử trò chuyện để cho biết cuộc trò chuyện nhóm mới sắp bắt đầu.",
9393 "New Example Chat": "TròMẫu chuyệntrò mẫuchuyện mới",
9494 "Set at the beginning of Dialogue examples to indicate that a new example chat is about to start.": "Đặt ở đầu Ví dụ hội thoại để cho biết rằng một cuộc trò chuyện mẫu mới sắp bắt đầu.",
9595 "Continue nudge": "Tiếp tục dithúc chuyểngiục",
9696 "Set at the end of the chat history when the continue button is pressed.": "Đặt ở cuối lịch sử trò chuyện khi nhấn nút tiếp tục.",
9797 "Replace empty message": "Thay thế tinvăn nhắnbản trống",
9898 "Send this text instead of nothing when the text box is empty.": "Gửi văn bản này thay vì không gì khi ô văn bản đang bị trống.",
9999 "Seed": "Hạt giống (Seed)",
100100 "Set to get deterministic results. Use -1 for random seed.": "Đặt để có được kết quả xác định. Sử dụng -1 cho hạt giống (seed) ngẫu nhiên.",
101101 "Temperature controls the randomness in token selection": "Nhiệt độ (Temp) điều chỉnh sự ngẫu nhiên trong việc chọn token:\n- Nhiệt độ thấp (<1.0) dẫn đến văn bản dự đoán hơn, với ưu tiên cho các token có xác suất cao.\n- Nhiệt độ cao (>1.0) tăng tính sáng tạo và đa dạng của đầu ra, với nhiều cơ hội cho các token có xác suất thấp hơn.\nThiết lập giá trị 1.0 cho xác suất gốc.",
102102 "Top_K_desc": "Top K đặt một giá trị tối đa cho số lượng token hàng đầu có thể được chọn từ đó.",
103103 "Top_P_desc": "Top P (còn được gọi là mẫu hạt nhân) kết hợp tất cả các token hàng đầu cần thiết để đạt được một phần trăm nhất định.\nNói cách khác, nếu các token hàng đầu 2 đại diện cho 25%, và Top-P bằng 0.50, chỉ có hai token hàng đầu này được xem xét.\nThiết lập giá trị 1.0 để vô hiệu hóa.",
104104 "Typical P": "P điểnTypical hìnhP",
105105 "Typical_P_desc": "Mẫu P điển hình ưu tiên các token dựa trên sự sai lệch của chúng so với năng lượng cân bằng trung bình của tập hợp.\nCác token có xác suất tích lũy gần với ngưỡng được chỉ định (ví dụ: 0.5) được giữ lại, phân biệt chúng khỏi những token có thông tin trung bình.\nThiết lập giá trị 1.0 để vô hiệu hóa.",
106106 "Min_P_desc": "Min P đặt một xác suất tối thiểu cơ bản. Nó được tinh chỉnh dựa trên xác suất token hàng đầu.\nNếu xác suất của token hàng đầu là 80%, và Min P là 0.1, chỉ có token với xác suất cao hơn 8% được xem xét.\nThiết lập giá trị 0 để vô hiệu hóa.",
107107 "Top_A_desc": "Top A đặt một ngưỡng cho việc chọn token dựa trên bình phương của xác suất token cao nhất.\nNếu Top A là 0.2, và xác suất của token hàng đầu là 50%, các token có xác suất dưới 5% sẽ bị loại bỏ (0.2 * 0.5^2).\nThiết lập giá trị 0 để vô hiệu hóa.",
108108 "Tail_Free_Sampling_desc": "Mẫu không đuôi (TFS) tìm kiếm đuôi của token với xác suất nhỏ trong phân phối,\n thông qua phân tích tốc độ thay đổi xác suất token bằng cách sử dụng đạo hàm. Các token được giữ lại đến ngưỡng (ví dụ: 0.3), dựa trên đạo hàm hai lần thống nhất.\nMỗi khi tiến về 0, số lượng token bị loại bỏ tăng lên. Thiết lập giá trị 1.0 để vô hiệu hóa.",
109109 "rep.pen range": "Phạm vi trừ phạt tái phát",
110110 "Mirostat": "Máy điều hòa nhiệt độMirostat",
111111 "Mode": "Cách thứcMode",
112112 "Mirostat_Mode_desc": "Giá trị 0 sẽ vô hiệu hóa hoàn toàn Mirostat. 1 dành cho Mirostat 1.0 và 2 dành cho Mirostat 2.0",
113113 "Tau": "TàuTau",
114114 "Mirostat_Tau_desc": "Kiểm soát sự thay đổi của đầu ra Mirostat",
115115 "Eta": "eta",
116116 "Mirostat_Eta_desc": "Kiểm soát tốc độ học tập của Mirostat",
117117 "Ban EOS Token": "Cấm EOS Token",
118118 "Ban_EOS_Token_desc": "Cấm mã thông báo Cuối chuỗi (EOS) với KoboldCpp (và có thể cả các mã thông báo khác có KoboldAI).\rTốt cho việc viết truyện, nhưng không nên dùng cho chế độ trò chuyện và hướng dẫn.",
119119 "GBNF Grammar": "Ngữ pháp GBNF Grammar",
120120 "Type in the desired custom grammar": "Nhập vào cú pháp tùy chỉnh mong muốn",
121121 "Samplers Order": "Thứ tự Bộ lấy mẫu",
122122 "Samplers will be applied in a top-down order. Use with caution.": "Các bộ lấy mẫu sẽ được áp dụng theo thứ tự từ trên xuống. Sử dụng cẩn thận.",
123123 "Tail Free Sampling": "Mẫu Không đuôi",
124124 "Load koboldcpp order": "Tải đơn hàng koboldcpp",
125125 "Preamble": "Lời giới thiệuPreamble",
126126 "Use style tags to modify the writing style of the output.": "Sử dụng thẻ kiểutags để sửa đổi kiểu viết của đầu ra.",
127127 "Banned Tokens": "Các Tokentoken Bị Cấmban",
128128 "Sequences you don't want to appear in the output. One per line.": "Các chuỗi bạn không muốn xuất hiện trong kết quả. Một dòng mỗi chuỗi.",
129129 "Logit Bias": "Sự thiên vị Logit Bias",
130130 "Add": "Thêm",
131131 "Helps to ban or reenforce the usage of certain words": "Giúp cấm hoặc củng cố việc sử dụng một số từ",
132132 "CFG Scale": "Tỷ lệ CFG",
@@ -134,8 +134,8 @@
134134 "Add text here that would make the AI generate things you don't want in your outputs.": "Thêm văn bản ở đây sẽ khiến trí tuệ nhân tạo tạo ra những điều bạn không muốn trong đầu ra của mình.",
135135 "Used if CFG Scale is unset globally, per chat or character": "Sử dụng nếu CFG Scale không được thiết lập toàn cầu, mỗi cuộc trò chuyện hoặc mỗi ký tự.",
136136 "Mirostat Tau": "Mirostat Tau",
137137 "Mirostat LR": "Máy điều hòaMirostat LR",
138138 "Min Length": "Độ dài tốiMin thiểuLength",
139139 "Top K Sampling": "Mẫu Top K",
140140 "Nucleus Sampling": "Mẫu hạt nhân",
141141 "Top A Sampling": "Mẫu Top A",
@@ -162,218 +162,218 @@
162162 "DRY_Multiplier_desc": "Đặt thành giá trị > 0 để bật DRY. Kiểm soát mức độ hình phạt đối với các chuỗi hình phạt ngắn nhất.",
163163 "Multiplier": "Số nhân",
164164 "DRY_Base_desc": "Kiểm soát tốc độ tăng của hình phạt khi tăng độ dài chuỗi.",
165165 "Base": "Căn cứBase",
166166 "DRY_Allowed_Length_desc": "Trình tự dài nhất có thể được lặp lại mà không bị phạt.",
167167 "Allowed Length": "Độ dài choAllowed phépLength",
168168 "Penalty Range": "Phạm vi phạtPenalty đềnRange",
169169 "DRY_Sequence_Breakers_desc": "Các mã thông báo mà việc khớp trình tự không được tiếp tục. Được chỉ định dưới dạng danh sách các chuỗi được trích dẫn được phân tách bằng dấu phẩy.",
170170 "Sequence Breakers": "Bộ ngắt trình tự",
171171 "JSON-serialized array of strings.": "Mảng chuỗi được tuần tự hóa JSON.",
172172 "Dynamic Temperature": "Nhiệt độDynamic độngTemperature",
173173 "Scale Temperature dynamically per token, based on the variation of probabilities": "Nhiệt độ tỷ lệ động cho mỗi token, dựa trên sự biến đổi của xác suất.",
174174 "Minimum Temp": "Nhiệt độ Tối thiểu",
175175 "Maximum Temp": "Nhiệt độ Tối đa",
176176 "Exponent": "Số mũExponent",
177177 "Mirostat (mode=1 is only for llama.cpp)": "Mirostat (chế độ=1 chỉ dành cho llama.cpp)",
178178 "Mirostat_desc": "Mirostat là một bộ điều chỉnh nhiệt cho sự phức tạp của đầu ra.",
179179 "Mirostat Mode": "Chế độ Mirostat",
180180 "Variability parameter for Mirostat outputs": "Tham số biến đổi cho đầu ra của Mirostat.",
181181 "Mirostat Eta": "Mirostat Eta",
182182 "Learning rate of Mirostat": "Tốc độLearning họcrate củaof Mirostat.",
183183 "Beam search": "Tìm kiếm Beam search",
184184 "Helpful tip coming soon.": "Lời khuyên hữu ích sắp ra mắt.",
185185 "Number of Beams": "Số Lượng Beam",
186186 "Length Penalty": "Phạt ĐộLength dàiPenalty",
187187 "Early Stopping": "Dừng Sớm",
188188 "Contrastive search": "Tìm kiếm TráiContrastive ngượcsearch",
189189 "Penalty Alpha": "AlphaPenalty PhạtAlpha",
190190 "Strength of the Contrastive Search regularization term. Set to 0 to disable CS": "Độ mạnh của thuật ngữ điều chỉnh Tìm kiếm Trái ngược. Đặt thành 0 để vô hiệu hóa CS.",
191191 "Do Sample": "Lấy mẫuSample",
192192 "Add BOS Token": "Thêm BOS Token",
193193 "Add the bos_token to the beginning of prompts. Disabling this can make the replies more creative": "Thêm bos_token vào đầu câu hỏi. Vô hiệu hóa điều này có thể làm cho các câu trả lời sáng tạo hơn",
194194 "Ban the eos_token. This forces the model to never end the generation prematurely": "Cấm eos_token. Điều này buộc mô hình không bao giờ kết thúc quá trình sinh ra trước khi cần thiết",
195195 "Ignore EOS Token": "Bỏ qua mã thông báo EOS",
196196 "Ignore the EOS Token even if it generates.": "Bỏ qua EOS Token ngay cả khi nó được tạo ra.",
197197 "Skip Special Tokens": "Bỏ qua Các Token Đặc biệt",
198198 "Temperature Last": "Nhiệt độ CuốiTemperature cùngLast",
199199 "Temperature_Last_desc": "Sử dụng bộ lấy mẫu nhiệt độTemperature cuối cùng. Thường là hợp lý.\nKhi bật: Một nhóm các token tiềm năng được chọn trước tiên, sau đó nhiệt độ được áp dụng để hiệu chỉnh xác suất tương đối của chúng (kỹ thuật, logits).\nKhi vô hiệu hóa: Nhiệt độ được áp dụng trước tiên để hiệu chỉnh xác suất tương đối của từng token, sau đó một nhóm các token tiềm năng được chọn từ đó.\nVô hiệu hóa nhiệt độ cuối cùng.",
200200 "Speculative Ngram": "Ngram đầuSpeculative Ngram",
201201 "Use a different speculative decoding method without a draft model": "Sử dụng phương pháp giải mã suy đoán khác mà không cần mô hình phác thảo.\rƯu tiên sử dụng mô hình dự thảo. Ngram đầu cơ không hiệu quả bằng.",
202202 "Spaces Between Special Tokens": "Khoảng cách giữa các mã thông báo đặc biệt",
203203 "LLaMA / Mistral / Yi models only": "Chỉ áp dụng cho các mô hình LLaMA / Mistral / Yi. Hãy chắc chắn chọn bộ phân tích đúng trước.\nChuỗi phải không xuất hiện trong kết quả.\nMỗi dòng chỉ một chuỗi. Văn bản hoặc [nhận diện của token].\nNhiều token bắt đầu bằng dấu cách. Sử dụng bộ đếm token nếu bạn không chắc chắn.",
204204 "Example: some text [42, 69, 1337]": "Ví dụ:\nmột số văn bản\n[42, 69, 1337]",
205205 "Classifier Free Guidance. More helpful tip coming soon": "Hướng dẫn không cần Bộ phân loại. Mẹo hữu ích hơn sẽ được cập nhật sớm.",
206206 "Scale": "Tỷ lệ",
207207 "JSON Schema": "Lược đồ JSON Schema",
208208 "Type in the desired JSON schema": "Nhập lược đồ JSON schema mong muốn",
209209 "Grammar String": "Chuỗi ngữ pháp",
210210 "GBNF or EBNF, depends on the backend in use. If you're using this you should know which.": "GBNF hoặc EBNF, tùy thuộc vào backend đang sử dụng. Nếu bạn đang sử dụng cái này, bạn nên biết cái nào.",
211211 "Top P & Min P": "P &Top P tối thiểu& hàngMin đầuP",
212212 "Load default order": "Tải thứ tự mặc định",
213213 "llama.cpp only. Determines the order of samplers. If Mirostat mode is not 0, sampler order is ignored.": "chỉ llama.cpp. Xác định thứ tự lấy mẫu. Nếu chế độ Mirostat khác 0, thứ tự lấy mẫu sẽ bị bỏ qua.",
214214 "Sampler Priority": "Ưu tiên Mẫusampler",
215215 "Ooba only. Determines the order of samplers.": "Chỉ Ooba. Xác định thứ tự của các mẫusamplers.",
216216 "Character Names Behavior": "TênCài nhânđặt vậttên Hànhnhân vivật",
217217 "Helps the model to associate messages with characters.": "Giúp mô hình liên kết tin nhắn với các ký tự.",
218218 "None": "Không",
219219 "character_names_default": "Ngoại trừ các nhóm và cá tính trong quá khứ. Nếu không, hãy đảm bảo bạn cung cấp tên trong lời nhắcPrompt.",
220220 "Don't add character names.": "Không thêm tên nhân vật.",
221221 "Completion": "Đối tượng hoànHoàn thành",
222222 "character_names_completion": "Áp dụng hạn chế: chỉ chữ và số Latinh và dấu gạch dưới. Không hoạt động với tất cả các nguồn, đặc biệt là: Claude, MistralAI, Google.",
223223 "Add character names to completion objects.": "Thêm tên nhân vật vào các đối tượng hoàncompletion thànhobjects.",
224224 "Message Content": "Nội dung tin nhắn",
225225 "Prepend character names to message contents.": "Thêm tên ký tự vào nội dung tin nhắn.",
226226 "Continue Postfix": "Tiếp tục hậu tốPrefix",
227227 "The next chunk of the continued message will be appended using this as a separator.": "Đoạn tiếp theo của tin nhắn tiếp theo sẽ được thêm vào bằng cách sử dụng đoạn này làm dấu phân cách.",
228228 "Space": "Không gian",
229229 "Newline": "Dòng mới",
230230 "Double Newline": "Dòng mới đôikép",
231231 "Wrap user messages in quotes before sending": "Bao góiCho tin nhắn của người dùng trong dấu ngoặc kép trước khi gửi",
232232 "Wrap in Quotes": "BọcCho vào trong dấu ngoặc",
233233 "Wrap entire user message in quotes before sending.": "BọcCho toàn bộ tin nhắn của người dùng trong dấu ngoặc kép trước khi gửi.",
234234 "Leave off if you use quotes manually for speech.": "Bỏ điqua nếu bạn sử dụng dấu ngoặc bằng taykép cho phầnlời nói.",
235235 "Continue prefill": "Tiếp tục điền trướcPrefill",
236236 "Continue sends the last message as assistant role instead of system message with instruction.": "Tiếp tục gửi tin nhắn cuối cùng dưới dạng vai trò trợ lýAssistant thay vì tin nhắnPrompt hệ thống với hướng dẫnInstruction.",
237237 "Squash system messages": "Nén các tin nhắn văn bản hệ thống",
238238 "Combines consecutive system messages into one (excluding example dialogues). May improve coherence for some models.": "Kết hợp các tin nhắn hệ thống liên tiếp thành một (loại bỏ các đoạn hội thoại mẫu). Có thể cải thiện tính nhất quán cho một số mô hìnhmodel.",
239239 "Enable function calling": "KíchSử hoạtdụng tính năng gọi hàm (function calling)",
240240 "Send inline images": "Gửi hình ảnh nội bộ",
241241 "image_inlining_hint_1": "Gửi hình ảnh theo lời nhắcPrompt nếu kiểu máy hỗ trợ (ví dụ: GPT-4V, Claude 3 hoặc Llava 13B).\n Sử dụng",
242242 "image_inlining_hint_2": "hành động đối với bất kỳ tin nhắn nào hoặc",
243243 "image_inlining_hint_3": "menu để đính kèm tệp hình ảnh vào cuộc trò chuyện.",
244244 "Inline Image Quality": "Chất lượng hình ảnh nội tuyến",
245245 "openai_inline_image_quality_auto": "Tự động",
246246 "openai_inline_image_quality_low": "Thấp",
247247 "openai_inline_image_quality_high": "Cao",
248248 "Use AI21 Tokenizer": "Sử dụngbộ Tokenizer thông(bộ báotách từ) của AI21",
249249 "Use the appropriate tokenizer for Jurassic models, which is more efficient than GPT's.": "Sử dụng bộ thôngtách báotừ thích hợp cho các mô hìnhModel kỷcủa JuraJurassic, hiệu quả hơn GPT.",
250250 "Use Google Tokenizer": "Sử dụng bộ mã hóaTokenizer của Google",
251251 "Use the appropriate tokenizer for Google models via their API. Slower prompt processing, but offers much more accurate token counting.": "Sử dụng bộ tách hóatừ phù hợp cho các mô hìnhmodel của Google thông qua API của họ. Xử lý lời mờiprompt chậm hơn, nhưng cung cấp đếm token chính xác hơn nhiều.",
252252 "Use system prompt": "Sử dụng lời nhắcPrompt hệ thống",
253253 "(Gemini 1.5 Pro/Flash only)": "(Chỉ cho Gemini 1.5 Pro/Flash)",
254254 "Merges_all_system_messages_desc_1": "Hợp nhất tất cả các tin nhắn văn bản hệ thống cho đến tin nhắn đầu tiên có vai trò không thuộc hệ thống và gửi chúng theo cách",
255255 "Merges_all_system_messages_desc_2": "cánh đồng.",
256256 "Assistant Prefill": "Điền trước củaPrefill trợ lý",
257257 "Start Claude's answer with...": "Bắt đầu câuClaude trả lời củabắt Claudeđầu vớibằng...",
258258 "Assistant Impersonation Prefill": "ĐiềnPrefill trướccho mạo danh trợ lý",
259259 "Use system prompt (Claude 2.1+ only)": "Sử dụng lời mờiprompt hệ thống (Chỉ áp dụng chotừ Claude 2.1+)",
260260 "Send the system prompt for supported models. If disabled, the user message is added to the beginning of the prompt.": "Gửi lờiyêu mờicầu hệ thống cho các mô hìnhmodel được hỗ trợ. Nếu tắtbị vô hiệu hóa, tin nhắn của người dùng sẽ được thêm vào đầu lờiyêu mờicầu.",
261261 "User first message": "Tin nhắn đầu tiên của người dùng",
262262 "Restore User first message": "Khôi phục tin nhắn đầu tiên của người dùng",
263263 "Human message": "Thông điệpPrompt, hướng dẫn của con ngườihuman, v.v.\nKhông thêm gì khi trống, tức là yêu cầu lời nhắcPrompt mới với vai trò 'người dùng'.",
264264 "New preset": "Thiết lậpPreset mới",
265265 "Delete preset": "Xóa thiết lậppreset",
266266 "View / Edit bias preset": "Xem / Chỉnh sửa cài đặt thiên vị",
267267 "Add bias entry": "Thêm mục thiên vị",
268268 "Most tokens have a leading space.": "Hầu hết các token đều có khoảng trống ở đầu.",
269269 "API Connections": "Kết nối API",
270270 "Text Completion": "Hoàn thành vănText bảnCompletion",
271271 "Chat Completion": "Hoàn thành tròChat chuyệnCompletion",
272272 "NovelAI": "NovelAI",
273273 "KoboldAI Horde": "Bầy KoboldAI Horde",
274274 "KoboldAI": "KoboldAI",
275275 "Avoid sending sensitive information to the Horde.": "Tránh gửi thông tin nhạy cảm cho Horde.",
276276 "Review the Privacy statement": "Xem lại Tuyên bốChính Quyềnsách riêngbảo mật",
277277 "Register a Horde account for faster queue times": "Đăng ký một tài khoản Horde để có thời gian chờxếp nhanhhàng ngắn hơn",
278278 "Learn how to contribute your idle GPU cycles to the Horde": "HọcTìm hiểu cách đóng góp các chucông kỳsức GPU không hoạt động của bạn cho BầyHorde",
279279 "Adjust context size to worker capabilities": "Điều chỉnh kích thước ngữ cảnhcontext cho phù hợp với khả năng của công nhân",
280280 "Adjust response length to worker capabilities": "Điều chỉnh độ dài phản hồi cho phù hợp với khả năng của công nhân",
281281 "Can help with bad responses by queueing only the approved workers. May slowdown the response time.": "Có thể giúp đỡ với các phản hồi không tốt bằng cách xếp hàng chỉ các nhân viên được phê duyệt. Có thể làm chậm lại thời gian phản hồi.",
282282 "Trusted workers only": "Chỉ các nhân viên được tin cậy",
283283 "API key": "KhóaKey API",
284284 "Get it here:": "Nhận nó tại đây:",
285285 "Register": "Đăng ký",
286286 "View my Kudos": "Xem các phần Kudos của tôitui",
287287 "Enter": "Nhập",
288288 "to use anonymous mode.": "để sử dụng chế độ ẩn danh.",
289289 "Clear your API key": "Xóa khóakey API của bạntui",
290290 "For privacy reasons, your API key will be hidden after you reload the page.": "Vì lý do bảo mật, khóa API của bạn sẽ bị ẩn sau khi bạn tải lại trang.",
291291 "Models": "Mô hìnhModel",
292292 "Refresh models": "Làm mới các mô hìnhmodel",
293293 "-- Horde models not loaded --": "-- Các mô hình Horde không được tải --",
294294 "Not connected...": "Không kết nối...",
295295 "API url": "URL API",
296296 "Example: http://127.0.0.1:5000/api ": "Ví dụ: http://127.0.0.1:5000/api",
297297 "Connect": "Kết nối",
298298 "Cancel": "Hủy bỏ",
299299 "Novel API key": "KhóaKey API NovelAI",
300300 "Get your NovelAI API Key": "Nhận khóa API NovelAI của bạn",
301301 "Enter it in the box below": "Nhập nó vào ô dưới đây",
302302 "Novel AI Model": "Mô hìnhModel Novel AI",
303303 "No connection...": "Không có kết nối...",
304304 "API Type": "Loại API",
305305 "Default (completions compatible)": "Mặc định [OpenAI/tương thích hoàn thành: oobabooga, LM Studio, v.v.]",
306306 "TogetherAI API Key": "KhóaKey API TogetherAI",
307307 "TogetherAI Model": "Mô hìnhModel TogetherAI",
308308 "-- Connect to the API --": "-- Kết nối với API --",
309309 "OpenRouter API Key": "KhóaKey API của OpenRouter",
310310 "Click Authorize below or get the key from": "Nhấp vào Tác động dưới đây hoặc lấy khóaKey từ",
311311 "View Remaining Credits": "Xem số dư còn lại",
312312 "OpenRouter Model": "Mô hìnhModel OpenRouter",
313313 "Model Providers": "Nhà cung cấp mô hìnhmodel",
314314 "InfermaticAI API Key": "KhóaKey API InfermaticAI",
315315 "InfermaticAI Model": "Mô hìnhModel InfermaticAI",
316316 "DreamGen API key": "KhóaKey API DreamGen",
317317 "DreamGen Model": "Model DreamGen",
318318 "Mancer API key": "KhóaKey API của Mancer",
319319 "Mancer Model": "Mô hìnhModel Mancer",
320320 "Make sure you run it with": "Đảm bảo bạn chạy nó với",
321321 "flag": "cờ",
322322 "API key (optional)": "KhóaKey API (tùy chọn)",
323323 "Server url": "URL máy chủ",
324324 "Example: 127.0.0.1:5000": "Ví dụ: 127.0.0.1:5000",
325325 "Custom model (optional)": "Mô hìnhModel tùy chỉnh (tùy chọn)",
326326 "vllm-project/vllm": "vllm-project/vllm (Chế độ trình bao bọc API OpenAI)",
327327 "vLLM API key": "KhóaKey API vLLM",
328328 "Example: 127.0.0.1:8000": "Ví dụ: http://127.0.0.1:8000",
329329 "vLLM Model": "Mô hìnhModel vLLM",
330330 "PygmalionAI/aphrodite-engine": "PygmalionAI/aphrodite-engine (Chế độ đóng gói cho Giao diện lập trình ứng dụng OpenAI)",
331331 "Aphrodite API key": "KhóaKey API Aphrodite",
332332 "Aphrodite Model": "NgườiModdel Mẫucho Aphrodite",
333333 "ggerganov/llama.cpp": "ggerganov/llama.cpp",
334334 "Example: 127.0.0.1:8080": "Ví dụ: 127.0.0.1:8080",
335335 "Example: 127.0.0.1:11434": "Ví dụ: 127.0.0.1:11434",
336336 "Ollama Model": "Mô hìnhModel Ollama",
337337 "Download": "Tải xuống",
338338 "Tabby API key": "KhóaKey API Tabby",
339339 "koboldcpp API key (optional)": "KhóaKey API koboldcpp (tùy chọn)",
340340 "Example: 127.0.0.1:5001": "Ví dụ: 127.0.0.1:5001",
341341 "AuthorizeCho phép": "Ủy quyền",
342342 "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",
343343 "Legacy API (pre-OAI, no streaming)": "API cũ (trước OAI, không có streaming)",
344344 "Bypass status check": "Bỏ qua kiểm tracheck trạng thái",
345345 "Chat Completion Source": "Nguồn Hoàn thànhcho TròChat chuyệnCompletion",
346346 "Reverse Proxy": "Proxy ngược",
347347 "Proxy Presets": "Cài đặt trướcPreset proxy",
348348 "Saved addresses and passwords.": "Địa chỉLink và mật khẩu đã lưu.",
349349 "Save Proxy": "Lưu proxy",
350350 "Delete Proxy": "Xóa proxy",
351351 "Proxy Name": "Tên của Proxy",
352352 "This will show up as your saved preset.": "Điều này sẽ hiển thị dưới dạng cài đặt trước đã lưu của bạn.",
353353 "Proxy Server URL": "URL máyLink chủURL proxy",
354354 "Alternative server URL (leave empty to use the default value).": "URL máy chủ thay thế (để trống để sử dụng giá trị mặc định).",
355355 "Remove your real OAI API Key from the API panel BEFORE typing anything into this box": "Xóa khóaKey API OAI thực của bạn khỏi bảng API TRƯỚC khi nhập bất kỳ điều gì vào hộp này",
356356 "We cannot provide support for problems encountered while using an unofficial OpenAI proxy": "Chúng tôi không thể cung cấp hỗ trợ cho các vấn đề gặp phải khi sử dụng proxy OpenAI không chính thức",
357357 "Doesn't work? Try adding": "Không hoạt động? Hãy thử thêm",
358358 "at the end!": "cuối cùng!",
359359 "Proxy Password": "Mật khẩu ủycho quyềnproxy",
360360 "Will be used as a password for the proxy instead of API key.": "Sẽ được sử dụng làm mật khẩu cho proxy thay vì khóakey API.",
361361 "Peek a password": "Xem mật khẩu",
362362 "OpenAI API key": "KhóaOpenAI API OpenAIkey",
363363 "View API Usage Metrics": "Xem số liệu sửstats dụngxài API",
364364 "Follow": "Theo dõi",
365365 "these directions": "những hướng dẫn này",
366366 "to get your OpenAI API key.": "để lấy khóaKey API của OpenAI.",
367367 "Use Proxy password field instead. This input will be ignored.": "Thay vào đó, hãy sử dụngDùng trườngô \"Mật khẩu proxy\". Đầuđi. vàoÔ này sẽkhông bịdùng bỏđược quađâu.",
368368 "OpenAI Model": "Mô hìnhModel OpenAI",
369369 "Bypass API status check": "Bỏ qua kiểm tra trạng thái API",
370370 "Show External models (provided by API)": "Hiển thịHiện các mô hình bênmodel ngoài vào (do API cung cấp)",
371371 "Get your key from": "Lấy khóaKey của bạn từ",
372372 "Anthropic's developer console": "bảng điều khiển nhà phátdeveloper triểnconsole của Anthropic",
373373 "Slack and Poe cookies will not work here, do not bother trying.": "Cookie Slack và Poe cookies sẽ không hoạtxài độngđược ở đây, đừng cố gắngthử.",
374374 "Claude Model": "Mô hìnhModel Claude",
375375 "Window AI Model": "Mô hìnhModel Window AI",
376376 "Model Order": "Sắp xếp mô hìnhmodel OpenRouter",
377377 "Alphabetically": "Theo thứ tự bảng chữ cái",
378378 "Price": "Giá (rẻ nhất)",
379379 "Context Size": "Kích thước bối cảnh",
@@ -382,45 +382,45 @@
382382 "Allow fallback routes": "Cho phép các tuyến đường phụ",
383383 "Allow fallback routes Description": "Bot thay thế tự động nếu mô hình được chọn không thể đáp ứng yêu cầu của bạn.",
384384 "openrouter_force_instruct": "Tùy chọn này đã lỗi thời và sẽ bị xóa trong tương lai. Để sử dụng định dạng hướng dẫn, vui lòng chuyển sang OpenRouter trong API hoàn thành văn bản.",
385385 "LEGACY": "DI SẢN",
386386 "Force Instruct Mode formatting": "Buộc định dạng Chế độ hướngInstruct dẫnMode",
387387 "Force_Instruct_Mode_formatting_Description": "Nếu cả Chế độ hướngInstruct dẫnMode và chế độ này được bật, lời nhắcPrompt sẽ được SillyTavern định dạng bằng cách sử dụng\n cài đặt định dạng nâng cao (ngoại trừ hướng dẫn System Nhắc). Nếu bị tắt, lời nhắcPrompt sẽ được OpenRouter định dạng.",
388388 "Scale API Key": "KhóaScale API của ScaleKey",
389389 "Clear your cookie": "Xóa cookie của bạn",
390390 "Alt Method": "Phương pháp thay thế",
391391 "AI21 API Key": "KhóaAI21 API của AI21Key",
392392 "AI21 Model": "Model hìnhcủa AI21",
393393 "Google AI Studio API Key": "Khóa API Google AI Studio API Key",
394394 "Google Model": "Model hìnhcủa Google",
395395 "MistralAI API Key": "KhóaMistralAI API MistralAIKey",
396396 "MistralAI Model": "Model hìnhcủa MistralAI",
397397 "Groq API Key": "KhóaGroq API GroqKey",
398398 "Groq Model": "Model hìnhcủa Groq",
399399 "Perplexity API Key": "KhóaPerplexity API phức tạpKey",
400400 "Perplexity Model": "Mô hìnhModel bốicủa rốiPerplexity",
401401 "Cohere API Key": "KhóaCohere API CohereKey",
402402 "Cohere Model": "Mô hìnhModel mạchcủa lạcCohere",
403403 "Custom Endpoint (Base URL)": "Điểm cuốiĐường tùylink chỉnhcustom (URL cơBase sởURL)",
404404 "Custom API Key": "KhóaKey API tùy chỉnh",
405405 "Available Models": "Các mẫuModel hiện sẵn",
406406 "Prompt Post-Processing": "Hậu xửXửnhanhhậu chóngkỳ Prompt",
407407 "Applies additional processing to the prompt before sending it to the API.": "Áp dụng xử lý bổ sung cho lời nhắcPrompt trước khi gửi nó tới API.",
408408 "Verifies your API connection by sending a short test message. Be aware that you'll be credited for it!": "Xác minh kết nối API của bạn bằng cách gửi một tin nhắn kiểm tra ngắn. Hãy nhớ rằng bạn sẽ được ghi nhận về điều đó!",
409409 "Test Message": "Tin nhắnTest kiểmtin tranhắn",
410410 "Auto-connect to Last Server": "Tự động kết nối với Máy chủlink Cuốitrước cùngđó",
411411 "Missing key": "❌ Thiếu chìa khóaKey",
412412 "Key saved": "✔️ Đã lưu chìa khóaKey",
413413 "View hidden API keys": "Xem các khóaKey API ẩn",
414414 "AI Response Formatting": "Định dạng Phản hồi của AI",
415415 "Advanced Formatting": "Định dạng Nâng cao",
416416 "Context Template": "Mẫu Ngữ cảnhcontext",
417417 "Auto-select this preset for Instruct Mode": "Tự động chọn thiết lập này cho Chế độ Hướng dẫn",
418418 "Story String": "Chuỗi Truyện",
419419 "Example Separator": "Ngăn cách Mẫu",
420420 "Chat Start": "Bắt đầu Trò chuyệnChat",
421421 "Add Chat Start and Example Separator to a list of stopping strings.": "Thêm Bắt đầu trò chuyện và Dấu phân cách ví dụ vào danh sách các chuỗi dừng.",
422422 "Use as Stop Strings": "Sử dụng như chuỗi dừng",
423423 "context_allow_jailbreak": "Bao gồm Bẻ khóa ở cuối lời nhắcPrompt, nếu được xác định trong thẻ ký tự VÀ ''Thích Char. Bẻ khóa'' được bật.\nĐIỀU NÀY KHÔNG ĐƯỢC KHUYẾN NGHỊ CHO CÁC MÔ HÌNH HOÀN THÀNH VĂN BẢN, CÓ THỂ DẪN ĐẾN ĐẦU RA XẤU.",
424424 "Allow Jailbreak": "Cho phép bẻ khóa",
425425 "Context Order": "Thứ tự bối cảnh",
426426 "Summary": "Bản tóm tắt",
@@ -430,9 +430,9 @@
430430 "In-Chat Position not affected": "Thứ tự Tóm tắt và Ghi chú của tác giả chỉ bị ảnh hưởng khi chúng không được đặt vị trí Trong trò chuyện.",
431431 "Instruct Mode": "Chế độ Hướng dẫn",
432432 "Enabled": "Đã bật",
433433 "instruct_bind_to_context": "Nếu được bật, các mẫu ngữ cảnhcontext sẽ được tự động chọn dựa trên tên mẫu hướng dẫn đã chọn hoặc theo sở thích.",
434434 "Bind to Context": "Buộc vào Ngữ cảnhContext",
435435 "Presets": "Cài đặt trướcPreset",
436436 "Auto-select this preset on API connection": "Tự động chọn thiết lập này khi kết nối API",
437437 "Activation Regex": "Kích hoạt Regex",
438438 "Wrap Sequences with Newline": "Bao gói Các chuỗi với Dòng mới",
@@ -440,12 +440,12 @@
440440 "Skip Example Dialogues Formatting": "Bỏ qua Định dạng Đoạn hội thoại Mẫu",
441441 "Include Names": "Bao gồm Tên",
442442 "Force for Groups and Personas": "Ép buộc cho Nhóm và Nhân vật",
443443 "System Prompt": "LờiPrompt nhắccủa Hệhệ thống",
444444 "Instruct Mode Sequences": "Các chuỗi chế độ hướng dẫn",
445445 "System Prompt Wrapping": "Gói lời nhắcPrompt hệ thống",
446446 "Inserted before a System prompt.": "Được chèn trước lời nhắcPrompt Hệ thống.",
447447 "System Prompt Prefix": "TiềnTiếp tốđầu nhắcngữ cho Prompt hệ thống",
448448 "Inserted after a System prompt.": "Được chèn sau lời nhắcPrompt của Hệ thống.",
449449 "System Prompt Suffix": "Hậu tố nhắc nhở hệ thống",
450450 "Chat Messages Wrapping": "Gói tin nhắn trò chuyện",
451451 "Inserted before a User message and as a last prompt line when impersonating.": "Được chèn trước thông báo Người dùng và làm dòng nhắc nhở cuối cùng khi mạo danh.",
@@ -473,8 +473,8 @@
473473 "Stop Sequence": "Chuỗi Dừng",
474474 "Will be inserted at the start of the chat history if it doesn't start with a User message.": "Sẽ được chèn vào đầu lịch sử trò chuyện nếu nó không bắt đầu bằng tin nhắn Người dùng.",
475475 "User Filler Message": "Thông báo điền của người dùng",
476476 "Context Formatting": "Định dạng Ngữ cảnhcontext",
477477 "(Saved to Context Template)": "(Đã lưu trong Mẫu Ngữ cảnhcontext)",
478478 "Always add character's name to prompt": "Luôn thêm tên nhân vật vào điều khiển",
479479 "Generate only one line per request": "Chỉ tạo một dòng cho mỗi yêu cầu",
480480 "Trim Incomplete Sentences": "Cắt các câu không hoàn chỉnh",
@@ -495,12 +495,12 @@
495495 "Auto-Continue": "Tự động Tiếp tục",
496496 "Allow for Chat Completion APIs": "Cho phép các API hoàn thành Trò chuyện",
497497 "Target length (tokens)": "Độ dài mục tiêu (token)",
498498 "World Info": "Thông tin ThếWorld giớiInfo",
499499 "Locked = World Editor will stay open": "Được khóa = Trình chỉnh sửa Thế giới sẽ được mở",
500500 "Worlds/Lorebooks": "Thế giới",
501501 "Active World(s) for all chats": "Thế giới Hoạt động cho tất cả các cuộc trò chuyện",
502502 "-- World Info not found --": "-- Không tìm thấy Thông tin ThếWorld giớiInfo --",
503503 "Global World Info/Lorebook activation settings": "Cài đặt kích hoạt Thông tin thế giới toànWorld cầuInfo/Lorebook",
504504 "Click to expand": "Bấm để mở rộng",
505505 "Scan Depth": "Độ sâu quét",
506506 "Context %": "Bối cảnh %",
@@ -516,7 +516,7 @@
516516 "Global Lore First": "Sử liệu toàn cầu đầu tiên",
517517 "Entries can activate other entries by mentioning their keywords": "Các mục có thể kích hoạt các mục khác bằng cách đề cập đến từ khóa của họ",
518518 "Recursive Scan": "Quét đệ quy",
519519 "Lookup for the entry keys in the context will respect the case": "Tìm kiếm các khóa mục trong ngữ cảnhcontext sẽ tôn trọng trường hợp",
520520 "Case Sensitive": "Phân biệt chữ hoa chữ thường",
521521 "If the entry key consists of only one word, it would not be matched as part of other words": "Nếu khóa mục bao gồm chỉ một từ, nó sẽ không được kết hợp như một phần của các từ khác",
522522 "Match Whole Words": "Khớp toàn bộ từ",
@@ -527,15 +527,15 @@
527527 "New": "Mới",
528528 "or": "hoặc",
529529 "--- Pick to Edit ---": "--- Chọn để Chỉnh sửa ---",
530530 "Rename World Info": "Đổi tên Thông tin ThếWorld giớiInfo",
531531 "Open all Entries": "Mở tất cả các Mục",
532532 "Close all Entries": "Đóng tất cả các Mục",
533533 "New Entry": "Mục mới",
534534 "Fill empty Memo/Titles with Keywords": "Điền vào Memo/Tiêu đề trống với từ khóa",
535535 "Import World Info": "Nhập Thông tin ThếWorld giớiInfo",
536536 "Export World Info": "Xuất Thông tin ThếWorld giớiInfo",
537537 "Duplicate World Info": "Nhân đôi Thông tin ThếWorld giớiInfo",
538538 "Delete World Info": "Xóa Thông tin ThếWorld giớiInfo",
539539 "Search...": "Tìm kiếm...",
540540 "Search": "Tìm kiếm",
541541 "Priority": "Ưu tiên",
@@ -587,11 +587,11 @@
587587 "UI Border": "Viền UI",
588588 "User Message Blur Tint": "Màu sắc làm mờ Tin nhắn của Người dùng",
589589 "AI Message Blur Tint": "Màu sắc làm mờ Tin nhắn của Trí tuệ Nhân tạo",
590590 "Chat Width": "Chiều rộng trò chuyệnchat",
591591 "Width of the main chat window in % of screen width": "Chiều rộng của cửa sổ trò chuyện chính tính bằng % chiều rộng màn hình",
592592 "Font Scale": "Tỷ lệ Font",
593593 "Font size": "Cỡ chữ",
594594 "Blur Strength": "SứcMực độ mạnh mờ",
595595 "Blur strength on UI panels.": "Độ mờ trên bảng UI.",
596596 "Text Shadow Width": "Độ rộng bóng văn bản",
597597 "Strength of the text shadows": "Độ mạnh của bóng văn bản",
@@ -603,7 +603,7 @@
603603 "No Text Shadows": "Không có bóng văn bản",
604604 "Reduce chat height, and put a static sprite behind the chat window": "Giảm chiều cao của cuộc trò chuyện và đặt một sprite tĩnh phía sau cửa sổ trò chuyện",
605605 "Waifu Mode": "Chế độ Waifu",
606606 "Always show the full list of the Message Actions context items for chat messages, instead of hiding them behind '...'": "Luôn hiển thị danh sách đầy đủ các mục ngữ cảnhcontext Hành động Tin nhắn cho các tin nhắn trò chuyện, thay vì ẩn chúng sau '...'",
607607 "Auto-Expand Message Actions": "Tự động mở rộng Hành động Tin nhắn",
608608 "Alternative UI for numeric sampling parameters with fewer steps": "Giao diện người dùng thay thế cho các tham số mẫu số học với ít bước hơn",
609609 "Zen Sliders": "Thanh trượt Zen",
@@ -614,7 +614,7 @@
614614 "Show a timestamp for each message in the chat log": "Hiển thị dấu thời gian cho mỗi tin nhắn trong nhật ký trò chuyện",
615615 "Chat Timestamps": "Dấu thời gian Chat",
616616 "Show an icon for the API that generated the message": "Hiển thị biểu tượng cho API đã tạo ra tin nhắn",
617617 "Model Icon": "Biểu tượng Mô hìnhModel",
618618 "Show sequential message numbers in the chat log": "Hiển thị số tin nhắn tuần tự trong nhật ký trò chuyện",
619619 "Message IDs": "ID Tin nhắn",
620620 "Hide avatars in chat messages.": "Ẩn hình đại diện trong tin nhắn trò chuyện.",
@@ -639,9 +639,9 @@
639639 "Use fuzzy matching, and search characters in the list by all data fields, not just by a name substring": "Sử dụng kết hợp mờ, và tìm kiếm nhân vật trong danh sách bằng tất cả các trường dữ liệu, không chỉ bằng một phần của tên",
640640 "Advanced Character Search": "Tìm kiếm Nhân vật Nâng cao",
641641 "If checked and the character card contains a prompt override (System Prompt), use that instead": "Nếu được kiểm tra và thẻ nhân vật chứa một lệnh ghi đè (Lệnh hệ thống), hãy sử dụng thay vào đó",
642642 "Prefer Character Card Prompt": "Ưu tiên Gợi ý từ Thẻ Nhân vậtCard",
643643 "If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "Nếu được kiểm tra và thẻ nhân vật chứa một lệnh phá vỡ giam giữ (Hướng dẫn Lịch sử Bài viết), hãy sử dụng thay vào đó",
644644 "Prefer Character Card Jailbreak": "Ưu tiên PháJailbreak vỡtừ HỏaCard",
645645 "Avoid cropping and resizing imported character images. When off, crop/resize to 512x768": "Tránh cắt xén và thay đổi kích thước hình ảnh ký tự đã nhập. Khi tắt, hãy cắt/thay đổi kích thước thành 512x768.",
646646 "Never resize avatars": "Không bao giờ thay đổi kích thước hình đại diện",
647647 "Show actual file names on the disk, in the characters list display only": "Hiển thị tên tệp thực tế trên đĩa, chỉ trong danh sách nhân vật",
@@ -649,26 +649,26 @@
649649 "Prompt to import embedded card tags on character import. Otherwise embedded tags are ignored": "Nhắc nhập các thẻ thẻ nhúng trên thẻ nhân vật nhập khẩu. Nếu không, các thẻ nhúng sẽ bị bỏ qua",
650650 "Import Card Tags": "Nhập Tags Thẻ",
651651 "Hide character definitions from the editor panel behind a spoiler button": "Ẩn định nghĩa nhân vật từ bảng chỉnh sửa sau một nút spoil",
652652 "Spoiler Free Mode": "Chế độ Không bịẨn lộspoiler",
653653 "Miscellaneous": "ĐaLinh dạngtinh",
654654 "Reload and redraw the currently open chat": "Tải lại và vẽ lại cuộc trò chuyện đang mở hiện tại",
655655 "Reload Chat": "Tải lại Chat",
656656 "Debug Menu": "Menu Debug",
657657 "Smooth Streaming": "Truyền phátStreaming mượt",
658658 "Experimental feature. May not work for all backends.": "Tính năng thực nghiệm. Có thể không hoạt động cho tất cả các chương trình phụ trợBackends.",
659659 "Slow": "Chậm",
660660 "Fast": "Nhanh",
661661 "Play a sound when a message generation finishes": "Phát ra âm thanh khi quáthông trìnhbáo tạokhi tin nhắn từ Char kết thúc",
662662 "Message Sound": "Âm thanh Tin nhắn",
663663 "Only play a sound when ST's browser tab is unfocused": "Chỉ phát âm thanh khi tab trình duyệt của ST không được tập trung",
664664 "Background Sound Only": "Chỉ Âm thanh Nền",
665665 "Reduce the formatting requirements on API URLs": "Giảm yêu cầu định dạng trên URL của API",
666666 "Relaxed API URLS": "URL API được thư giãn",
667667 "Ask to import the World Info/Lorebook for every new character with embedded lorebook. If unchecked, a brief message will be shown instead": "Hỏi để nhập Thông tin ThếWorld giớiInfo/Sách lịch sửLorebook cho mỗi nhân vật mới có sẵn sách lịch sửlorebook nhúng. Nếu không được kiểm tra, thay vào đó sẽ hiển thị một tin nhắn tóm tắt",
668668 "Lorebook Import Dialog": "Hộp thoại Nhập khẩu Sáchdụ vềlời truyềnthoại thốngcủa Lorebook",
669669 "Restore unsaved user input on page refresh": "Khôi phục đầu vào của người dùng chưa được lưu khi làm mớirefresh trang",
670670 "Restore User Input": "Khôi phục Đầuinput vàocủa Ngườingười dùng",
671671 "Allow repositioning certain UI elements by dragging them. PC only, no effect on mobile": "Cho phép di chuyển lại một số phầnthành tửphần giao diện người dùng bằng cách kéo chúng. Chỉ dành cho PC, không ảnh hưởng đếntác điệndụng thoạitrên diđiền độngthoại",
672672 "Movable UI Panels": "Bảng Giao diện người dùng Có thể di chuyển",
673673 "MovingUI preset. Predefined/saved draggable positions": "Cài đặt trước MovingUI. Vị trí có thể kéo trước/saved",
674674 "MUI Preset": "Cài đặt trước MUI:",
@@ -681,15 +681,15 @@
681681 "# Messages to Load": "# tin nhắn. để tải",
682682 "The number of chat history messages to load before pagination.": "Số lượng tin nhắn lịch sử trò chuyện cần tải trước khi phân trang.",
683683 "(0 = All)": "(0 = Tất cả)",
684684 "Streaming FPS": "FPS Phát trựccủa tiếpStreaming",
685685 "Update speed of streamed text.": "Cập nhật tốcTốc độđọ của streaming văn bản truyền phát.",
686686 "Example Messages Behavior": "Hành vi Tin nhắn Mẫu",
687687 "Gradual push-out": "Đẩy ra dần",
688688 "Always include examples": "Luôn bao gồm các ví dụ",
689689 "Never include examples": "Không bao giờ bao gồm các ví dụ",
690690 "Send on Enter": "Gửi khi nhấn Enter",
691691 "Disabled": "Vô hiệu",
692692 "Automatic (PC)": "Tự động (Trên PC)",
693693 "Press Send to continue": "Nhấn Gửi để tiếp tục",
694694 "Show a button in the input area to ask the AI to continue (extend) its last message": "Hiển thị một nút trong khu vực nhập để yêu cầu trí tuệ nhân tạo tiếp tục (mở rộng) tin nhắn cuối cùng của nó",
695695 "Quick 'Continue' button": "Nút 'Tiếp tục' nhanh",
@@ -712,10 +712,10 @@
712712 "Skip encoding and characters in message text, allowing a subset of HTML markup as well as Markdown": "Bỏ qua mã hóa và ký tự trong văn bản tin nhắn, cho phép một tập con của đánh dấu HTML cũng như Markdown",
713713 "Show tags in responses": "Hiển thị thẻ trong các phản hồi",
714714 "Allow AI messages in groups to contain lines spoken by other group members": "Cho phép các tin nhắn của trí tuệ nhân tạo trong các nhóm chứa các dòng được nói bởi các thành viên khác trong nhóm",
715715 "Relax message trim in Groups": "ThưGiảm giãnnhẹ việc cắt tỉađoạn tin nhắn trong Nhóm",
716716 "Log prompts to console": "Ghi nhận các lời nhắcPrompt vào bảng điều khiển",
717717 "Requests logprobs from the API for the Token Probabilities feature": "Yêu cầu logprobs từ API cho tính năngbảng Xác suất Token",
718718 "Request token probabilities": "Yêu cầu bảng xác suất token",
719719 "Automatically reject and re-generate AI message based on configurable criteria": "Tự động từ chối và tạo lại tin nhắn của trí tuệ nhân tạo dựa trên các tiêu chí có thể cấu hình",
720720 "Auto-swipe": "Tự động vuốt",
721721 "Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "Bật chức năng tự động vuốt. Các cài đặt trong phần này chỉ có tác dụng khi tự động vuốt được bật",
@@ -731,11 +731,11 @@
731731 "Autocomplete Matching": "Kết hợp",
732732 "Starts with": "Bắt đầu với",
733733 "Includes": "Bao gồm",
734734 "Fuzzy": "MờFuzzy",
735735 "Sets the style of the autocomplete.": "Đặt kiểu tự động hoàn thành.",
736736 "Autocomplete Style": "Phong cách",
737737 "Follow Theme": "TheoĐồng dõibộ chủgiao đềdiện",
738738 "Dark": "TốiGiao tămdiện tối",
739739 "Sets the font size of the autocomplete.": "Đặt kích thước phông chữ của tự động hoàn thành.",
740740 "Sets the width of the autocomplete.": "Đặt chiều rộng của tự động hoàn thành.",
741741 "Autocomplete Width": "Chiều rộng",
@@ -751,21 +751,21 @@
751751 "REPLACE_GETVAR": "REPLACE_GETVAR",
752752 "Change Background Image": "Thay đổi Hình nền",
753753 "Filter": "Bộ lọc",
754754 "Automatically select a background based on the chat context": "Tự động chọn một nền dựa trên ngữ cảnhcontext trò chuyện",
755755 "Auto-select": "Tự động chọn",
756756 "System Backgrounds": "Nền Hệ thống",
757757 "Chat Backgrounds": "Hình nền Chat",
758758 "bg_chat_hint_1": "Hình nền trò chuyện được tạo bằng",
759759 "bg_chat_hint_2": "tiện ích mở rộng sẽ xuất hiện ở đây.",
760760 "Extensions": "Tiện ích",
761761 "Notify on extension updates": "Thông báo về các bản cập nhật của tiện ích mở rộng",
762762 "Manage extensions": "Quản lý tiện ích mở rộng",
763763 "Import Extension From Git Repo": "Nhập mởtiện rộngích từ Git Repo",
764764 "Install extension": "Cài đặt tiện ích mở rộng",
765765 "Extras API:": "API bổ sung:",
766766 "Auto-connect": "Tự động kết nối",
767767 "Extras API URL": "URL API bổ sung",
768768 "Extras API key (optional)": "KhóaKey API Phụ (tùy chọn)",
769769 "Persona Management": "Quản lý Nhân cách",
770770 "How do I use this?": "Tôi sử dụng cái này như thế nào?",
771771 "Click for stats!": "Nhấp để xem thống kê!",
@@ -774,17 +774,17 @@
774774 "Backup": "Sao lưu",
775775 "Restore your personas from a file": "Khôi phục nhân cách của bạn từ một tập tin",
776776 "Restore": "Khôi phục",
777777 "Create a dummy persona": "Tạo một nhân cách giả mạo",
778778 "Create": "Tạo",
779779 "Toggle grid view": "Chuyển đổi chế độ xem lưới",
780780 "No persona description": "[Không có mô tả]",
781781 "Name": "Tên",
782782 "Enter your name": "Nhập tên của bạn",
783783 "Click to set a new User Name": "NhấpĐúp để đặt một tên Người dùng mới",
784784 "Click to lock your selected persona to the current chat. Click again to remove the lock.": "NhấpĐúp để khóa nhân cách được chọn của bạn vào cuộc trò chuyện hiện tại. Nhấp một lần nữa để loại bỏ khóa.",
785785 "Click to set user name for all messages": "Nhấp để đặt tên người dùng cho tất cả các tin nhắn",
786786 "Persona Description": "Mô tả Nhân cách",
787787 "Example: [{{user}} is a 28-year-old Romanian cat girl.]": "Ví dụ: [{{user}} là một cô gái mèo Rumaningười România 28 tuổi.]",
788788 "Tokens persona description": "Mô tả Nhân cách",
789789 "Position:": "Vị trí:",
790790 "In Story String / Prompt Manager": "Trong Chuỗi Truyện / Quản lý Lời nhắc",
@@ -805,12 +805,12 @@
805805 "Total tokens": "Tổng số token",
806806 "Calculating...": "Đang tính...",
807807 "Tokens": "Token",
808808 "Permanent tokens": "Mã thông báoToken vĩnh viễn",
809809 "Permanent": "Vĩnh viễn",
810810 "About Token 'Limits'": "Giới thiệu về 'Giới hạn' mã thông báoToken",
811811 "Toggle character info panel": "Chuyển đổi bảng thông tin nhân vật",
812812 "Name this character": "Đặt tên cho nhân vật này",
813813 "extension_token_counter": "Mã thôngĐếm báoToken:",
814814 "Click to select a new avatar for this character": "Nhấp để chọn một hình đại diện mới cho nhân vật này",
815815 "Add to Favorites": "Thêm vào Mục ưa thích",
816816 "Advanced Definition": "Định nghĩa Nâng cao",
@@ -821,26 +821,26 @@
821821 "Create Character": "Tạo Nhân vật",
822822 "Delete Character": "Xóa Nhân vật",
823823 "More...": "Thêm...",
824824 "Link to World Info": "Liên kết đến Thông tin ThếWorld giớiInfo",
825825 "Import Card Lore": "Nhập lời nhắcCard ThẻLore",
826826 "Scenario Override": "Ghi đè Kịch bản",
827827 "Convert to Persona": "Chuyển đổi sang Persona (Nhân cách)",
828828 "Rename": "Đổi tên",
829829 "Link to Source": "Liên kết tới nguồn",
830830 "Replace / Update": "Thay thế/Cập nhật",
831831 "Import Tags": "Nhập thẻ",
832832 "Search / Create Tags": "Tìm kiếm / Tạo TagsThẻ",
833833 "View all tags": "Xem tất cả các tag",
834834 "Creator's Notes": "Ghi chú của NgườiTác tạogiả",
835835 "Show / Hide Description and First Message": "Hiện / Ẩn Mô tả và Tin nhắn Đầu tiên",
836836 "Character Description": "Mô tả Nhân vật",
837837 "Click to allow/forbid the use of external media for this character.": "BấmĐúp để cho phép/cấm sử dụng phương tiện bên ngoài cho nhân tựvật này.",
838838 "Ext. Media": "Ex. Phương tiện truyền thôngTệp",
839839 "Describe your character's physical and mental traits here.": "Mô tả các đặc điểm về thểngoại chấthìnhtinh thầntính củacách nhân vật của bạn ở đây.",
840840 "First message": "Tin nhắn đầu tiên",
841841 "Click to set additional greeting messages": "NhấpBấm để đặtset thêm tin nhắncâu chào mừng:>",
842842 "Alt. Greetings": "thay thế. Lời chào hỏi",
843843 "This will be the first message from the character that starts every chat.": "Điều nàyĐây sẽ là tincâu nhắnchào đầu tiên từcủa nhân vật mỗi bắtkhi đầumở mỗiđầu cuộc trò chuyện. nè :>",
844844 "Group Controls": "Điều khiển Nhóm",
845845 "Chat Name (Optional)": "Tên Trò chuyện (Tùy chọn)",
846846 "Click to select a new avatar for this group": "Nhấp để chọn một hình đại diện mới cho nhóm này",
@@ -857,17 +857,17 @@
857857 "Inserted after each part of the joined fields.": "Được chèn sau mỗi phần của các trường đã nối.",
858858 "Join Suffix": "Tham gia hậu tố",
859859 "Set a group chat scenario": "Đặt một kịch bản trò chuyện nhóm",
860860 "Click to allow/forbid the use of external media for this group.": "NhấpĐúp để cho phép/cấm sử dụng phương tiện truyền thông bên ngoài cho nhóm này.",
861861 "Restore collage avatar": "Khôi phục hìnhảnh đại diện hợp thànhghép",
862862 "Allow self responses": "Cho phép tự phản hồi tự",
863863 "Auto Mode": "Chế độ Tự động",
864864 "Auto Mode delay": "Độ trễ chế độ tự động",
865865 "Hide Muted Member Sprites": "Ẩn các thành viên bị tắt tiếngcâm",
866866 "Current Members": "Thành viên hiện tại",
867867 "Add Members": "Thêm thành viên",
868868 "Create New Character": "Tạo Nhân vật Mới",
869869 "Import Character from File": "Nhập Nhân vật từ Tệp",
870870 "Import content from external URL": "Nhập nội dung từ link URL bên ngoài",
871871 "Create New Chat Group": "Tạo Nhóm Trò chuyện Mới",
872872 "Characters sorting order": "Thứ tự sắp xếp Nhân vật",
873873 "A-Z": "A-Z",
@@ -878,70 +878,70 @@
878878 "Recent": "Gần đây",
879879 "Most chats": "Nhiều cuộc trò chuyện nhất",
880880 "Least chats": "Ít cuộc trò chuyện nhất",
881881 "Most tokens": "Nhiều nhất các mã thôngtoken báonhất",
882882 "Least tokens": "Ít nhất các mã thôngtoken báonhất",
883883 "Random": "Ngẫu nhiên",
884884 "Toggle character grid view": "Chuyển đổi chế độ xem lưới nhân vật",
885885 "Bulk_edit_characters": "Chỉnh sửa nhân vật theo lô",
886886 "Bulk select all characters": "Chọn hàng loạt tất cả các ký tự",
887887 "Bulk delete characters": "Xóa nhân vật theo lô",
888888 "popup-button-save": "CứuLưu",
889889 "popup-button-yes": "Đúng",
890890 "popup-button-no": "KHÔNG",
891891 "popup-button-cancel": "Hủy bỏ",
892892 "popup-button-import": "Nhập khẩu",
893893 "Advanced Defininitions": "Các Định nghĩa Nâng cao",
894894 "Prompt Overrides": "Ghi đè nhắc nhởPrompt",
895895 "(For Chat Completion and Instruct Mode)": "(Đối với chế độ hoàn thành trò chuyện và hướng dẫn)",
896896 "Insert {{original}} into either box to include the respective default prompt from system settings.": "Chèn {{original}} vào bất kỳ hộp nào để bao gồm lời nhắcPrompt mặc định tương ứng từ cài đặt hệ thống.",
897897 "Main Prompt": "Lời nhắcPrompt Chính",
898898 "Any contents here will replace the default Main Prompt used for this character. (v2 spec: system_prompt)": "Bất kỳ nội dung nào ở đây sẽ thay thế Lời nhắc Chính mặc định được sử dụng cho nhân vật này. (v2 spec: hệ thống_lời_nhắc)",
899899 "Any contents here will replace the default Jailbreak Prompt used for this character. (v2 spec: post_history_instructions)": "Bất kỳ nội dung nào ở đây sẽ thay thế Lời nhắc Phá vỡ giam giữ mặc định được sử dụng cho nhân vật này. (v2 spec: hệ thống_lời_nhắc_sau_lịch_sử)",
900900 "Creator's Metadata (Not sent with the AI prompt)": "Dữ liệu siêu dữ liệu của Ngườitác tạogiả (Không được gửi kèm với lời nhắcPrompt AI)",
901901 "Creator's Metadata": "Siêu dữ liệu của người sángtác tạogiả",
902902 "(Not sent with the AI Prompt)": "(Không được gửi bằng Lời nhắc AI)",
903903 "Everything here is optional": "Tất cả mọi thứ ở đây đều là tùy chọn",
904904 "(Botmaker's name / Contact Info)": "(Tên của Ngườitác tạogiả Bot / Thông tin Liên hệ)",
905905 "(If you want to track character versions)": "(Nếu bạn muốn theo dõi phiên bản của nhân vật)",
906906 "(Describe the bot, give use tips, or list the chat models it has been tested on. This will be displayed in the character list.)": "(Mô tả bot, cung cấp mẹo sử dụng hoặc liệt kê các mô hình trò chuyệnmodel mà nó đã được thử nghiệm. ĐiềuCái này sẽ được hiển thị trong danh sách nhân vật.)",
907907 "Tags to Embed": "Tags để nhúng",
908908 "(Write a comma-separated list of tags)": "(Viết một danh sách các tags được phân tách bằng dấu phẩy)",
909909 "Personality summary": "Tóm tắt Tính cách",
910910 "(A brief description of the personality)": "(Một mô tả ngắn gọn về tính cách)",
911911 "Scenario": "Tình huống",
912912 "(Circumstances and context of the interaction)": "(Hoàn cảnh và ngữ cảnhcontext của sự tương tác)",
913913 "Character's Note": "Ghi chú của nhân vật",
914914 "(Text to be inserted in-chat @ designated depth and role)": "(Văn bản sẽ được chèn vào cuộc trò chuyện @ độ sâu và vai trò được chỉ định)",
915915 "@ Depth": "@ Chiều sâu",
916916 "Role": "Vai trò",
917917 "Talkativeness": "TínhMức chuyệnnói lắm",
918918 "How often the character speaks in group chats!": "NhânTần suất nhân vật nóinày chuyệnphát biểu trong các cuộc trò chuyện nhóm như thế nào!",
919919 "How often the character speaks in": "Tần suất nhân vật nóinày chuyệnphát biểu trong",
920920 "group chats!": "các cuộc trò chuyện nhóm!",
921921 "Shy": "Rụt rèNhát",
922922 "Normal": "Bình thường",
923923 "Chatty": "NóiLắm nhiềumồm",
924924 "Examples of dialogue": "Ví dụ về lời đối thoại",
925925 "Important to set the character's writing style.": "Quan trọng để phải thiết lập phong cách viết của nhân vật.",
926926 "(Examples of chat dialog. Begin each example with START on a new line.)": "(Các ví dụ về đoạn hội thoại trò chuyện. Bắt đầu mỗi ví dụ với START trên một dòng mới.)",
927927 "Save": "Lưu",
928928 "Chat History": "Lịch sử Trò chuyện",
929929 "Import Chat": "Nhập trò chuyện",
930930 "Copy to system backgrounds": "Sao chép vào nền hệ thống",
931931 "Rename background": "Đổi tên nền background",
932932 "Lock": "Khóa",
933933 "Unlock": "Mở khóa",
934934 "Delete background": "Xóa nền background",
935935 "Chat Scenario Override": "Ghi đè kịch bản trò chuyện",
936936 "Remove": "Xóa",
937937 "Type here...": "Nhập vào đây...",
938938 "Chat Lorebook": "Sách truyền thuyết trò chuyện cho",
939939 "Chat Lorebook for": "Sách truyền thuyết trò chuyện cho",
940940 "chat_world_template_txt": "Thông tin thế giới được chọn sẽ bị ràng buộc với cuộc trò chuyện này. Khi tạo phản hồi AI,\n nó sẽ được kết hợp với các mục từ sách truyền thuyết toàn cầu và nhân vật.",
941941 "Select a World Info file for": "Chọn một tệp Thông tin ThếWorld giớiInfo cho",
942942 "Primary Lorebook": "Sách Truyền thuyết Chính",
943943 "A selected World Info will be bound to this character as its own Lorebook.": "Một Thông tin ThếWorld giớiInfo được chọn sẽ được gắn với nhân vật này như một cuốn sách Truyền thuyếtLorebook riêng của nó.",
944944 "When generating an AI reply, it will be combined with the entries from a global World Info selector.": "Khi tạo phản hồi của AI, nó sẽ được kết hợp với các mục từ một bộ chọn Thông tin Thế giới toànWorld cầuInfo.",
945945 "Exporting a character would also export the selected Lorebook file embedded in the JSON data.": "Việc xuất khẩu một nhân vật cũng sẽ xuất khẩu tệp Sách Truyền thuyết được chọn được nhúng trong dữ liệu JSON.",
946946 "Additional Lorebooks": "Sách Truyền thuyết Bổ sung",
947947 "Associate one or more auxillary Lorebooks with this character.": "Liên kết một hoặc nhiều Sách Truyền thuyết phụ trợ với nhân vật này.",
@@ -989,12 +989,12 @@
989989 "Optional Filter": "Bộ lọc Tùy chọn",
990990 "Keywords or Regexes (ignored if empty)": "Từ khóa hoặc Regexes (bỏ qua nếu trống)",
991991 "Comma separated list (ignored if empty)": "Danh sách được phân tách bằng dấu phẩy (bỏ qua nếu trống)",
992992 "Use global setting": "Sử dụng cài đặt toàn cầuchung",
993993 "Case-Sensitive": "Phân biệt chữ hoa chữ thường",
994994 "Yes": "Có",
995995 "No": "Không",
996996 "Can be used to automatically activate Quick Replies": "Có thể được sử dụng để tự động kích hoạt Trả lời nhanh",
997997 "Automation ID": "ID tự động hóa",
998998 "( None )": "( Không có )",
999999 "Content": "Nội dung",
10001000 "Exclude from recursion": "Loại trừ khỏi đệ quy",
@@ -1017,27 +1017,27 @@
10171017 "close": "đóng",
10181018 "prompt_manager_edit": "Biên tập",
10191019 "prompt_manager_name": "Tên",
10201020 "A name for this prompt.": "Tên cho lời nhắcPrompt này.",
10211021 "To whom this message will be attributed.": "Tin nhắn này sẽ được quy cho ai.",
10221022 "AI Assistant": "Trợ lý AI",
10231023 "prompt_manager_position": "Chức vụ",
10241024 "Injection position. Next to other prompts (relative) or in-chat (absolute).": "Vị trí tiêm. Bên cạnh các lời nhắcPrompt khác (tương đối) hoặc trong trò chuyện (tuyệt đối).",
10251025 "prompt_manager_relative": "Liên quan đến",
10261026 "prompt_manager_depth": "Chiều sâu",
10271027 "Injection depth. 0 = after the last message, 1 = before the last message, etc.": "Độ sâu phun. 0 = sau tin nhắn cuối cùng, 1 = trước tin nhắn cuối cùng, v.v.",
10281028 "Prompt": "Đề xuấtPrompt",
10291029 "The prompt to be sent.": "Lời nhắc được gửi đi.",
10301030 "This prompt cannot be overridden by character cards, even if overrides are preferred.": "Lời nhắc này không thể bị ghi đè bằng thẻ ký tự, ngay cả khi ưu tiên ghi đè.",
10311031 "prompt_manager_forbid_overrides": "Cấm ghi đè",
10321032 "reset": "càiđặt lại",
10331033 "save": "cứulưu",
10341034 "This message is invisible for the AI": "Tin nhắn này không thểAI nhìnkhông thấy chođược AIđâu",
10351035 "Message Actions": "Hành động tin nhắn",
10361036 "Translate message": "Dịch tin nhắn",
10371037 "Generate Image": "Tạo Hình ảnh",
10381038 "Narrate": "KểDẫn chuyện",
10391039 "Exclude message from prompts": "Loại trừ tin nhắn khỏi các lời nhắcPrompt",
10401040 "Include message in prompts": "Bao gồm tin nhắn trong các lời nhắcPrompt",
10411041 "Embed file or image": "Nhúng tệp hoặc hình ảnh",
10421042 "Create checkpoint": "Tạo điểm kiểm tra",
10431043 "Create Branch": "Tạo Chi nhánh",
@@ -1050,25 +1050,25 @@
10501050 "Move message up": "Di chuyển tin nhắn lên",
10511051 "Move message down": "Di chuyển tin nhắn xuống",
10521052 "Enlarge": "Phóng to",
10531053 "Welcome to SillyTavern!": "Chào mừng đếnSillyTavern vớixin SillyTavernchào!",
10541054 "welcome_message_part_1": "ĐọcXem",
10551055 "welcome_message_part_2": "Tài liệu chính thức",
10561056 "welcome_message_part_3": null,
10571057 "welcome_message_part_4": "Kiểu",
10581058 "welcome_message_part_5": "trong trò chuyện để nhận lệnh và macro.",
10591059 "welcome_message_part_6": "Tham gia",
10601060 "Discord server": "Máy chủ bấtServer hòaDiscord",
10611061 "welcome_message_part_7": "để biết thêm thông tin và nhận thông báo chính thức.",
10621062 "SillyTavern is aimed at advanced users.": "SillyTavern nhắmdành đếncho ngườidân dùngpro, caodân cấpchơi thứ thiệt.",
10631063 "If you're new to this, enable the simplified UI mode below.": "Nếu bạn chưa quen với điềudùng nàylắm, hãy bật chế độ giao diện người dùngUI đơn giản hóa bên dưới nha.",
10641064 "Change it later in the 'User Settings' panel.": "Thay đổi nó sau trong bảng 'Cài đặt người dùng'.",
10651065 "Enable simple UI mode": "Bật chế độ giao diện người dùng đơn giản",
10661066 "Looking for AI characters?": "Bạn đang tìm kiếm các nhân vật AI à?",
10671067 "onboarding_import": "Nhập khẩu",
10681068 "from supported sources or view": "từ các nguồn hoặc chế độ xem được hỗ trợ",
10691069 "Sample characters": "Ký tự mẫu",
10701070 "Your Persona": "Nhân cách của bạn",
10711071 "Before you get started, you must select a persona name.": "Trước khi bắt đầu, bạn phải chọn một têncái tên nhân vật đã.",
10721072 "welcome_message_part_8": "Điều này có thể được thay đổi bất cứ lúc nào thông qua",
10731073 "welcome_message_part_9": "biểu tượng.",
10741074 "Persona Name:": "Tên nhân vật:",
@@ -1086,15 +1086,15 @@
10861086 "(This will be the first message from the character that starts every chat)": "(Điều này sẽ là tin nhắn đầu tiên từ nhân vật mà bắt đầu mỗi cuộc trò chuyện)",
10871087 "Forbid Media Override explanation": "Khả năng sử dụng phương tiện truyền thông bên ngoài trong trò chuyện của nhân vật/nhóm hiện tại.",
10881088 "Forbid Media Override subtitle": "Phương tiện: hình ảnh, video, âm thanh. Bên ngoài: không được lưu trữ trên máy chủ cục bộ.",
10891089 "Always forbidden": "Luôn bị cấm",
10901090 "Always allowed": "Luôn luôn cho phép",
10911091 "View contents": "Xem nội dung",
10921092 "Remove the file": "Xóa tập tin",
10931093 "Unique to this chat": "Duy nhất cho cuộc trò chuyện này",
10941094 "Checkpoints inherit the Note from their parent, and can be changed individually after that.": "Điểm kiểm tra kế thừa Ghi chú từ cha mẹ của chúng và có thể được thay đổi riêng lẻ sau đó.",
10951095 "Include in World Info Scanning": "Bao gồm trong Quét thông tinWorld thếInfo giớiscanning",
10961096 "Before Main Prompt / Story String": "Trước Lời nhắc chính/Chuỗi câu chuyện",
10971097 "After Main Prompt / Story String": "Sau lời nhắcPrompt chính/chuỗi câu chuyện",
10981098 "as": "BẰNG",
10991099 "Insertion Frequency": "Tần số chèn",
11001100 "(0 = Disable, 1 = Always)": "(0 = Tắt, 1 = Luôn luôn)",
@@ -1116,8 +1116,8 @@
11161116 "Global CFG": "CFG toàn cầu",
11171117 "Will be used as the default CFG options for every chat unless overridden.": "Sẽ được sử dụng làm tùy chọn CFG mặc định cho mọi cuộc trò chuyện trừ khi bị ghi đè.",
11181118 "CFG Prompt Cascading": "Xếp tầng nhắc nhở CFG",
11191119 "Combine positive/negative prompts from other boxes.": "Kết hợp những lời nhắcPrompt tích cực/tiêu cực từ các ô khác.",
11201120 "For example, ticking the chat, global, and character boxes combine all negative prompts into a comma-separated string.": "Ví dụ: việc đánh dấu vào các hộp trò chuyện, chung và ký tự sẽ kết hợp tất cả các lời nhắcPrompt phủ định thành một chuỗi được phân tách bằng dấu phẩy.",
11211121 "Always Include": "Luôn bao gồm",
11221122 "Chat Negatives": "Trò chuyện phủ định",
11231123 "Character Negatives": "Nhân vật tiêu cực",
@@ -1127,35 +1127,35 @@
11271127 "Token Probabilities": "Xác suất Mã thông báo",
11281128 "Select a token to see alternatives considered by the AI.": "Chọn một mã thông báo để xem các phương án thay thế được AI xem xét.",
11291129 "Not connected to API!": "Không kết nối với API!",
11301130 "Type a message, or /? for help": "Nhập tin nhắnđó đi bồ ơi, hoặc /? để đượctui giúpbày đỡcho",
11311131 "Continue script execution": "Tiếp tục thực thi tập lệnh",
11321132 "Pause script execution": "Tạm dừng thực thi tập lệnh",
11331133 "Abort script execution": "Hủy bỏ việc thực thi tập lệnh",
11341134 "Abort request": "Hủy yêu cầu",
11351135 "Continue the last message": "Tiếp tục từ tin nhắn cuối cùng",
11361136 "Send a message": "Gửi một tin nhắn",
11371137 "Close chat": "Đóng trò chuyện",
11381138 "Toggle Panels": "Chuyển đổiBật bảng lên",
11391139 "Back to parent chat": "Quay lại cuộc trò chuyện chachính",
11401140 "Save checkpoint": "Lưu điểm kiểmdiểm tracheckpoint",
11411141 "Convert to group": "Chuyển đổi thành nhóm",
11421142 "Start new chat": "Bắt đầu trò chuyện mới",
11431143 "Manage chat files": "Quản lý tệp trò chuyện",
11441144 "Delete messages": "Xóa tin nhắn",
11451145 "Regenerate": "Tạo lại",
11461146 "Ask AI to write your message for you": "Yêu cầuKêu AI viết tin nhắn của bạn chohộ bạn",
11471147 "Impersonate": "Giả phỏngthoại danh",
11481148 "Continue": "Tiếp tục",
11491149 "Bind user name to that avatar": "RàngLiên buộckết tên người dùng với hình đại diệnavatar đó",
11501150 "Change persona image": "Thay đổi hình ảnh đại diện nhân cách",
11511151 "Select this as default persona for the new chats.": "Chọn đâycái này làm nhân cách mặc định cho các cuộc trò chuyện mới.",
11521152 "Delete persona": "Xóa nhân cách",
11531153 "These characters are the winners of character design contests and have outstandable quality.": "Những nhân vật này là người chiến thắng trong các cuộc thi thiết kế nhân vật và có chất lượng vượt trội.",
11541154 "Contest Winners": "Người chiến thắng cuộc thi",
11551155 "These characters are the finalists of character design contests and have remarkable quality.": "Những nhân vật này lọt vào vòng chung kết của các cuộc thi thiết kế nhân vật và có chất lượng vượt trội.",
11561156 "Featured Characters": "Nhân vật nổi bật",
11571157 "Attach a File": "Đính kèm một tập tin",
11581158 "Open Data Bank": "Mở Ngân hàng dữ liệu mở",
11591159 "Enter a URL or the ID of a Fandom wiki page to scrape:": "Nhập URL hoặc ID của trang wiki Fandom để thu thập:",
11601160 "Examples:": "Ví dụ:",
11611161 "Example:": "Ví dụ:",
@@ -1197,19 +1197,19 @@
11971197 "ext_sum_force_text": "Tóm tắt ngay bây giờ",
11981198 "Disable automatic summary updates. While paused, the summary remains as-is. You can still force an update by pressing the Summarize now button (which is only available with the Main API).": "Tắt cập nhật tóm tắt tự động. Trong khi tạm dừng, tóm tắt vẫn giữ nguyên. Bạn vẫn có thể buộc cập nhật bằng cách nhấn nút Tóm tắt ngay (chỉ khả dụng với API chính).",
11991199 "ext_sum_pause": "Tạm ngừng",
12001200 "Omit World Info and Author's Note from text to be summarized. Only has an effect when using the Main API. The Extras API always omits WI/AN.": "Bỏ qua Thông tin thếWorld giớiInfo và Ghi chú của tác giả khỏi văn bản cần tóm tắt. Chỉ có tác dụng khi sử dụng API chính. API bổ sung luôn bỏ qua WI/AN.",
12011201 "ext_sum_no_wi_an": "Không có WI/AN",
12021202 "ext_sum_settings_tip": "Chỉnh sửa lời nhắcPrompt tóm tắt, vị trí chèn, v.v.",
12031203 "ext_sum_settings": "Cài đặt tóm tắt",
12041204 "ext_sum_prompt_builder": "Trình tạo nhắc nhở",
12051205 "ext_sum_prompt_builder_1_desc": "Tiện ích mở rộng sẽ xây dựng lời nhắcPrompt riêng bằng cách sử dụng các thông báo chưa được tóm tắt. Chặn cuộc trò chuyện cho đến khi bản tóm tắt được tạo.",
12061206 "ext_sum_prompt_builder_1": "Nguyên, chặn",
12071207 "ext_sum_prompt_builder_2_desc": "Tiện ích mở rộng sẽ xây dựng lời nhắcPrompt riêng bằng cách sử dụng các thông báo chưa được tóm tắt. Không chặn cuộc trò chuyện trong khi bản tóm tắt đang được tạo. Không phải tất cả các chương trình phụ trợ đều hỗ trợ chế độ này.",
12081208 "ext_sum_prompt_builder_2": "Nguyên, không chặn",
12091209 "ext_sum_prompt_builder_3_desc": "Tiện ích mở rộng sẽ sử dụng trình tạo lời nhắcPrompt chính thông thường và thêm yêu cầu tóm tắt vào đó làm thông báo hệ thống cuối cùng.",
12101210 "ext_sum_prompt_builder_3": "Cổ điển, chặn",
12111211 "Summary Prompt": "Lời nhắc tóm tắt",
12121212 "ext_sum_restore_default_prompt_tip": "Khôi phục lời nhắcPrompt mặc định",
12131213 "ext_sum_prompt_placeholder": "Lời nhắc này sẽ được gửi tới AI để yêu cầu tạo bản tóm tắt. {{words}} sẽ phân giải thành tham số 'Số từ'.",
12141214 "ext_sum_target_length_1": "Độ dài tóm tắt mục tiêu",
12151215 "ext_sum_target_length_2": null,
@@ -1257,13 +1257,13 @@
12571257 "ext_regex_user_input": "Đầu vào của người dùng",
12581258 "ext_regex_ai_output": "Đầu ra AI",
12591259 "Slash Commands": "Lệnh gạch chéo",
12601260 "ext_regex_min_depth_desc": "Khi áp dụng cho lời nhắcPrompt hoặc hiển thị, chỉ ảnh hưởng đến các tin nhắn có độ sâu ít nhất N cấp độ. 0 = tin nhắn cuối cùng, 1 = tin nhắn áp chót, v.v. Chỉ tính các mục WI @Depth và các tin nhắn có thể sử dụng được, tức là không bị ẩn hoặc hệ thống.",
12611261 "Min Depth": "Độ sâu tối thiểu",
12621262 "ext_regex_min_depth_placeholder": "Vô hạn",
12631263 "ext_regex_max_depth_desc": "Khi áp dụng cho lời nhắcPrompt hoặc màn hình, chỉ ảnh hưởng đến tin nhắn không quá N cấp độ. 0 = tin nhắn cuối cùng, 1 = tin nhắn áp chót, v.v. Chỉ tính các mục WI @Depth và các tin nhắn có thể sử dụng được, tức là không bị ẩn hoặc hệ thống.",
12641264 "ext_regex_other_options": "Sự lựa chọn khác",
12651265 "Only Format Display": "Chỉ hiển thị định dạng",
12661266 "ext_regex_only_format_prompt_desc": "Lịch sử trò chuyện sẽ không thay đổi, chỉ có lời nhắcPrompt khi yêu cầu được gửi (khi tạo).",
12671267 "Only Format Prompt (?)": "Chỉ định dạng nhắc nhở",
12681268 "Run On Edit": "Chạy trên Chỉnh sửa",
12691269 "ext_regex_substitute_regex_desc": "Thay thế {{macros}} trong Tìm Regex trước khi chạy nó",
@@ -1285,13 +1285,13 @@
12851285 "sd_Raw_Last_Message": "Tin nhắn cuối cùng thô",
12861286 "sd_Background": "Lý lịch",
12871287 "Image Generation": "Tạo hình ảnh",
12881288 "sd_refine_mode": "Cho phép chỉnh sửa lời nhắcPrompt theo cách thủ công trước khi gửi chúng đến API thế hệ",
12891289 "sd_refine_mode_txt": "Chỉnh sửa lời nhắcPrompt trước khi tạo",
12901290 "sd_interactive_mode": "Tự động tạo hình ảnh khi gửi tin nhắn như “gửi cho tôi ảnh con mèo”.",
12911291 "sd_interactive_mode_txt": "Chế độ tương tác",
12921292 "sd_multimodal_captioning": "Sử dụng chú thích đa phương thức để tạo lời nhắcPrompt về chân dung người dùng và nhân vật dựa trên hình đại diện của họ.",
12931293 "sd_multimodal_captioning_txt": "Sử dụng chú thích đa phương thức cho ảnh chân dung",
12941294 "sd_expand": "Tự động mở rộng lời nhắcPrompt bằng mô hình tạo văn bản",
12951295 "sd_expand_txt": "Lời nhắc tự động nâng cao",
12961296 "sd_snap": "Điều chỉnh nhanh các yêu cầu tạo có tỷ lệ khung hình bắt buộc (chân dung, hình nền) về độ phân giải đã biết gần nhất, đồng thời cố gắng duy trì số lượng pixel tuyệt đối (được khuyến nghị cho SDXL).",
12971297 "sd_snap_txt": "Chụp độ phân giải được điều chỉnh tự động",
@@ -1341,14 +1341,14 @@
13411341 "Hires. Fix": "Thuê. Sửa chữa",
13421342 "Upscaler": "nâng cấp",
13431343 "Upscale by": "Cao cấp bởi",
13441344 "Denoising strength": "SứcMức mạnhđộ khử nhiễunoise",
13451345 "Hires steps (2nd pass)": "Thuê bước (đạt thứ 2)",
13461346 "Preset for prompt prefix and negative prompt": "Đặt trước cho tiền tố lời nhắcPromptlời nhắcPrompt phủ định",
13471347 "Style": "Phong cách",
13481348 "Save style": "Lưu kiểu",
13491349 "Delete style": "Xóa kiểu",
13501350 "Common prompt prefix": "Tiền tố nhắc chung",
13511351 "sd_prompt_prefix_placeholder": "Sử dụng {prompt} để chỉ định vị trí chèn lời nhắcPrompt được tạo",
13521352 "Negative common prompt prefix": "Tiền tố dấu nhắc chung phủ định",
13531353 "Character-specific prompt prefix": "Tiền tố nhắc nhở dành riêng cho ký tự",
13541354 "Won't be used in groups.": "Sẽ không được sử dụng trong nhóm.",
@@ -1371,60 +1371,60 @@
13711371 "Current Password:": "Mật khẩu hiện tại:",
13721372 "New Password:": "Mật khẩu mới:",
13731373 "Confirm New Password:": "Xác nhận mật khẩu mới:",
13741374 "Debug Warning": "Các chức năng trong danh mục này chỉ dành cho người dùng nâng caopro. Đừng nhấp vào bất cứ thứ gì nếu bạn không chắc chắn về hậu quả.",
13751375 "Execute": "HànhThực hìnhhiện",
13761376 "Are you sure you want to delete this user?": "Bạn có chắc chắn muốn xóa người dùng này?",
13771377 "Deleting:": "Đang xóa:",
13781378 "Also wipe user data.": "Đồng thời xóa dữ liệu người dùng.",
13791379 "Warning:": "Cảnh báo:",
13801380 "This action is irreversible.": "Hành động này không thể đảohoàn ngượctác.",
13811381 "Type the user's handle below to confirm:": "Nhập tên người dùng bên dưới để xác nhận:",
13821382 "Import Characters": "Nhập ký tự",
13831383 "Enter the URL of the content to import": "Nhập URL của nội dung cần nhập",
13841384 "Supported sources:": "Các nguồn được hỗ trợ:",
13851385 "char_import_1": "Nhân vật Chub (Liên kết trực tiếp hoặc ID)",
13861386 "char_import_example": "Ví dụ:",
13871387 "char_import_2": "Sách về Chub (LiênNhập kếtURL trực tiếp hoặc ID)",
13881388 "char_import_3": "Nhân vật JanitorAI (LiênNhập kếtURL trực tiếp hoặc UUID)",
13891389 "char_import_4": "Nhân vật Pygmalion.chat (LiênNhập kếtURL trực tiếp hoặc UUID)",
13901390 "char_import_5": "Ký tự AICharacterCard.com (LiênNhập kếtURL trực tiếp hoặc ID)",
13911391 "char_import_6": "Liên kếtNhập PNG trực tiếp (tham khảo",
13921392 "char_import_7": "đối với các máy chủ được phép)",
13931393 "char_import_8": "Nhân vật RisuRealm (Liên kếtURL trực tiếp)",
13941394 "Supports importing multiple characters.": "Hỗ trợ nhập nhiều ký tự.",
13951395 "Write each URL or ID into a new line.": "Viết mỗi URL hoặc ID vào một dòng mới.",
13961396 "Export for character": "Xuất cho nhân vật",
13971397 "Export prompts for this character, including their order.": "Xuất lời nhắcPrompt cho ký tự này, bao gồm cả thứ tự của chúng.",
13981398 "Export all": "Xuất tất cả",
13991399 "Export all your prompts to a file": "Xuất tất cả lời nhắcPrompt của bạn sang một tệp",
14001400 "Insert prompt": "Chèn lời mờiPrompt",
14011401 "Delete prompt": "Xóa lời mờiPrompt",
14021402 "Import a prompt list": "Nhập danh sách lời mờiPrompt",
14031403 "Export this prompt list": "Xuất danh sách lời mờiPrompt này",
14041404 "Reset current character": "Đặt lại nhân vật hiện tại",
14051405 "New prompt": "Lời mờiPrompt mới",
14061406 "Prompts": "Lời mờiPrompts",
14071407 "Total Tokens:": "Tổng sốcộng token:",
14081408 "prompt_manager_tokens": "Bộ thôngTách báotừ",
14091409 "Are you sure you want to reset your settings to factory defaults?": "Bạn có chắc chắn muốn đặt lại cài đặt của mình về mặc định ban đầu không?",
14101410 "Don't forget to save a snapshot of your settings before proceeding.": "Đừng quên lưusao ảnhlưu chụpsnapshot nhanhcủa cài đặt của bạn trước khi tiếp tục nha.",
14111411 "Settings Snapshots": "Cài đặt Ảnh chụp nhanhSnapshot",
14121412 "Record a snapshot of your current settings.": "Ghi lại ảnh chụp nhanhSnapshot cáccủa cài đặt hiện tại của bạn.",
14131413 "Make a Snapshot": "Tạo một ảnh chụp nhanhSnapshot",
14141414 "Restore this snapshot": "Khôi phục ảnh chụp nhanhSnapshot này",
14151415 "Hi,": "CHÀO,",
14161416 "To enable multi-account features, restart the SillyTavern server with": "Để bật tính năng nhiềuđa tài khoản, hãy khởi động lại máy chủ SillyTavern bằng",
14171417 "set to true in the config.yaml file.": "cách đặt enableUserAccounts thành true trong tệp config.yaml.",
14181418 "Account Info": "Thông tin tài khoản",
14191419 "To change your user avatar, use the buttons below or select a default persona in the Persona Management menu.": "Để thay đổi hình đại diện người dùng của bạn, hãy sử dụng các nút bên dưới hoặc chọn nhân vật mặc định trong menu Quản lý Persona.",
14201420 "Set your custom avatar.": "Thiết lập hình đạiĐặt diệnavatar tùy chỉnh của bạn.",
14211421 "Remove your custom avatar.": "Xóa hình đại diện tùy chỉnhavatar của bạn.",
14221422 "Handle:": "Xử lý:",
14231423 "This account is password protected.": "Tài khoản này được bảo vệ bằng mật khẩu.",
14241424 "This account is not password protected.": "Tài khoản này không được bảo vệ bằng mật khẩu.",
14251425 "Account Actions": "HànhCác độngthao tác tài khoản",
14261426 "Change Password": "Đổi mật khẩu",
14271427 "Manage your settings snapshots.": "Quản lý ảnh chụp nhanhsnapshots cài đặt của bạn.",
14281428 "Download a complete backup of your user data.": "Tải xuống bản sao lưu đầy đủ dữ liệu người dùng của bạn.",
14291429 "Download Backup": "Tải xuống bản sao lưu",
14301430 "Danger Zone": "Khu vực nguy hiểm",
@@ -1434,21 +1434,21 @@
14341434 "Reset Everything": "Đặt lại mọi thứ",
14351435 "Reset Code:": "Đặt lại mã:",
14361436 "Want to update?": "Muốn cập nhật?",
14371437 "How to start chatting?": "Làm thếBắt nàođầu đểchat bắtchit đầukiểu trò chuyệnzậy?",
14381438 "Click _space": "NhấpĐúp chuộtvào",
14391439 "and select a": "và chọn một",
14401440 "Chat API": "API TròChat chuyệnAPI",
14411441 "and pick a character.": "và chọn một nhân vật.",
14421442 "You can browse a list of bundled characters in the": "Bạn có thể duyệtxem qua danh sách các ký tựnhân đượcvật nhóm trongsẵn",
14431443 "Download Extensions & Assets": "Tải xuống tiện ích mở rộng và nội dungAsests",
14441444 "menu within": "thực đơnmenu bên trong",
14451445 "Confused or lost?": "LạcĐơ lõngđầu hoặchay bốilạc rốitrôi?",
14461446 "click these icons!": "nhấp vào các biểu tượng này!",
14471447 "in the chat bar": "trong thanh trò chuyện",
14481448 "SillyTavern Documentation Site": "Trang tàiTài liệu về SillyTavern",
14491449 "Extras Installation Guide": "Hướng dẫn cài đặt bổ sung",
14501450 "Still have questions?": "Bạn vẫn còn câuthắc hỏimắc?",
14511451 "Join the SillyTavern Discord": "Tham gia Kênh Discord của SillyTavern",
14521452 "Post a GitHub issue": "Đăng một vấn đề trên GitHub",
14531453 "Contact the developers": "Liên hệ với các nhà phát triểnDevs"
14541454}
public/locales/zh-cn.json+2 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "逐位显示生成的回复",
3333 "context size(tokens)": "上下文长度(以词符数计)",
3434 "unlocked": "解锁",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "仅在您的模型支持大于4096个词符的上下文大小时启用此选项仅在您的模型支持大于8192个词符的上下文大小时启用此选项",
3636 "Max prompt cost:": "最大提示词费用:",
3737 "Display the response bit by bit as it is generated.": "随着回复的生成,逐位显示结果。",
3838 "When this is off, responses will be displayed all at once when they are complete.": "当此选项关闭时,回复将在完成后一次性显示。",
@@ -1305,6 +1305,7 @@
13051305 "ext_sum_current_summary": "当前摘要:",
13061306 "ext_sum_restore_previous": "恢复上一个",
13071307 "ext_sum_memory_placeholder": "摘要将在这里生成...",
1308+ "ext_sum_restore_tip": "恢复先前的摘要;重复使用以清除此聊天的摘要状态",
13081309 "ext_sum_force_tip": "立即触发摘要更新。",
13091310 "ext_sum_force_text": "现在总结",
13101311 "Disable automatic summary updates. While paused, the summary remains as-is. You can still force an update by pressing the Summarize now button (which is only available with the Main API).": "禁用自动摘要更新。暂停时,摘要保持原样。您仍然可以通过按“立即汇总”按钮(仅适用于主 API)强制更新。",
public/locales/zh-tw.json+1 -1
@@ -32,7 +32,7 @@
3232 "Streaming_desc": "生成時逐位顯示回應。當此功能關閉時,回應將在完成後一次顯示。",
3333 "context size(tokens)": "上下文大小(符記數)",
3434 "unlocked": "解鎖",
3535 "Only enable this if your model supports context sizes greater than 40968192 tokens": "僅在您的模型支援超過4096個符記的上下文大小時啟用此功能僅在您的模型支援超過8192個符記的上下文大小時啟用此功能",
3636 "Max prompt cost:": "最多提示詞費用",
3737 "Display the response bit by bit as it is generated.": "生成時逐位顯示回應。",
3838 "When this is off, responses will be displayed all at once when they are complete.": "關閉時,回應將在完成後一次性顯示。",
public/script.js+326 -235
@@ -1,4 +1,4 @@
11import { humanizedDateTime, favsToHotswap, getMessageTimeStamp, dragElement, isMobile, initRossMods, shouldSendOnEnter, addSafariPatch } from './scripts/RossAscends-mods.js';
22import { userStatsHandler, statMesProcess, initStats } from './scripts/stats.js';
33import {
44 generateKoboldWithStreaming,
@@ -78,12 +78,11 @@ import {
7878 renderStoryString,
7979 sortEntitiesList,
8080 registerDebugFunction,
81- ui_mode,
82- switchSimpleMode,
8381 flushEphemeralStoppingStrings,
8482 context_presets,
8583 resetMovableStyles,
8684 forceCharacterEditorTokenize,
85+ applyPowerUserSettings,
8786} from './scripts/power-user.js';
8887
8988import {
@@ -101,7 +100,7 @@ import {
101100 proxies,
102101 loadProxyPresets,
103102 selected_proxy,
104103 initOpenaiinitOpenAI,
105104} from './scripts/openai.js';
106105
107106import {
@@ -118,9 +117,9 @@ import {
118117} from './scripts/nai-settings.js';
119118
120119import {
121120 createNewBookmarkinitBookmarks,
122121 showBookmarksButtons,
123122 createBranchupdateBookmarkDisplay,
124123} from './scripts/bookmarks.js';
125124
126125import {
@@ -212,7 +211,7 @@ import {
212211 selectContextPreset,
213212} from './scripts/instruct-mode.js';
214213import { initLocales, t, translate } from './scripts/i18n.js';
215214import { getFriendlyTokenizerName, getTokenCount, getTokenCountAsync, getTokenizerModel, initTokenizers, saveTokenCache, TOKENIZER_SUPPORTED_KEY } from './scripts/tokenizers.js';
216215import {
217216 user_avatar,
218217 getUserAvatars,
@@ -225,8 +224,8 @@ import {
225224import { getBackgrounds, initBackgrounds, loadBackgroundSettings, background_settings } from './scripts/backgrounds.js';
226225import { hideLoader, showLoader } from './scripts/loader.js';
227226import { BulkEditOverlay, CharacterContextMenu } from './scripts/BulkEditOverlay.js';
228227import { loadFeatherlessModels, loadMancerModels, loadOllamaModels, loadTogetherAIModels, loadInfermaticAIModels, loadOpenRouterModels, loadVllmModels, loadAphroditeModels, loadDreamGenModels, initTextGenModels, loadTabbyModels } from './scripts/textgen-models.js';
229228import { appendFileContent, hasPendingFileAttachment, populateFileAttachment, decodeStyleTags, encodeStyleTags, isExternalMediaAllowed, getCurrentEntityId, preserveNeutralChat, restoreNeutralChat } from './scripts/chats.js';
230229import { initPresetManager } from './scripts/preset-manager.js';
231230import { MacrosParser, evaluateMacros, getLastMessageId } from './scripts/macros.js';
232231import { currentUser, setUserControls } from './scripts/user.js';
@@ -243,6 +242,9 @@ import { INTERACTABLE_CONTROL_CLASS, initKeyboard } from './scripts/keyboard.js'
243242import { initDynamicStyles } from './scripts/dynamic-styles.js';
244243import { SlashCommandEnumValue, enumTypes } from './scripts/slash-commands/SlashCommandEnumValue.js';
245244import { commonEnumProviders, enumIcons } from './scripts/slash-commands/SlashCommandCommonEnumsProvider.js';
245+import { initInputMarkdown } from './scripts/input-md-formatting.js';
246+import { AbortReason } from './scripts/util/AbortReason.js';
247+import { initSystemPrompts } from './scripts/sysprompt.js';
246248
247249//exporting functions and vars for mods
248250export {
@@ -411,10 +413,12 @@ export const event_types = {
411413 MESSAGE_FILE_EMBEDDED: 'message_file_embedded',
412414 IMPERSONATE_READY: 'impersonate_ready',
413415 CHAT_CHANGED: 'chat_id_changed',
416+ GENERATION_AFTER_COMMANDS: 'GENERATION_AFTER_COMMANDS',
414417 GENERATION_STARTED: 'generation_started',
415418 GENERATION_STOPPED: 'generation_stopped',
416419 GENERATION_ENDED: 'generation_ended',
417420 EXTENSIONS_FIRST_LOAD: 'extensions_first_load',
421+ EXTENSION_SETTINGS_LOADED: 'extension_settings_loaded',
418422 SETTINGS_LOADED: 'settings_loaded',
419423 SETTINGS_UPDATED: 'settings_updated',
420424 GROUP_UPDATED: 'group_updated',
@@ -452,7 +456,9 @@ export const event_types = {
452456 // TODO: Naming convention is inconsistent with other events
453457 CHARACTER_DELETED: 'characterDeleted',
454458 CHARACTER_DUPLICATED: 'character_duplicated',
455- SMOOTH_STREAM_TOKEN_RECEIVED: 'smooth_stream_token_received',
459+ /** @deprecated The event is aliased to STREAM_TOKEN_RECEIVED. */
460+ SMOOTH_STREAM_TOKEN_RECEIVED: 'stream_token_received',
461+ STREAM_TOKEN_RECEIVED: 'stream_token_received',
456462 FILE_ATTACHMENT_DELETED: 'file_attachment_deleted',
457463 WORLDINFO_FORCE_ACTIVATE: 'worldinfo_force_activate',
458464 OPEN_CHARACTER_LIBRARY: 'open_character_library',
@@ -460,6 +466,7 @@ export const event_types = {
460466 LLM_FUNCTION_TOOL_CALL: 'llm_function_tool_call',
461467 ONLINE_STATUS_CHANGED: 'online_status_changed',
462468 IMAGE_SWIPED: 'image_swiped',
469+ CONNECTION_PROFILE_LOADED: 'connection_profile_loaded',
463470};
464471
465472export const eventSource = new EventEmitter();
@@ -482,18 +489,11 @@ const promptStorage = new localforage.createInstance({ name: 'SillyTavern_Prompt
482489export let itemizedPrompts = [];
483490
484491export const systemUserName = 'SillyTavern System';
492+export const neutralCharacterName = 'Assistant';
485493let default_user_name = 'User';
486494export let name1 = default_user_name;
487495export let name2 = 'SillyTavern System'systemUserName;
488496export let chat = [];
489-let safetychat = [
490- {
491- name: systemUserName,
492- is_user: false,
493- create_date: 0,
494- mes: 'You deleted a character/chat and arrived back here for safety reasons! Pick another character!',
495- },
496-];
497497let chatSaveTimeout;
498498let importFlashTimeout;
499499export let isChatSaving = false;
@@ -512,6 +512,7 @@ let saveCharactersPage = 0;
512512export const default_avatar = 'img/ai4.png';
513513export const system_avatar = 'img/five.png';
514514export const comment_avatar = 'img/quill.png';
515+export const default_user_avatar = 'img/user-default.png';
515516export let CLIENT_VERSION = 'SillyTavern:UNKNOWN:Cohee#1207'; // For Horde header
516517let optionsPopper = Popper.createPopper(document.getElementById('options_button'), document.getElementById('options'), {
517518 placement: 'top-start',
@@ -561,14 +562,14 @@ export const system_message_types = {
561562 GROUP: 'group',
562563 EMPTY: 'empty',
563564 GENERIC: 'generic',
564- BOOKMARK_CREATED: 'bookmark_created',
565- BOOKMARK_BACK: 'bookmark_back',
566565 NARRATOR: 'narrator',
567566 COMMENT: 'comment',
568567 SLASH_COMMANDS: 'slash_commands',
569568 FORMATTING: 'formatting',
570569 HOTKEYS: 'hotkeys',
571570 MACROS: 'macros',
571+ WELCOME_PROMPT: 'welcome_prompt',
572+ ASSISTANT_NOTE: 'assistant_note',
572573};
573574
574575/**
@@ -592,6 +593,17 @@ export const extension_prompt_roles = {
592593
593594export const MAX_INJECTION_DEPTH = 1000;
594595
596+const SAFETY_CHAT = [
597+ {
598+ name: systemUserName,
599+ force_avatar: system_avatar,
600+ is_system: true,
601+ is_user: false,
602+ create_date: 0,
603+ mes: 'You deleted a character/chat and arrived back here for safety reasons! Pick another character!',
604+ },
605+];
606+
595607export let system_messages = {};
596608
597609async function getSystemMessages() {
@@ -661,19 +673,25 @@ async function getSystemMessages() {
661673 is_system: true,
662674 mes: 'Generic system message. User `text` parameter to override the contents',
663675 },
664676 bookmark_createdwelcome_prompt: {
665677 name: systemUserName,
666678 force_avatar: system_avatar,
667679 is_user: false,
668680 is_system: true,
669- mes: 'Checkpoint created! Click here to open the checkpoint chat: <a class="bookmark_link" file_name="{0}" href="javascript:void(null);">{1}</a>',
681+ mes: await renderTemplateAsync('welcomePrompt'),
682+ extra: {
683+ isSmallSys: true,
684+ },
670685 },
671686 bookmark_backassistant_note: {
672687 name: systemUserName,
673688 force_avatar: system_avatar,
674689 is_user: false,
675690 is_system: true,
676- mes: 'Click here to return to the previous chat: <a class="bookmark_link" file_name="{0}" href="javascript:void(null);">Return</a>',
691+ mes: await renderTemplateAsync('assistantNote'),
692+ extra: {
693+ isSmallSys: true,
694+ },
677695 },
678696 };
679697}
@@ -851,7 +869,6 @@ let abortController;
851869
852870//css
853871var css_send_form_display = $('<div id=send_form></div>').css('display');
854-const MAX_GENERATION_LOOPS = 5;
855872
856873var kobold_horde_model = '';
857874
@@ -911,23 +928,27 @@ async function firstLoadInit() {
911928 throw new Error('Initialization failed');
912929 }
913930
931+ addSafariPatch();
914932 await getClientVersion();
915933 await readSecretState();
916934 await initLocales();
917935 initDefaultSlashCommands();
918936 initTextGenModels();
937+ initOpenAI();
938+ initSystemPrompts();
939+ await initPresetManager();
919940 await getSystemMessages();
920941 sendSystemMessage(system_message_types.WELCOME);
942+ sendSystemMessage(system_message_types.WELCOME_PROMPT);
921943 await getSettings();
922944 initKeyboard();
923945 initDynamicStyles();
924946 initTags();
925947 initOpenaiinitBookmarks();
926948 await getUserAvatars(true, user_avatar);
927949 await getCharacters();
928950 await getBackgrounds();
929951 await initTokenizers();
930- await initPresetManager();
931952 initBackgrounds();
932953 initAuthorsNote();
933954 initPersonas();
@@ -935,6 +956,7 @@ async function firstLoadInit() {
935956 initStats();
936957 initCfg();
937958 initLogprobs();
959+ initInputMarkdown();
938960 doDailyExtensionUpdatesCheck();
939961 await hideLoader();
940962 await fixViewport();
@@ -947,8 +969,8 @@ async function fixViewport() {
947969 document.body.style.position = '';
948970}
949971
950972function cancelStatusCheck(reason = 'Manually cancelled status check') {
951973 abortStatusCheck?.abort(new AbortReason(reason));
952974 abortStatusCheck = new AbortController();
953975 setOnlineStatus('no_connection');
954976}
@@ -1148,7 +1170,7 @@ async function getStatusTextgen() {
11481170 body: JSON.stringify({
11491171 api_server: endpoint,
11501172 api_type: textgen_settings.type,
11511173 legacy_api: textgen_settings.legacy_api && (textgen_settings.type === OOBA || textgen_settings.type === APHRODITE),
11521174 }),
11531175 signal: abortStatusCheck.signal,
11541176 });
@@ -1182,6 +1204,9 @@ async function getStatusTextgen() {
11821204 } else if (textgen_settings.type === FEATHERLESS) {
11831205 loadFeatherlessModels(data?.data);
11841206 setOnlineStatus(textgen_settings.featherless_model);
1207+ } else if (textgen_settings.type === TABBY) {
1208+ loadTabbyModels(data?.data);
1209+ setOnlineStatus(textgen_settings.tabby_model || data?.result);
11851210 } else {
11861211 setOnlineStatus(data?.result);
11871212 }
@@ -1193,12 +1218,20 @@ async function getStatusTextgen() {
11931218 // Determine instruct mode preset
11941219 autoSelectInstructPreset(online_status);
11951220
1221+ const supportsTokenization = response.headers.get('x-supports-tokenization') === 'true';
1222+ supportsTokenization ? sessionStorage.setItem(TOKENIZER_SUPPORTED_KEY, 'true') : sessionStorage.removeItem(TOKENIZER_SUPPORTED_KEY);
1223+
11961224 // We didn't get a 200 status code, but the endpoint has an explanation. Which means it DID connect, but I digress.
11971225 if (online_status === 'no_connection' && data.response) {
11981226 toastr.error(data.response, 'API Error', { timeOut: 5000, preventDuplicates: true });
11991227 }
12001228 } catch (err) {
1229+ if (err instanceof AbortReason) {
1230+ console.info('Status check aborted.', err.reason);
1231+ } else {
12011232 console.error('Error getting status', err);
1233+
1234+ }
12021235 setOnlineStatus('no_connection');
12031236 }
12041237
@@ -1820,6 +1853,7 @@ export async function deleteLastMessage() {
18201853}
18211854
18221855export async function reloadCurrentChat() {
1856+ preserveNeutralChat();
18231857 await clearChat();
18241858 chat.length = 0;
18251859
@@ -1831,6 +1865,7 @@ export async function reloadCurrentChat() {
18311865 }
18321866 else {
18331867 resetChatState();
1868+ restoreNeutralChat();
18341869 await getCharacters();
18351870 await printMessages();
18361871 await eventSource.emit(event_types.CHAT_CHANGED, getCurrentChatId());
@@ -1843,7 +1878,7 @@ export async function reloadCurrentChat() {
18431878/**
18441879 * Send the message currently typed into the chat box.
18451880 */
18461881export async function sendTextareaMessage() {
18471882 if (is_send_press) return;
18481883 if (isExecutingCommandsFromChatInput) return;
18491884
@@ -1852,6 +1887,7 @@ export function sendTextareaMessage() {
18521887 // message was sent from a character (not the user or the system).
18531888 const textareaText = String($('#send_textarea').val());
18541889 if (power_user.continue_on_send &&
1890+ !hasPendingFileAttachment() &&
18551891 !textareaText &&
18561892 !selected_group &&
18571893 chat.length &&
@@ -1861,6 +1897,10 @@ export function sendTextareaMessage() {
18611897 generateType = 'continue';
18621898 }
18631899
1900+ if (textareaText && !selected_group && this_chid === undefined && name2 !== neutralCharacterName) {
1901+ await newAssistantChat();
1902+ }
1903+
18641904 Generate(generateType);
18651905}
18661906
@@ -1940,9 +1980,7 @@ export function messageFormatting(mes, ch_name, isSystem, isUser, messageId) {
19401980 mes = mes.replaceAll('<', '&lt;').replaceAll('>', '&gt;');
19411981 }
19421982
19431983 if (this_chid === undefined && !selected_groupisSystem) {
1944- mes = mes.replace(/\*\*(.+?)\*\*/g, '<b>$1</b>');
1945- } else if (!isSystem) {
19461984 // Save double quotes in tags as a special character to prevent them from being encoded
19471985 if (!power_user.encode_tags) {
19481986 mes = mes.replace(/<([^>]+)>/g, function (_, contents) {
@@ -1981,13 +2019,6 @@ export function messageFormatting(mes, ch_name, isSystem, isUser, messageId) {
19812019 });
19822020 }
19832021
1984- /*
1985- // Hides bias from empty messages send with slash commands
1986- if (isSystem) {
1987- mes = mes.replace(/\{\{[\s\S]*?\}\}/gm, "");
1988- }
1989- */
1990-
19912022 if (!power_user.allow_name2_display && ch_name && !isUser && !isSystem) {
19922023 mes = mes.replace(new RegExp(`(^|\n)${escapeRegex(ch_name)}:`, 'g'), '$1');
19932024 }
@@ -2093,6 +2124,7 @@ function getMessageFromTemplate({
20932124 tokenCount && mes.find('.tokenCounterDisplay').text(`${tokenCount}t`);
20942125 title && mes.attr('title', title);
20952126 timerValue && mes.find('.mes_timer').attr('title', timerTitle).text(timerValue);
2127+ bookmarkLink && updateBookmarkDisplay(mes);
20962128
20972129 if (power_user.timestamp_model_icon && extra?.api) {
20982130 insertSVGIcon(mes, extra);
@@ -2190,7 +2222,7 @@ export function addCopyToCodeBlocks(messageElement) {
21902222 codeBlocks.get(i).appendChild(copyButton);
21912223 copyButton.addEventListener('pointerup', function (event) {
21922224 navigator.clipboard.writeText(codeBlocks.get(i).innerText);
21932225 toastr.info('t`Copied!'`, '', { timeOut: 2000 });
21942226 });
21952227 }
21962228 }
@@ -2703,7 +2735,7 @@ function addPersonaDescriptionExtensionPrompt() {
27032735 const INJECT_TAG = 'PERSONA_DESCRIPTION';
27042736 setExtensionPrompt(INJECT_TAG, '', extension_prompt_types.IN_PROMPT, 0);
27052737
27062738 if (!power_user.persona_description || power_user.persona_description_position === persona_description_positions.NONE) {
27072739 return;
27082740 }
27092741
@@ -2793,21 +2825,22 @@ export function baseChatReplace(value, name1, name2) {
27932825 */
27942826export function getCharacterCardFields() {
27952827 const result = { system: '', mesExamples: '', description: '', personality: '', persona: '', scenario: '', jailbreak: '', version: '' };
2828+ result.persona = baseChatReplace(power_user.persona_description?.trim(), name1, name2);
2829+
27962830 const character = characters[this_chid];
27972831
27982832 if (!character) {
27992833 return result;
28002834 }
28012835
28022836 const scenarioText = chat_metadata['scenario'] || characters[this_chid]?character.scenario || '';
28032837 result.description = baseChatReplace(characters[this_chid]character.description?.trim(), name1, name2);
28042838 result.personality = baseChatReplace(characters[this_chid]character.personality?.trim(), name1, name2);
28052839 result.scenario = baseChatReplace(scenarioText.trim(), name1, name2);
28062840 result.mesExamples = baseChatReplace(characters[this_chid]character.mes_example?.trim(), name1, name2);
28072841 result.personasystem = power_user.prefer_character_prompt ? baseChatReplace(power_usercharacter.persona_descriptiondata?.system_prompt?.trim(), name1, name2) : '';
28082842 result.systemjailbreak = power_user.prefer_character_promptprefer_character_jailbreak ? baseChatReplace(characters[this_chid]character.data?.system_promptpost_history_instructions?.trim(), name1, name2) : '';
2809- result.jailbreak = power_user.prefer_character_jailbreak ? baseChatReplace(characters[this_chid].data?.post_history_instructions?.trim(), name1, name2) : '';
2843+ result.version = character.data?.character_version ?? '';
2810- result.version = characters[this_chid].data?.character_version ?? '';
28112844
28122845 if (selected_group) {
28132846 const groupCards = getGroupCharacterCards(selected_group, Number(this_chid));
@@ -2824,8 +2857,13 @@ export function getCharacterCardFields() {
28242857}
28252858
28262859export function isStreamingEnabled() {
28272860 const noStreamSources = [chat_completion_sources.SCALE, chat_completion_sources.AI21];
2828- return ((main_api == 'openai' && oai_settings.stream_openai && !noStreamSources.includes(oai_settings.chat_completion_source) && !(oai_settings.chat_completion_source == chat_completion_sources.MAKERSUITE && oai_settings.google_model.includes('bison')))
2861+ return (
2862+ (main_api == 'openai' &&
2863+ oai_settings.stream_openai &&
2864+ !noStreamSources.includes(oai_settings.chat_completion_source) &&
2865+ !(oai_settings.chat_completion_source == chat_completion_sources.OPENAI && oai_settings.openai_model.startsWith('o1-')) &&
2866+ !(oai_settings.chat_completion_source == chat_completion_sources.MAKERSUITE && oai_settings.google_model.includes('bison')))
28292867 || (main_api == 'kobold' && kai_settings.streaming_kobold && kai_flags.can_use_streaming)
28302868 || (main_api == 'novel' && nai_settings.streaming_novel)
28312869 || (main_api == 'textgenerationwebui' && textgen_settings.streaming));
@@ -3068,6 +3106,12 @@ class StreamingProcessor {
30683106 this.hideMessageButtons(this.messageId);
30693107 generatedPromptCache = '';
30703108 unblockGeneration();
3109+
3110+ const noEmitTypes = ['swipe', 'impersonate', 'continue'];
3111+ if (!noEmitTypes.includes(this.type)) {
3112+ eventSource.emit(event_types.MESSAGE_RECEIVED, this.messageId);
3113+ eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, this.messageId);
3114+ }
30713115 }
30723116
30733117 setFirstSwipe(messageId) {
@@ -3117,6 +3161,7 @@ class StreamingProcessor {
31173161 if (logprobs) {
31183162 this.messageLogprobs.push(...(Array.isArray(logprobs) ? logprobs : [logprobs]));
31193163 }
3164+ await eventSource.emit(event_types.STREAM_TOKEN_RECEIVED, text);
31203165 await sw.tick(() => this.onProgressStreaming(this.messageId, this.continueMessage + text));
31213166 }
31223167 const seconds = (timestamps[timestamps.length - 1] - timestamps[0]) / 1000;
@@ -3221,7 +3266,7 @@ export async function generateRaw(prompt, api, instructOverride, quietToLoud, sy
32213266 }
32223267
32233268 if (data.error) {
32243269 throw new Error(data.errorresponse);
32253270 }
32263271
32273272 const message = cleanUpMessage(extractMessageFromData(data), false, false, true);
@@ -3293,14 +3338,16 @@ function removeLastMessage() {
32933338 * @param {GenerateOptions} options Generation options
32943339 * @param {boolean} dryRun Whether to actually generate a message or just assemble the prompt
32953340 * @returns {Promise<any>} Returns a promise that resolves when the text is done generating.
32963341 * @typedef {{automatic_trigger?: boolean, force_name2?: boolean, quiet_prompt?: string, quietToLoud?: boolean, skipWIAN?: boolean, force_chid?: number, signal?: AbortSignal, quietImage?: string, maxLoops?: number, quietName?: string }} GenerateOptions
32973342 */
32983343export async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, maxLoops, quietName } = {}, dryRun = false) {
32993344 console.log('Generate entered');
3300- eventSource.emit(event_types.GENERATION_STARTED, type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, maxLoops }, dryRun);
33013345 setGenerationProgress(0);
33023346 generation_started = new Date();
33033347
3348+ // Occurs every time, even if the generation is aborted due to slash commands execution
3349+ await eventSource.emit(event_types.GENERATION_STARTED, type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage }, dryRun);
3350+
33043351 // Don't recreate abort controller if signal is passed
33053352 if (!(abortController && signal)) {
33063353 abortController = new AbortController();
@@ -3320,6 +3367,9 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
33203367 }
33213368 }
33223369
3370+ // Occurs only if the generation is not aborted due to slash commands execution
3371+ await eventSource.emit(event_types.GENERATION_AFTER_COMMANDS, type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage }, dryRun);
3372+
33233373 if (main_api == 'kobold' && kai_settings.streaming_kobold && !kai_flags.can_use_streaming) {
33243374 toastr.error('Streaming is enabled, but the version of Kobold used does not support token streaming.', undefined, { timeOut: 10000, preventDuplicates: true });
33253375 unblockGeneration(type);
@@ -3329,7 +3379,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
33293379 if (main_api === 'textgenerationwebui' &&
33303380 textgen_settings.streaming &&
33313381 textgen_settings.legacy_api &&
33323382 (textgen_settings.type === OOBA || textgen_settings.type === APHRODITE)) {
33333383 toastr.error('Streaming is not supported for the Legacy API. Update Ooba and use new API to enable streaming.', undefined, { timeOut: 10000, preventDuplicates: true });
33343384 unblockGeneration(type);
33353385 return Promise.resolve();
@@ -3359,7 +3409,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
33593409 if (selected_group && !is_group_generating) {
33603410 if (!dryRun) {
33613411 // Returns the promise that generateGroupWrapper returns; resolves when generation is done
33623412 return generateGroupWrapper(false, type, { quiet_prompt, force_chid, signal: abortController.signal, quietImage, maxLoops });
33633413 }
33643414
33653415 const characterIndexMap = new Map(characters.map((char, index) => [char.avatar, index]));
@@ -3377,7 +3427,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
33773427 .filter((index) => index !== undefined && index !== null);
33783428
33793429 if (memberIds.length > 0) {
33803430 if (menu_type != 'character_edit') setCharacterId(memberIds[0]);
33813431 setCharacterName('');
33823432 } else {
33833433 console.log('No enabled members found');
@@ -3393,14 +3443,11 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
33933443 quiet_prompt = main_api == 'novel' && !quietToLoud ? adjustNovelInstructionPrompt(quiet_prompt) : quiet_prompt;
33943444 }
33953445
33963446 const isChatValidhasBackendConnection = online_status !== 'no_connection' && this_chid !== undefined;
33973447
33983448 // We can't do anything because we're not in a chat right now. (Unless it's a dry run, in which case we need to
33993449 // assemble the prompt so we can count its tokens regardless of whether a chat is active.)
34003450 if (!dryRun && !isChatValidhasBackendConnection) {
3401- if (this_chid === undefined) {
3402- toastr.warning('Сharacter is not selected');
3403- }
34043451 is_send_press = false;
34053452 return Promise.resolve();
34063453 }
@@ -3446,8 +3493,17 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
34463493 //PRE FORMATING STRING
34473494 //*********************************
34483495
3496+ // These generation types should not attach pending files to the chat
3497+ const noAttachTypes = [
3498+ 'regenerate',
3499+ 'swipe',
3500+ 'impersonate',
3501+ 'quiet',
3502+ 'continue',
3503+ 'ask_command',
3504+ ];
34493505 //for normal messages sent from user..
34503506 if ((textareaText != '' || (hasPendingFileAttachment() && !noAttachTypes.includes(type))) && !automatic_trigger && type !== 'quiet' && !dryRun) {
34513507 // If user message contains no text other than bias - send as a system message
34523508 if (messageBias && !removeMacros(textareaText)) {
34533509 sendSystemMessage(system_message_types.GENERIC, ' ', { bias: messageBias });
@@ -3471,9 +3527,14 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
34713527 jailbreak,
34723528 } = getCharacterCardFields();
34733529
34743530 if (isInstructmain_api !== 'openai') {
3475- system = power_user.prefer_character_prompt && system ? system : baseChatReplace(power_user.instruct.system_prompt, name1, name2);
3531+ if (power_user.sysprompt.enabled) {
3476- system = formatInstructModeSystemPrompt(substituteParams(system, name1, name2, power_user.instruct.system_prompt));
3532+ system = power_user.prefer_character_prompt && system ? system : baseChatReplace(power_user.sysprompt.content, name1, name2);
3533+ system = isInstruct ? formatInstructModeSystemPrompt(substituteParams(system, name1, name2, power_user.sysprompt.content)) : system;
3534+ } else {
3535+ // Nullify if it's not enabled
3536+ system = '';
3537+ }
34773538 }
34783539
34793540 // Depth prompt (character-specific A/N)
@@ -3486,9 +3547,9 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
34863547 setExtensionPrompt('DEPTH_PROMPT_' + index, value.text, extension_prompt_types.IN_CHAT, value.depth, extension_settings.note.allowWIScan, role);
34873548 });
34883549 } else {
34893550 const depthPromptText = baseChatReplace(characters[this_chid]?.data?.extensions?.depth_prompt?.prompt?.trim(), name1, name2) || '';
34903551 const depthPromptDepth = characters[this_chid]?.data?.extensions?.depth_prompt?.depth ?? depth_prompt_depth_default;
34913552 const depthPromptRole = getExtensionPromptRoleByName(characters[this_chid]?.data?.extensions?.depth_prompt?.role ?? depth_prompt_role_default);
34923553 setExtensionPrompt('DEPTH_PROMPT', depthPromptText, extension_prompt_types.IN_CHAT, depthPromptDepth, extension_settings.note.allowWIScan, depthPromptRole);
34933554 }
34943555
@@ -3724,9 +3785,9 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
37243785 const storyStringParams = {
37253786 description: description,
37263787 personality: personality,
3727- persona: persona,
3788+ persona: power_user.persona_description_position == persona_description_positions.IN_PROMPT ? persona : '',
37283789 scenario: scenario,
37293790 system: isInstruct ? system : '',
37303791 char: name2,
37313792 user: name1,
37323793 wiBefore: worldInfoBefore,
@@ -3758,7 +3819,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
37583819 }
37593820
37603821 let examplesString = '';
37613822 let chatString = addChatsPreamble(addChatsSeparator(''));
37623823 let cyclePrompt = '';
37633824
37643825 async function getMessagesTokenCount() {
@@ -3767,10 +3828,10 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
37673828 storyString,
37683829 afterScenarioAnchor,
37693830 examplesString,
3831+ userAlignmentMessage,
37703832 chatString,
3771- quiet_prompt,
3833+ modifyLastPromptLine(''),
37723834 cyclePrompt,
3773- userAlignmentMessage,
37743835 ].join('').replace(/\r/gm, '');
37753836 return getTokenCountAsync(encodeString, power_user.token_padding);
37763837 }
@@ -3801,8 +3862,8 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
38013862 }
38023863
38033864 tokenCount += await getTokenCountAsync(item.replace(/\r/gm, ''));
3804- chatString = item + chatString;
38053865 if (tokenCount < this_max_context) {
3866+ chatString = chatString + item;
38063867 arrMes[index] = item;
38073868 lastAddedIndex = Math.max(lastAddedIndex, index);
38083869 } else {
@@ -3828,8 +3889,8 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
38283889 }
38293890
38303891 tokenCount += await getTokenCountAsync(item.replace(/\r/gm, ''));
3831- chatString = item + chatString;
38323892 if (tokenCount < this_max_context) {
3893+ chatString = chatString + item;
38333894 arrMes[i] = item;
38343895 lastAddedIndex = Math.max(lastAddedIndex, i);
38353896 } else {
@@ -4026,15 +4087,16 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
40264087 async function checkPromptSize() {
40274088 console.debug('---checking Prompt size');
40284089 setPromptString();
4090+ const jointMessages = mesSend.map((e) => `${e.extensionPrompts.join('')}${e.message}`).join('');
40294091 const prompt = [
40304092 beforeScenarioAnchor,
40314093 storyString,
40324094 afterScenarioAnchor,
40334095 mesExmString,
4034- mesSend.map((e) => `${e.extensionPrompts.join('')}${e.message}`).join(''),
4096+ addChatsPreamble(addChatsSeparator(jointMessages)),
40354097 '\n',
4098+ modifyLastPromptLine(''),
40364099 generatedPromptCache,
4037- quiet_prompt,
40384100 ].join('').replace(/\r/gm, '');
40394101 let thisPromptContextSize = await getTokenCountAsync(prompt, power_user.token_padding);
40404102
@@ -4299,8 +4361,9 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
42994361 this_max_context: this_max_context,
43004362 padding: power_user.token_padding,
43014363 main_api: main_api,
43024364 instruction: isInstructmain_api !== 'openai' && power_user.sysprompt.enabled ? substituteParams(power_user.prefer_character_prompt && system ? system : power_user.instructsysprompt.system_promptcontent) : '',
43034365 userPersona: (power_user.persona_descriptionpersona_description_position == persona_description_positions.IN_PROMPT ? (persona || '') : ''),
4366+ tokenizer: getFriendlyTokenizerName(main_api).tokenizerName || '',
43044367 };
43054368
43064369 //console.log(additionalPromptStuff);
@@ -4362,9 +4425,9 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
43624425 generatedPromptCache = '';
43634426
43644427 if (data?.response) {
43654428 toastr.error(data.response, 'API Error', { preventDuplicates: true });
43664429 }
43674430 throw new Error(data?.response);
43684431 }
43694432
43704433 //const getData = await response.json();
@@ -4384,7 +4447,6 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
43844447 const displayIncomplete = type === 'quiet' && !quietToLoud;
43854448 getMessage = cleanUpMessage(getMessage, isImpersonate, isContinue, displayIncomplete);
43864449
4387- if (getMessage.length > 0 || data.allowEmptyResponse) {
43884450 if (isImpersonate) {
43894451 $('#send_textarea').val(getMessage)[0].dispatchEvent(new Event('input', { bubbles: true }));
43904452 generatedPromptCache = '';
@@ -4410,28 +4472,6 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
44104472 if (type !== 'quiet') {
44114473 playMessageSound();
44124474 }
4413- } else {
4414- // If maxLoops is not passed in (e.g. first time generating), set it to MAX_GENERATION_LOOPS
4415- maxLoops ??= MAX_GENERATION_LOOPS;
4416-
4417- if (maxLoops === 0) {
4418- if (type !== 'quiet') {
4419- throwCircuitBreakerError();
4420- }
4421- throw new Error('Generate circuit breaker interruption');
4422- }
4423-
4424- // regenerate with character speech reenforced
4425- // to make sure we leave on swipe type while also adding the name2 appendage
4426- await delay(1000);
4427- // A message was already deleted on regeneration, so instead treat is as a normal gen
4428- if (type === 'regenerate') {
4429- type = 'normal';
4430- }
4431- // The first await is for waiting for the generate to start. The second one is waiting for it to finish
4432- const result = await await Generate(type, { automatic_trigger, force_name2: true, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, quietName, maxLoops: maxLoops - 1 });
4433- return result;
4434- }
44354475
44364476 if (power_user.auto_swipe) {
44374477 console.debug('checking for autoswipeblacklist on non-streaming message');
@@ -4820,6 +4860,13 @@ export function getMaxContextSize(overrideResponseLength = null) {
48204860 console.log(`NovelAI subscription limit reached. Max context size is now ${this_max_context}`);
48214861 }
48224862 }
4863+ if (nai_settings.model_novel.includes('erato')) {
4864+ // subscriber limits coming soon
4865+ this_max_context = Math.min(max_context, 8192);
4866+
4867+ // Added special tokens and whatnot
4868+ this_max_context -= 1;
4869+ }
48234870
48244871 this_max_context = this_max_context - (overrideResponseLength || amount_gen);
48254872 }
@@ -4899,7 +4946,7 @@ async function duplicateCharacter() {
48994946 return '';
49004947}
49014948
49024949export async function itemizedParams(itemizedPrompts, thisPromptSet, incomingMesId) {
49034950 const params = {
49044951 charDescriptionTokens: await getTokenCountAsync(itemizedPrompts[thisPromptSet].charDescription),
49054952 charPersonalityTokens: await getTokenCountAsync(itemizedPrompts[thisPromptSet].charPersonality),
@@ -4918,8 +4965,20 @@ export async function itemizedParams(itemizedPrompts, thisPromptSet) {
49184965 chatInjects: await getTokenCountAsync(itemizedPrompts[thisPromptSet].chatInjects),
49194966 chatVectorsStringTokens: await getTokenCountAsync(itemizedPrompts[thisPromptSet].chatVectorsString),
49204967 dataBankVectorsStringTokens: await getTokenCountAsync(itemizedPrompts[thisPromptSet].dataBankVectorsString),
4968+ modelUsed: chat[incomingMesId]?.extra?.model,
4969+ apiUsed: chat[incomingMesId]?.extra?.api,
49214970 };
49224971
4972+ const getFriendlyName = (value) => $(`#rm_api_block select option[value="${value}"]`).first().text() || value;
4973+
4974+ if (params.apiUsed) {
4975+ params.apiUsed = getFriendlyName(params.apiUsed);
4976+ }
4977+
4978+ if (params.this_main_api) {
4979+ params.mainApiFriendlyName = getFriendlyName(params.this_main_api);
4980+ }
4981+
49234982 if (params.chatInjects) {
49244983 params.ActualChatHistoryTokens = params.ActualChatHistoryTokens - params.chatInjects;
49254984 }
@@ -4998,7 +5057,7 @@ export async function itemizedParams(itemizedPrompts, thisPromptSet) {
49985057 params.promptBiasTokensPercentage = ((params.promptBiasTokens / (params.totalTokensInPrompt)) * 100).toFixed(2);
49995058 params.worldInfoStringTokensPercentage = ((params.worldInfoStringTokens / (params.totalTokensInPrompt)) * 100).toFixed(2);
50005059 params.allAnchorsTokensPercentage = ((params.allAnchorsTokens / (params.totalTokensInPrompt)) * 100).toFixed(2);
50015060 params.selectedTokenizer = itemizedPrompts[thisPromptSet]?.tokenizer || getFriendlyTokenizerName(params.this_main_api).tokenizerName;
50025061 }
50035062 return params;
50045063}
@@ -5034,7 +5093,7 @@ async function promptItemize(itemizedPrompts, requestedMesId) {
50345093 return null;
50355094 }
50365095
50375096 const params = await itemizedParams(itemizedPrompts, thisPromptSet, incomingMesId);
50385097 const flatten = (rawPrompt) => Array.isArray(rawPrompt) ? rawPrompt.map(x => x.content).join('\n') : rawPrompt;
50395098
50405099 const template = params.this_main_api == 'openai'
@@ -5078,7 +5137,7 @@ async function promptItemize(itemizedPrompts, requestedMesId) {
50785137 }
50795138
50805139 navigator.clipboard.writeText(rawPromptValues);
50815140 toastr.info('t`Copied!'`);
50825141 });
50835142
50845143 popup.dlg.querySelector('#showRawPrompt').addEventListener('click', function () {
@@ -5191,11 +5250,6 @@ function getGenerateUrl(api) {
51915250 }
51925251}
51935252
5194-function throwCircuitBreakerError() {
5195- callPopup(`Could not extract reply in ${MAX_GENERATION_LOOPS} attempts. Try generating again`, 'text');
5196- unblockGeneration();
5197-}
5198-
51995253function extractTitleFromData(data) {
52005254 if (main_api == 'koboldhorde') {
52015255 return data.workerName;
@@ -5344,17 +5398,10 @@ export function cleanUpMessage(getMessage, isImpersonate, isContinue, displayInc
53445398 // Regex uses vars, so add before formatting
53455399 getMessage = getRegexedString(getMessage, isImpersonate ? regex_placement.USER_INPUT : regex_placement.AI_OUTPUT);
53465400
5347- if (!displayIncompleteSentences && power_user.trim_sentences) {
5348- getMessage = trimToEndSentence(getMessage, power_user.include_newline);
5349- }
5350-
53515401 if (power_user.collapse_newlines) {
53525402 getMessage = collapseNewlines(getMessage);
53535403 }
53545404
5355- if (power_user.trim_spaces) {
5356- getMessage = getMessage.trim();
5357- }
53585405 // trailing invisible whitespace before every newlines, on a multiline string
53595406 // "trailing whitespace on newlines \nevery line of the string \n?sample text" ->
53605407 // "trailing whitespace on newlines\nevery line of the string\nsample text"
@@ -5446,6 +5493,14 @@ export function cleanUpMessage(getMessage, isImpersonate, isContinue, displayInc
54465493 getMessage = getMessage.trim();
54475494 }
54485495
5496+ if (!displayIncompleteSentences && power_user.trim_sentences) {
5497+ getMessage = trimToEndSentence(getMessage);
5498+ }
5499+
5500+ if (power_user.trim_spaces) {
5501+ getMessage = getMessage.trim();
5502+ }
5503+
54495504 return getMessage;
54505505}
54515506
@@ -5671,12 +5726,12 @@ export function deactivateSendButtons() {
56715726}
56725727
56735728export function resetChatState() {
5729+ // replaces deleted charcter name with system user since it will be displayed next.
5730+ name2 = (this_chid === undefined && neutralCharacterName) ? neutralCharacterName : systemUserName;
56745731 //unsets expected chid before reloading (related to getCharacters/printCharacters from using old arrays)
56755732 this_chid = undefined;
5676- // replaces deleted charcter name with system user since it will be displayed next.
5677- name2 = systemUserName;
56785733 // sets up system user to tell user about having deleted a character
56795734 chat.splice(0, =chat.length, [...safetychat]SAFETY_CHAT);
56805735 // resets chat metadata
56815736 chat_metadata = {};
56825737 // resets the characters array, forcing getcharacters to reset
@@ -5896,11 +5951,16 @@ export function saveChatDebounced() {
58965951 }, 1000);
58975952}
58985953
58995954export async function saveChat(chat_namechatName, withMetadata, mesId) {
59005955 const metadata = { ...chat_metadata, ...(withMetadata || {}) };
59015956 letconst file_namefileName = chat_namechatName ?? characters[this_chid]?.chat;
5957+
5958+ if (!fileName && name2 === neutralCharacterName) {
5959+ // TODO: Do something for a temporary chat with no character.
5960+ return;
5961+ }
59025962
59035963 if (!file_namefileName) {
59045964 console.warn('saveChat called without chat_name and no chat file found');
59055965 return;
59065966 }
@@ -5941,7 +6001,7 @@ export async function saveChat(chat_name, withMetadata, mesId) {
59416001 url: '/api/chats/save',
59426002 data: JSON.stringify({
59436003 ch_name: characters[this_chid].name,
59446004 file_name: file_namefileName,
59456005 chat: save_chat,
59466006 avatar_url: characters[this_chid].avatar,
59476007 }),
@@ -6307,21 +6367,17 @@ export function setUserName(value) {
63076367 console.log(`User name changed to ${name1}`);
63086368 $('#your_name').val(name1);
63096369 if (power_user.persona_show_notifications) {
63106370 toastr.success(t`Your messages will now be sent as ${name1}`, 't`Current persona updated'`);
63116371 }
63126372 saveSettingsDebounced();
63136373}
63146374
63156375async function doOnboarding(avatarId) {
6316- let simpleUiMode = false;
63176376 const template = $('#onboarding_template .onboarding');
6318- template.find('input[name="enable_simple_mode"]').on('input', function () {
6377+ let userName = await callGenericPopup(template, POPUP_TYPE.INPUT, currentUser?.name || name1, { rows: 2, wider: true, cancelButton: false });
6319- simpleUiMode = $(this).is(':checked');
6320- });
6321- let userName = await callGenericPopup(template, POPUP_TYPE.INPUT, currentUser?.name || name1, { rows: 2, wide: true, large: true });
63226378
63236379 if (userName) {
63246380 userName = String(userName).replace('\n', ' ');
63256381 setUserName(userName);
63266382 console.log(`Binding persona ${avatarId} to name ${userName}`);
63276383 power_user.personas[avatarId] = userName;
@@ -6330,12 +6386,6 @@ async function doOnboarding(avatarId) {
63306386 position: persona_description_positions.IN_PROMPT,
63316387 };
63326388 }
6333-
6334- if (simpleUiMode) {
6335- power_user.ui_mode = ui_mode.SIMPLE;
6336- $('#ui_mode_select').val(power_user.ui_mode);
6337- switchSimpleMode();
6338- }
63396389}
63406390
63416391function reloadLoop() {
@@ -6459,6 +6509,9 @@ export async function getSettings() {
64596509 // Load power user settings
64606510 await loadPowerUserSettings(settings, data);
64616511
6512+ // Apply theme toggles from power user settings
6513+ applyPowerUserSettings();
6514+
64626515 // Load character tags
64636516 loadTagsSettings(settings);
64646517
@@ -6513,9 +6566,10 @@ export async function getSettings() {
65136566 selected_button = settings.selected_button;
65146567
65156568 if (data.enable_extensions) {
6569+ const enableAutoUpdate = Boolean(data.enable_extensions_auto_update);
65166570 const isVersionChanged = settings.currentVersion !== currentVersion;
65176571 await loadExtensionSettings(settings, isVersionChanged, enableAutoUpdate);
65186572 await eventSource.emit(event_types.EXTENSION_SETTINGS_LOADED);
65196573 }
65206574
65216575 firstRun = !!settings.firstRun;
@@ -6663,7 +6717,7 @@ function updateMessage(div) {
66636717function openMessageDelete(fromSlashCommand) {
66646718 closeMessageEditor();
66656719 hideSwipeButtons();
66666720 if (fromSlashCommand || (this_chid != undefined && !is_send_press) || (selected_group && !is_group_generating)) {
66676721 $('#dialogue_del_mes').css('display', 'block');
66686722 $('#send_form').css('display', 'none');
66696723 $('.del_checkbox').each(function () {
@@ -6891,15 +6945,13 @@ export async function displayPastChats() {
68916945 }
68926946 // Check whether `text` {string} includes all of the `fragments` {string[]}.
68936947 function matchFragments(fragments, text) {
68946948 if (!text || !text.toLowerCase) {return false;
6895- return false;
6949+ return fragments.every(item => text.toLowerCase().includes(item));
6896- }
6897- return fragments.every(item => text.includes(item));
68986950 }
68996951 const fragments = makeQueryFragments(searchQuery);
69006952 // At least one chat message must match *all* the fragments.
69016953 // Currently, this doesn't match if the fragment matches are distributed across several chat messages.
69026954 return chatContent && Object.values(chatContent).some(message => matchFragments(fragments, message?.mes?.toLowerCase()));
69036955 });
69046956
69056957 console.debug(filteredData);
@@ -7423,7 +7475,7 @@ export function showSwipeButtons() {
74237475
74247476 const currentMessage = $('#chat').children().filter(`[mesid="${chat.length - 1}"]`);
74257477 const swipeId = chat[chat.length - 1].swipe_id;
74267478 varconst swipesCounterHTMLswipeCounterText = (`${(swipeId + 1)}\u200B/\u200b${(chat[chat.length - 1].swipes.length)}`);
74277479
74287480 if (swipeId !== undefined && (chat[chat.length - 1].swipes.length > 1 || swipeId > 0)) {
74297481 currentMessage.children('.swipe_left').css('display', 'flex');
@@ -7440,7 +7492,7 @@ export function showSwipeButtons() {
74407492 }
74417493 //console.log(swipesCounterHTML);
74427494
74437495 $('.swipes-counter').htmltext(swipesCounterHTMLswipeCounterText);
74447496
74457497 //console.log(swipeId);
74467498 //console.log(chat[chat.length - 1].swipes.length);
@@ -7452,6 +7504,53 @@ export function hideSwipeButtons() {
74527504 $('#chat').find('.swipe_left').css('display', 'none');
74537505}
74547506
7507+/**
7508+ * Deletes a swipe from the chat.
7509+ *
7510+ * @param {number?} swipeId - The ID of the swipe to delete. If not provided, the current swipe will be deleted.
7511+ * @returns {Promise<number>|undefined} - The ID of the new swipe after deletion.
7512+ */
7513+export async function deleteSwipe(swipeId = null) {
7514+ if (swipeId && (isNaN(swipeId) || swipeId < 0)) {
7515+ toastr.warning(`Invalid swipe ID: ${swipeId + 1}`);
7516+ return;
7517+ }
7518+
7519+ const lastMessage = chat[chat.length - 1];
7520+ if (!lastMessage || !Array.isArray(lastMessage.swipes) || !lastMessage.swipes.length) {
7521+ toastr.warning('No messages to delete swipes from.');
7522+ return;
7523+ }
7524+
7525+ if (lastMessage.swipes.length <= 1) {
7526+ toastr.warning('Can\'t delete the last swipe.');
7527+ return;
7528+ }
7529+
7530+ swipeId = swipeId ?? lastMessage.swipe_id;
7531+
7532+ if (swipeId < 0 || swipeId >= lastMessage.swipes.length) {
7533+ toastr.warning(`Invalid swipe ID: ${swipeId + 1}`);
7534+ return;
7535+ }
7536+
7537+ lastMessage.swipes.splice(swipeId, 1);
7538+
7539+ if (Array.isArray(lastMessage.swipe_info) && lastMessage.swipe_info.length) {
7540+ lastMessage.swipe_info.splice(swipeId, 1);
7541+ }
7542+
7543+ // Select the next swip, or the one before if it was the last one
7544+ const newSwipeId = Math.min(swipeId, lastMessage.swipes.length - 1);
7545+ lastMessage.swipe_id = newSwipeId;
7546+ lastMessage.mes = lastMessage.swipes[newSwipeId];
7547+
7548+ await saveChatConditional();
7549+ await reloadCurrentChat();
7550+
7551+ return newSwipeId;
7552+}
7553+
74557554export async function saveMetadata() {
74567555 if (selected_group) {
74577556 await editGroup(selected_group, true, false);
@@ -7782,13 +7881,19 @@ async function createOrEditCharacter(e) {
77827881 formData.set('avatar', convertedFile);
77837882 }
77847883
7884+ const headers = getRequestHeaders();
7885+ delete headers['Content-Type'];
7886+
77857887 if ($('#form_create').attr('actiontype') == 'createcharacter') {
77867888 if (String($('#character_name_pole').val()).length >=== 0) {
7889+ toastr.error('Name is required');
7890+ return;
7891+ }
77877892 if (is_group_generating || is_send_press) {
77887893 toastr.error('Cannot create characters while generating. Stop the request and try again.', 'Creation aborted');
7789- throw new Error('Cannot import character while generating');
7894+ return;
77907895 }
7791-
7896+ try {
77927897 //if the character name text area isn't empty (only posible when creating a new character)
77937898 let url = '/api/characters/create';
77947899
@@ -7803,18 +7908,19 @@ async function createOrEditCharacter(e) {
78037908
78047909 formData.append('extensions', JSON.stringify(create_save.extensions));
78057910
7806- await jQuery.ajax({
7911+ const fetchResult = await fetch(url, {
78077912 typemethod: 'POST',
78087913 urlheaders: urlheaders,
78097914 databody: formData,
7810- beforeSend: function () {
7915+ cache: 'no-cache',
7811- $('#create_button').attr('disabled', String(true));
7916+ });
7812- $('#create_button').attr('value', '⏳');
7917+
7813- },
7918+ if (!fetchResult.ok) {
7814- cache: false,
7919+ throw new Error('Fetch result is not ok');
7815- contentType: false,
7920+ }
7816- processData: false,
7921+
7817- success: async function (html) {
7922+ const avatarId = await fetchResult.text();
7923+
78187924 $('#character_cross').trigger('click'); //closes the advanced character editing popup
78197925 const fields = [
78207926 { id: '#character_name_pole', callback: value => create_save.name = value },
@@ -7849,33 +7955,29 @@ async function createOrEditCharacter(e) {
78497955
78507956 create_save.avatar = '';
78517957
7852- $('#create_button').removeAttr('disabled');
78537958 $('#add_avatar_button').replaceWith(
78547959 $('#add_avatar_button').val('').clone(true),
78557960 );
78567961
7857- $('#create_button').attr('value', '✅');
78587962 let oldSelectedChar = null;
78597963 if (this_chid !== undefined) {
78607964 oldSelectedChar = characters[this_chid].avatar;
78617965 }
78627966
78637967 console.log(`new avatar id: ${htmlavatarId}`);
78647968 createTagMapFromList('#tagList', htmlavatarId);
78657969 await getCharacters();
78667970
78677971 select_rm_info('char_create', htmlavatarId, oldSelectedChar);
78687972
78697973 crop_data = undefined;
7870- },
7974+
78717975 error: } functioncatch (jqXHR, exceptionerror) {
7872- $('#create_button').removeAttr('disabled');
7976+ console.error('Error creating character', error);
7873- },
7977+ toastr.error('Failed to create character');
7874- });
7875- } else {
7876- toastr.error('Name is required');
78777978 }
78787979 } else {
7980+ try {
78797981 let url = '/api/characters/edit';
78807982
78817983 if (crop_data != undefined) {
@@ -7890,19 +7992,16 @@ async function createOrEditCharacter(e) {
78907992 }
78917993 }
78927994
7893- await jQuery.ajax({
7995+ const fetchResult = await fetch(url, {
78947996 type method: 'POST',
78957997 url headers: urlheaders,
78967998 data body: formData,
7897- beforeSend: function () {
7999+ cache: 'no-cache',
7898- $('#create_button').attr('disabled', String(true));
8000+ });
7899- $('#create_button').attr('value', 'Save');
8001+
7900- },
8002+ if (!fetchResult.ok) {
7901- cache: false,
8003+ throw new Error('Fetch result is not ok');
7902- contentType: false,
8004+ }
7903- processData: false,
7904- success: async function (html) {
7905- $('#create_button').removeAttr('disabled');
79068005
79078006 await getOneCharacter(formData.get('avatar_url'));
79088007 favsToHotswap(); // Update fav state
@@ -7912,7 +8011,7 @@ async function createOrEditCharacter(e) {
79128011 );
79138012 $('#create_button').attr('value', 'Save');
79148013 crop_data = undefined;
79158014 await eventSource.emit(event_types.CHARACTER_EDITED, { detail: { id: this_chid, character: characters[this_chid] } });
79168015
79178016 // Recreate the chat if it hasn't been used at least once (i.e. with continue).
79188017 const message = getFirstMessage();
@@ -7932,13 +8031,10 @@ async function createOrEditCharacter(e) {
79328031 await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, messageId);
79338032 await saveChatConditional();
79348033 }
7935- },
8034+ } catch (error) {
7936- error: function (jqXHR, exception) {
8035+ console.log(error);
7937- $('#create_button').removeAttr('disabled');
7938- console.log('Error! Either a file with the same name already existed, or the image file provided was in an invalid format. Double check that the image is not a webp.');
79398036 toastr.error('Something went wrong while saving the character, or the image file provided was in an invalid format. Double check that the image is not a webp.');
7940- },
8037+ }
7941- });
79428038 }
79438039}
79448040
@@ -7995,7 +8091,7 @@ window['SillyTavern'].getContext = function () {
79958091 registerHelper: () => { },
79968092 registerMacro: MacrosParser.registerMacro.bind(MacrosParser),
79978093 unregisterMacro: MacrosParser.unregisterMacro.bind(MacrosParser),
79988094 registedDebugFunctionregisterDebugFunction: registerDebugFunction,
79998095 /** @deprecated Use renderExtensionTemplateAsync instead. */
80008096 renderExtensionTemplate: renderExtensionTemplate,
80018097 renderExtensionTemplateAsync: renderExtensionTemplateAsync,
@@ -8163,24 +8259,6 @@ function swipe_left() { // when we swipe left..but no generation.
81638259 }
81648260}
81658261
8166-/**
8167- * Creates a new branch from the message with the given ID
8168- * @param {number} mesId Message ID
8169- * @returns {Promise<string>} Branch file name
8170- */
8171-async function branchChat(mesId) {
8172- const fileName = await createBranch(mesId);
8173- await saveItemizedPrompts(fileName);
8174-
8175- if (selected_group) {
8176- await openGroupChat(selected_group, fileName);
8177- } else {
8178- await openCharacterChat(fileName);
8179- }
8180-
8181- return fileName;
8182-}
8183-
81848262// when we click swipe right button
81858263const swipe_right = () => {
81868264 if (chat.length - 1 === Number(this_edit_mes_id)) {
@@ -8426,51 +8504,53 @@ for (const chatCompletionSource of Object.values(chat_completion_sources)) {
84268504 };
84278505}
84288506
84298507async function selectContextCallback(_args, name) {
84308508 if (!name) {
84318509 return power_user.context.preset;
84328510 }
84338511
8512+ const quiet = isTrueBoolean(args?.quiet);
84348513 const contextNames = context_presets.map(preset => preset.name);
84358514 const fuse = new Fuse(contextNames);
84368515 const result = fuse.search(name);
84378516
84388517 if (result.length === 0) {
84398518 !quiet && toastr.warning(`Context presettemplate "${name}" not found`);
84408519 return '';
84418520 }
84428521
84438522 const foundName = result[0].item;
84448523 selectContextPreset(foundName, { quiet: quiet });
84458524 return foundName;
84468525}
84478526
84488527async function selectInstructCallback(_args, name) {
84498528 if (!name) {
8450- return power_user.instruct.preset;
8529+ return power_user.instruct.enabled || isTrueBoolean(args?.forceGet) ? power_user.instruct.preset : '';
84518530 }
84528531
8532+ const quiet = isTrueBoolean(args?.quiet);
84538533 const instructNames = instruct_presets.map(preset => preset.name);
84548534 const fuse = new Fuse(instructNames);
84558535 const result = fuse.search(name);
84568536
84578537 if (result.length === 0) {
84588538 !quiet && toastr.warning(`Instruct presettemplate "${name}" not found`);
84598539 return '';
84608540 }
84618541
84628542 const foundName = result[0].item;
84638543 selectInstructPreset(foundName, { quiet: quiet });
84648544 return foundName;
84658545}
84668546
84678547async function enableInstructCallback() {
84688548 $('#instruct_enabled').prop('checked', true).trigger('input').trigger('change');
84698549 return '';
84708550}
84718551
84728552async function disableInstructCallback() {
84738553 $('#instruct_enabled').prop('checked', false).trigger('input').trigger('change');
84748554 return '';
84758555}
84768556
@@ -8511,20 +8591,27 @@ async function connectAPISlash(args, text) {
85118591 return '';
85128592 }
85138593
8594+ let connectionRequired = false;
8595+
8596+ if (main_api !== apiConfig.selected) {
85148597 $(`#main_api option[value='${apiConfig.selected || text}']`).prop('selected', true);
85158598 $('#main_api').trigger('change');
8599+ connectionRequired = true;
8600+ }
85168601
85178602 if (apiConfig.source && oai_settings.chat_completion_source !== apiConfig.source) {
85188603 $(`#chat_completion_source option[value='${apiConfig.source}']`).prop('selected', true);
85198604 $('#chat_completion_source').trigger('change');
8605+ connectionRequired = true;
85208606 }
85218607
85228608 if (apiConfig.type && textgen_settings.type !== apiConfig.type) {
85238609 $(`#textgen_type option[value='${apiConfig.type}']`).prop('selected', true);
85248610 $('#textgen_type').trigger('change');
8611+ connectionRequired = true;
85258612 }
85268613
85278614 if (connectionRequired && apiConfig.button) {
85288615 $(apiConfig.button).trigger('click');
85298616 }
85308617
@@ -8749,7 +8836,7 @@ export async function renameChat(oldFileName, newName) {
87498836 is_group: !!selected_group,
87508837 avatar_url: characters[this_chid]?.avatar,
87518838 original_file: `${oldFileName}.jsonl`,
87528839 renamed_file: `${newName.trim()}.jsonl`,
87538840 };
87548841
87558842 try {
@@ -8770,6 +8857,10 @@ export async function renameChat(oldFileName, newName) {
87708857 throw new Error('Server returned an error.');
87718858 }
87728859
8860+ if (data.sanitizedFileName) {
8861+ newName = data.sanitizedFileName;
8862+ }
8863+
public/scripts/BulkEditOverlay.js+0 -0
public/scripts/PromptManager.js+0 -0
public/scripts/RossAscends-mods.js+0 -0
public/scripts/backgrounds.js+0 -0
public/scripts/bookmarks.js+0 -0
public/scripts/chats.js+0 -0
public/scripts/extensions.js+0 -0
public/scripts/extensions/caption/index.js+0 -0
public/scripts/extensions/caption/settings.html+0 -0
public/scripts/extensions/connection-manager/index.js+0 -0
public/scripts/extensions/connection-manager/manifest.json+0 -0
public/scripts/extensions/connection-manager/profile.html+0 -0
public/scripts/extensions/connection-manager/settings.html+0 -0
public/scripts/extensions/connection-manager/style.css+0 -0
public/scripts/extensions/connection-manager/view.html+0 -0
public/scripts/extensions/expressions/index.js+0 -0
public/scripts/extensions/memory/index.js+0 -0
public/scripts/extensions/memory/settings.html+0 -0
public/scripts/extensions/quick-reply/src/QuickReply.js+0 -0
public/scripts/extensions/quick-reply/src/SlashCommandHandler.js+0 -0
public/scripts/extensions/shared.js+0 -0
public/scripts/extensions/stable-diffusion/index.js+0 -0
public/scripts/extensions/stable-diffusion/settings.html+0 -0
public/scripts/extensions/token-counter/index.js+0 -0
public/scripts/extensions/token-counter/style.css+0 -0
public/scripts/extensions/translate/index.js+0 -0
public/scripts/extensions/tts/azure.js+0 -0
public/scripts/extensions/tts/index.js+0 -0
public/scripts/extensions/tts/openai-compatible.js+0 -0
public/scripts/extensions/vectors/index.js+0 -0
public/scripts/extensions/vectors/settings.html+0 -0
public/scripts/group-chats.js+0 -0
public/scripts/horde.js+0 -0
public/scripts/input-md-formatting.js+0 -0
public/scripts/instruct-mode.js+0 -0
public/scripts/nai-settings.js+0 -0
public/scripts/openai.js+0 -0
public/scripts/personas.js+0 -0
public/scripts/popup.js+0 -0
public/scripts/power-user.js+0 -0
public/scripts/preset-manager.js+0 -0
public/scripts/samplerSelect.js+0 -0
public/scripts/slash-commands.js+0 -0
public/scripts/slash-commands/SlashCommandCommonEnumsProvider.js+0 -0
public/scripts/slash-commands/SlashCommandScope.js+0 -0
public/scripts/sse-stream.js+0 -0
public/scripts/sysprompt.js+0 -0
public/scripts/templates/assistantNote.html+0 -0
public/scripts/templates/chatRename.html+0 -0
public/scripts/templates/createCheckpoint.html+0 -0
public/scripts/templates/hotkeys.html+0 -0
public/scripts/templates/itemizationChat.html+0 -0
public/scripts/templates/itemizationText.html+0 -0
public/scripts/templates/macros.html+0 -0
public/scripts/templates/masterExport.html+0 -0
public/scripts/templates/masterImport.html+0 -0
public/scripts/templates/migrateInstructPrompt.html+0 -0
public/scripts/templates/newChatConfirm.html+0 -0
public/scripts/templates/proxyConnectionWarning.html+0 -0
public/scripts/templates/welcome.html+0 -0
public/scripts/templates/welcomePrompt.html+0 -0
public/scripts/textgen-models.js+0 -0
public/scripts/textgen-settings.js+0 -0
public/scripts/tokenizers.js+0 -0
public/scripts/util/AbortReason.js+0 -0
public/scripts/utils.js+0 -0
public/scripts/variables.js+0 -0
public/scripts/world-info.js+0 -0
public/style.css+0 -0
server.js+0 -0
src/cohere-stream.js+0 -0
src/constants.js+0 -0
src/endpoints/backends/chat-completions.js+0 -0
src/endpoints/backends/text-completions.js+0 -0
src/endpoints/characters.js+0 -0
src/endpoints/chats.js+0 -0
src/endpoints/content-manager.js+0 -0
src/endpoints/google.js+0 -0
src/endpoints/horde.js+0 -0
src/endpoints/novelai.js+0 -0
src/endpoints/openai.js+0 -0
src/endpoints/openrouter.js+0 -0
src/endpoints/presets.js+0 -0
src/endpoints/settings.js+0 -0
src/endpoints/stable-diffusion.js+0 -0
src/endpoints/tokenizers.js+0 -0
src/endpoints/translate.js+0 -0
src/endpoints/vectors.js+0 -0
src/prompt-converters.js+0 -0
src/request-proxy.js+0 -0
src/tokenizers/jamba.model+0 -0

Binary file

src/users.js+0 -0
src/util.js+0 -0
src/vectors/makersuite-vectors.js+0 -0
Diff truncated