From 9ae7325100ec736bc64da08dd22d35c53ea0b947 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 1 Sep 2024 17:39:36 +0300 Subject: [PATCH 1/9] Remove newbie mode --- public/index.html | 21 +-------------------- public/script.js | 14 +------------- public/scripts/power-user.js | 21 --------------------- 3 files changed, 2 insertions(+), 54 deletions(-) diff --git a/public/index.html b/public/index.html index bbb003a2a..f4dc06bdf 100644 --- a/public/index.html +++ b/public/index.html @@ -3759,10 +3759,6 @@

User Settings

-
@@ -5882,21 +5878,6 @@ SillyTavern is aimed at advanced users. -
- - If you're new to this, enable the simplified UI mode below. - -
- - Change it later in the 'User Settings' panel. - -
-

@@ -6610,4 +6591,4 @@ - \ No newline at end of file + diff --git a/public/script.js b/public/script.js index 5e6bbdb85..c6a0fcc77 100644 --- a/public/script.js +++ b/public/script.js @@ -78,8 +78,6 @@ import { renderStoryString, sortEntitiesList, registerDebugFunction, - ui_mode, - switchSimpleMode, flushEphemeralStoppingStrings, context_presets, resetMovableStyles, @@ -6320,15 +6318,11 @@ export function setUserName(value) { } async function doOnboarding(avatarId) { - let simpleUiMode = false; const template = $('#onboarding_template .onboarding'); - template.find('input[name="enable_simple_mode"]').on('input', function () { - simpleUiMode = $(this).is(':checked'); - }); let userName = await callGenericPopup(template, POPUP_TYPE.INPUT, currentUser?.name || name1, { rows: 2, wide: true, large: true }); if (userName) { - userName = userName.replace('\n', ' '); + userName = String(userName).replace('\n', ' '); setUserName(userName); console.log(`Binding persona ${avatarId} to name ${userName}`); power_user.personas[avatarId] = userName; @@ -6337,12 +6331,6 @@ async function doOnboarding(avatarId) { position: persona_description_positions.IN_PROMPT, }; } - - if (simpleUiMode) { - power_user.ui_mode = ui_mode.SIMPLE; - $('#ui_mode_select').val(power_user.ui_mode); - switchSimpleMode(); - } } function reloadLoop() { diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index c3b3d8f20..08036b52e 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -75,11 +75,6 @@ const defaultStoryString = '{{#if system}}{{system}}\n{{/if}}{{#if description}} const defaultExampleSeparator = '***'; const defaultChatStart = '***'; -export const ui_mode = { - SIMPLE: 0, - POWER: 1, -}; - const avatar_styles = { ROUND: 0, RECTANGULAR: 1, @@ -132,7 +127,6 @@ let power_user = { smooth_streaming: false, smooth_streaming_speed: 50, - ui_mode: ui_mode.POWER, fast_ui_mode: true, avatar_style: avatar_styles.ROUND, chat_display: chat_styles.DEFAULT, @@ -331,12 +325,6 @@ const debug_functions = []; const setHotswapsDebounced = debounce(favsToHotswap); -export function switchSimpleMode() { - $('[data-newbie-hidden]').each(function () { - $(this).toggleClass('displayNone', power_user.ui_mode === ui_mode.SIMPLE); - }); -} - function playMessageSound() { if (!power_user.play_message_sound) { return; @@ -1586,7 +1574,6 @@ async function loadPowerUserSettings(settings, data) { $('#bot-mes-blur-tint-color-picker').attr('color', power_user.bot_mes_blur_tint_color); $('#shadow-color-picker').attr('color', power_user.shadow_color); $('#border-color-picker').attr('color', power_user.border_color); - $('#ui_mode_select').val(power_user.ui_mode).find(`option[value="${power_user.ui_mode}"]`).attr('selected', true); $('#reduced_motion').prop('checked', power_user.reduced_motion); $('#auto-connect-checkbox').prop('checked', power_user.auto_connect); $('#auto-load-chat-checkbox').prop('checked', power_user.auto_load_chat); @@ -1620,7 +1607,6 @@ async function loadPowerUserSettings(settings, data) { switchSpoilerMode(); loadMovingUIState(); loadCharListState(); - switchSimpleMode(); } async function loadCharListState() { @@ -3686,13 +3672,6 @@ $(document).ready(() => { showDebugMenu(); }); - $('#ui_mode_select').on('change', function () { - const value = $(this).find(':selected').val(); - power_user.ui_mode = Number(value); - switchSimpleMode(); - saveSettingsDebounced(); - }); - $('#bogus_folders').on('input', function () { power_user.bogus_folders = !!$(this).prop('checked'); printCharactersDebounced(); From 9a8a958165878a324c57716920bc72a8501d384f Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 1 Sep 2024 23:38:49 +0300 Subject: [PATCH 2/9] Remove newbie attribute part 1 --- public/index.html | 94 +++++++++++++++++++++++------------------------ 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/public/index.html b/public/index.html index f4dc06bdf..7cdbb33e3 100644 --- a/public/index.html +++ b/public/index.html @@ -98,12 +98,12 @@
- - - - - - + + + + + +

@@ -120,12 +120,12 @@
- - - - - - + + + + + +
@@ -140,9 +140,9 @@ - - - + + + @@ -154,17 +154,17 @@
- - - - - - + + + + + +
-
+
AI Module @@ -271,7 +271,7 @@
-
+
Rep Pen Range
@@ -284,7 +284,7 @@
-
+
Repetition Penalty Slope
@@ -297,7 +297,7 @@
-
+
Repetition Penalty Frequency
@@ -310,7 +310,7 @@
-
+
Repetition Penalty Presence
@@ -323,7 +323,7 @@
-
+
TFS
@@ -336,7 +336,7 @@
-
+
Phrase Repetition Penalty
@@ -351,7 +351,7 @@
-
+
-
+
Frequency Penalty
@@ -449,7 +449,7 @@
-
+
Presence Penalty
@@ -462,7 +462,7 @@
-
+
Top K
@@ -475,7 +475,7 @@
-
+
Top P
@@ -488,7 +488,7 @@
-
+
Repetition Penalty
@@ -501,7 +501,7 @@
-
+
Min P
@@ -514,7 +514,7 @@
-
+
Top A
@@ -553,7 +553,7 @@
-
+
Utility Prompts
@@ -712,7 +712,7 @@
-
+
Seed
@@ -736,7 +736,7 @@
-
+
Top K
@@ -744,7 +744,7 @@
-
+
Top P
@@ -752,7 +752,7 @@
-
+
Typical P
@@ -768,7 +768,7 @@
-
+
Top A
@@ -776,7 +776,7 @@
-
+
TFS
@@ -798,14 +798,14 @@
-
+
Repetition Penalty Slope
-
+

Mirostat

@@ -835,7 +835,7 @@

-
+
-
+
Seed From aa62e7abc9f90a897a88684c8928b80ea761992a Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 1 Sep 2024 23:40:47 +0300 Subject: [PATCH 3/9] Remove newbie attribute part 2 --- public/index.html | 222 +++++++++++++++++++++++----------------------- 1 file changed, 111 insertions(+), 111 deletions(-) diff --git a/public/index.html b/public/index.html index f93b74ca3..252563b69 100644 --- a/public/index.html +++ b/public/index.html @@ -850,7 +850,7 @@
-
+ -
+

Samplers Order @@ -906,7 +906,7 @@
-
+
Preamble @@ -1117,7 +1117,7 @@
-
+
@@ -1128,7 +1128,7 @@
-
+
Multiple swipes per generation
@@ -1141,7 +1141,7 @@
-
+
Top K
@@ -1149,7 +1149,7 @@
-
+
Top P
@@ -1157,7 +1157,7 @@
-
+
Typical P
@@ -1173,7 +1173,7 @@
-
+
Top A
@@ -1181,7 +1181,7 @@
-
+
TFS
@@ -1189,7 +1189,7 @@
-
+
Epsilon Cutoff
@@ -1197,7 +1197,7 @@
-
+
Eta Cutoff
@@ -1225,53 +1225,53 @@
-
+
Encoder Penalty
-
+
Frequency Penalty
-
+
Presence Penalty
-
+
No Repeat Ngram Size
-
+
Skew
-
+
Min Length
-
+
Maximum tokens/second
-
+

- -
+

Contrastive Search

@@ -1435,7 +1435,7 @@
-
+
-
+
Seed
-
-
+
+

Banned Tokens/Strings
@@ -1515,7 +1515,7 @@

-
+

CFG
@@ -1537,7 +1537,7 @@

-
+ -
+

-
+

Samplers Order @@ -1606,7 +1606,7 @@ Load default order
-
+

Sampler Order @@ -1627,7 +1627,7 @@ Load default order

-
+

Sampler Priority @@ -1814,7 +1814,7 @@

-
+
Assistant Prefill @@ -1849,7 +1849,7 @@
-
+
Logit Bias
@@ -1887,7 +1887,7 @@
-
+
@@ -2438,7 +2438,7 @@ -
+
Reverse Proxy
@@ -3073,17 +3073,17 @@
- - + + - +
-
+
@@ -3134,7 +3134,7 @@ Collapse Consecutive Newlines - -
+
-
+
-
+
-
+ -
+ -
+
@@ -3332,7 +3332,7 @@
-
+

@@ -3711,7 +3711,7 @@

-
+
@@ -3731,7 +3731,7 @@
-
+
Theme Colors
@@ -3782,7 +3782,7 @@

-
+
@@ -3828,11 +3828,11 @@ Reduced Motion -
-
+

Character Handling

@@ -3912,7 +3912,7 @@
-
+
-