mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Adjust styles of OAI prompt boxes. Add more expressions to offline mode.
This commit is contained in:
@ -660,8 +660,7 @@
|
|||||||
Wrap in Quotes
|
Wrap in Quotes
|
||||||
</label>
|
</label>
|
||||||
<div class="range-block-counter justifyLeft">
|
<div class="range-block-counter justifyLeft">
|
||||||
Wrap entire user message in quotes before sending. Volatile impact on AI responses.
|
Wrap entire user message in quotes before sending.
|
||||||
Helps when using basic chats. Hurts when combining RP-style narration with quotes.
|
|
||||||
Leave off if you use quotes manually for speech.
|
Leave off if you use quotes manually for speech.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -678,7 +677,7 @@
|
|||||||
The main prompt used to set the model behavior
|
The main prompt used to set the model behavior
|
||||||
</div>
|
</div>
|
||||||
<div class="wide100p">
|
<div class="wide100p">
|
||||||
<textarea id="main_prompt_textarea" class="text_pole" name="main_prompt" rows="3" placeholder=""></textarea>
|
<textarea id="main_prompt_textarea" class="text_pole textarea_compact" name="main_prompt" rows="6" placeholder=""></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="range-block">
|
<div class="range-block">
|
||||||
@ -692,7 +691,7 @@
|
|||||||
Prompt that is used when the NSFW toggle is on
|
Prompt that is used when the NSFW toggle is on
|
||||||
</div>
|
</div>
|
||||||
<div class="wide100p">
|
<div class="wide100p">
|
||||||
<textarea id="nsfw_prompt_textarea" class="text_pole" name="nsfw_prompt" rows="3" placeholder=""></textarea>
|
<textarea id="nsfw_prompt_textarea" class="text_pole textarea_compact" name="nsfw_prompt" rows="6" placeholder=""></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="range-block">
|
<div class="range-block">
|
||||||
@ -706,7 +705,7 @@
|
|||||||
Prompt that is used when the Jailbreak toggle is on
|
Prompt that is used when the Jailbreak toggle is on
|
||||||
</div>
|
</div>
|
||||||
<div class="wide100p">
|
<div class="wide100p">
|
||||||
<textarea id="jailbreak_prompt_textarea" class="text_pole" name="jailbreak_prompt" rows="3" placeholder=""></textarea>
|
<textarea id="jailbreak_prompt_textarea" class="text_pole textarea_compact" name="jailbreak_prompt" rows="6" placeholder=""></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="range-block">
|
<div class="range-block">
|
||||||
@ -720,7 +719,7 @@
|
|||||||
Prompt that is used for Impersonation function
|
Prompt that is used for Impersonation function
|
||||||
</div>
|
</div>
|
||||||
<div class="wide100p">
|
<div class="wide100p">
|
||||||
<textarea id="impersonation_prompt_textarea" class="text_pole" name="impersonation_prompt" rows="3" placeholder=""></textarea>
|
<textarea id="impersonation_prompt_textarea" class="text_pole textarea_compact" name="impersonation_prompt" rows="6" placeholder=""></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="range-block openai_preset_buttons">
|
<div class="range-block openai_preset_buttons">
|
||||||
|
@ -4,7 +4,36 @@ export { MODULE_NAME };
|
|||||||
|
|
||||||
const MODULE_NAME = 'expressions';
|
const MODULE_NAME = 'expressions';
|
||||||
const UPDATE_INTERVAL = 1000;
|
const UPDATE_INTERVAL = 1000;
|
||||||
const DEFAULT_EXPRESSIONS = ['anger', 'fear', 'joy', 'love', 'sadness', 'surprise'];
|
const DEFAULT_EXPRESSIONS = [
|
||||||
|
"admiration",
|
||||||
|
"amusement",
|
||||||
|
"anger",
|
||||||
|
"annoyance",
|
||||||
|
"approval",
|
||||||
|
"caring",
|
||||||
|
"confusion",
|
||||||
|
"curiosity",
|
||||||
|
"desire",
|
||||||
|
"disappointment",
|
||||||
|
"disapproval",
|
||||||
|
"disgust",
|
||||||
|
"embarrassment",
|
||||||
|
"excitement",
|
||||||
|
"fear",
|
||||||
|
"gratitude",
|
||||||
|
"grief",
|
||||||
|
"joy",
|
||||||
|
"love",
|
||||||
|
"nervousness",
|
||||||
|
"optimism",
|
||||||
|
"pride",
|
||||||
|
"realization",
|
||||||
|
"relief",
|
||||||
|
"remorse",
|
||||||
|
"sadness",
|
||||||
|
"surprise",
|
||||||
|
"neutral"
|
||||||
|
];
|
||||||
|
|
||||||
let expressionsList = null;
|
let expressionsList = null;
|
||||||
let lastCharacter = undefined;
|
let lastCharacter = undefined;
|
||||||
|
Reference in New Issue
Block a user