47f744dfdf
* + Implemented support for overrides of system prompt and example messages from chat metadata. This is needed for BYAF import parity. No UI for modifying these yet, but they're easily changeable in the chat files already. These metadata settings are already supported by BYAF import as of the last commit so this just enables them. * + Updated scenario overrides popup to now be a character settings overrides popup. + Updated the template to have a new section for example messages and system prompts + Updated the logic to handle all three overrides + Updated logic to only save when the popup is closed, instead of on every character input. * Preserve import, allow scrolling * Add confirmation on override removal. Always save pending changes. * Update dialog layout, add editor expand buttons * Fix mes examples override in group chats with Join mode * Update group chat button title * Specify that Prefer Char. Prompt is a requirement * Fix group join mode not replacing macros in overrides --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
46 lines
3.2 KiB
HTML
46 lines
3.2 KiB
HTML
<div class="scenario_override flexFlowColumn flex-container justifyLeft">
|
|
<div class="title_restorable alignItemsBaseline">
|
|
<h3><span data-i18n="Chat Character Settings Override" class="margin0">Chat Character Settings Override</span></h3>
|
|
<div class="menu_button menu_button_icon remove_scenario_override">
|
|
<i class="fa-solid fa-trash-can "></i>
|
|
<span data-i18n="Remove">Remove</span>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<strong data-i18n="Unique to this chat.">Unique to this chat.</strong>
|
|
<span data-group="true" data-i18n="All group members will use the following values instead of what is specified in their character cards.">All group members will use the following values instead of what is specified in their character cards.</span>
|
|
<span data-character="true" data-i18n="The following values will be used instead of the value set in the character card.">The following values will be used instead of the value set in the character card.</span>
|
|
<span data-i18n="Checkpoints inherit the overrides from their parent, and can be changed individually after that.">Checkpoints inherit the overrides from their parent, and can be changed individually after that.</span>
|
|
</div>
|
|
<hr>
|
|
<div class="wide100p flex-container flexFlowColumn">
|
|
<h4 class="flex-container alignItemsBaseline">
|
|
<span data-i18n="Scenario">Scenario</span>
|
|
<i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="chat_scenario_override" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
|
|
</h4>
|
|
<div>
|
|
<textarea id="chat_scenario_override" class="chat_scenario text_pole" rows="6" data-i18n="[placeholder]Type Scenario here..." placeholder="Type Scenario here..."></textarea>
|
|
</div>
|
|
<h4 class="flex-container alignItemsBaseline">
|
|
<span data-i18n="Examples of dialogue">Examples of dialogue</span>
|
|
<i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="chat_examples_override" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
|
|
</h4>
|
|
<div>
|
|
<textarea id="chat_examples_override" class="chat_examples text_pole" rows="6" data-i18n="[placeholder]Type Example Messages here..." placeholder="Type Example Messages here..."></textarea>
|
|
</div>
|
|
<h4 class="flex-container alignItemsBaseline">
|
|
<span data-i18n="Main Prompt">Main Prompt</span>
|
|
<small>
|
|
<small>—</small>
|
|
<i class="fa-solid fa-user-cog"></i>
|
|
<b data-i18n="Prefer Char. Prompt">Prefer Char. Prompt</b>
|
|
<span data-i18n="MUST be enabled!">MUST be enabled!</span>
|
|
</small>
|
|
<i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="chat_system_prompt_override" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
|
|
</h4>
|
|
<div>
|
|
<textarea id="chat_system_prompt_override" class="chat_system_prompt text_pole" rows="6" data-i18n="[placeholder]Type System Prompt here..." placeholder="Type System Prompt here..."></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|