added hotkeys hints to /? readout

This commit is contained in:
RossAscends
2023-05-19 04:51:11 +09:00
parent 84900917a0
commit 80ccf6809f

View File

@@ -291,11 +291,22 @@ const system_messages = {
is_system: true, is_system: true,
is_name: true, is_name: true,
mes: [ mes: [
'Hi there! The following chat formatting commands are supported:', `Hi there! The following chat formatting commands are supported:
'<ol>', <ul>
'<li><tt>{{text}}</tt> sets a one-time behavioral bias for the AI. Resets when you send the next message.</li>', <li><tt>{{text}}</tt> - sets a one-time behavioral bias for the AI. Resets when you send the next message.
'</ol>', </li>
].join('') </ul>
Hotkeys/Keybinds:
<ul>
<li><tt>Up</tt> = Edit last message in chat</li>
<li><tt>Ctrl+Up</tt> = Edit last USER message in chat</li>
<li><tt>Left</tt> = swipe left</li>
<li><tt>Right</tt> = swipe right (NOTE: swipe hotkeys are disabled when chatbar has something typed into it)</li>
<li><tt>Ctrl+Left</tt> = view locally stored variables (in the browser console window)</li>
<li><tt>Enter</tt> (with chat bar selected) = send your message to AI</li>
<li><tt>Ctrl+Enter</tt> = Regenerate the last AI response</li>
</ul>`
]
}, },
welcome: welcome:
{ {
@@ -304,42 +315,42 @@ const system_messages = {
is_user: false, is_user: false,
is_name: true, is_name: true,
mes: [ mes: [
'<h2>Welcome to <span id="version_display_welcome">SillyTavern</span>!</h2>', `<h2>Welcome to <span id="version_display_welcome">SillyTavern</span>!</h2>
'<div id="version_display_welcome"></div>', <div id="version_display_welcome"></div>
'<h3>Want to Update to the latest version?</h3>', <h3>Want to Update to the latest version?</h3>
"Read the <a href='/notes/update.html' target='_blank'>instructions here</a>. Also located in your installation's base folder", Read the <a href='/notes/update.html' target='_blank'>instructions here</a>. Also located in your installation's base folder
'<hr class="sysHR">', <hr class="sysHR">
'<h3>In order to begin chatting:</h3>', <h3>In order to begin chatting:</h3>
'<ol>', <ol>
'<li>Connect to one of the supported generation APIs (the plug icon)</li>', <li>Connect to one of the supported generation APIs (the plug icon)</li>
'<li>Create or pick a character from the list (the top-right namecard icon)</li>', <li>Create or pick a character from the list (the top-right namecard icon)</li>
'</ol>', </ol>
'<hr class="sysHR">', <hr class="sysHR">
'<h3>Where to download more characters?</h3>', <h3>Where to download more characters?</h3>
'<i>(Not endorsed, your discretion is advised)</i>', <i>(Not endorsed, your discretion is advised)</i>
'<ol>', <ol>
'<li><a target="_blank" href="https://discord.gg/pygmalionai">Pygmalion AI Discord</a></li>', <li><a target="_blank" href="https://discord.gg/pygmalionai">Pygmalion AI Discord</a></li>
'<li><a target="_blank" href="https://www.characterhub.org/">CharacterHub (NSFW)</a></li>', <li><a target="_blank" href="https://www.characterhub.org/">CharacterHub (NSFW)</a></li>
'</ol>', </ol>
'<hr class="sysHR">', <hr class="sysHR">
'<h3>Where can I get help?</h3>', <h3>Where can I get help?</h3>
'Before going any further, check out the following resources:', Before going any further, check out the following resources:
'<ol>', <ol>
'<li><a target="_blank" href="/notes/readme.md">Introduction to SillyTavern</a></li>', <li><a target="_blank" href="/notes/readme.md">Introduction to SillyTavern</a></li>
'<li><a target="_blank" href="/notes/faq.md">SillyTavern FAQ</a></li>', <li><a target="_blank" href="/notes/faq.md">SillyTavern FAQ</a></li>
'<li><a target="_blank" href="/notes">SillyTavern Guidebook</a></li>', <li><a target="_blank" href="/notes">SillyTavern Guidebook</a></li>
'<li><a target="_blank" href="https://github.com/Cohee1207/TavernAI-extras/blob/main/README.md">Extras API Docs</a></li>', <li><a target="_blank" href="https://github.com/Cohee1207/TavernAI-extras/blob/main/README.md">Extras API Docs</a></li>
'<li><a target="_blank" href="https://docs.alpindale.dev/">Pygmalion AI Docs</a></li>', <li><a target="_blank" href="https://docs.alpindale.dev/">Pygmalion AI Docs</a></li>
'</ol>', </ol>
'Type <tt>/?</tt> in any chat to get help on message formatting commands.', Type <tt>/?</tt> in any chat to get help on message formatting commands.
'<hr class="sysHR">', <hr class="sysHR">
'<h3>Still have questions or suggestions left?</h3>', <h3>Still have questions or suggestions left?</h3>
'<a target="_blank" href="https://discord.gg/RZdyAEUPvj">SillyTavern Community Discord</a>', <a target="_blank" href="https://discord.gg/RZdyAEUPvj">SillyTavern Community Discord</a>
'<br/>', <br>
'<a target="_blank" href="https://github.com/Cohee1207/SillyTavern/issues">Post a GitHub issue.</a>', <a target="_blank" href="https://github.com/Cohee1207/SillyTavern/issues">Post a GitHub issue.</a>
'<br/>', <br>
'<a target="_blank" href="https://github.com/Cohee1207/SillyTavern#questions-or-suggestions">Contact the developers.</a>', <a target="_blank" href="https://github.com/Cohee1207/SillyTavern#questions-or-suggestions">Contact the developers.</a>
].join('') `].join('')
}, },
group: { group: {
name: systemUserName, name: systemUserName,