From 91d13efcef98e0bf3ac36092f98e9b2eda0b43c0 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 25 Aug 2023 15:38:07 +0300 Subject: [PATCH] #1018 Round Typical P to 3rd decimal for Novel --- public/index.html | 2 +- public/scripts/nai-settings.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index d3f386242..7ef449081 100644 --- a/public/index.html +++ b/public/index.html @@ -1022,7 +1022,7 @@
- +
diff --git a/public/scripts/nai-settings.js b/public/scripts/nai-settings.js index 3ebc435e9..953402c92 100644 --- a/public/scripts/nai-settings.js +++ b/public/scripts/nai-settings.js @@ -185,7 +185,7 @@ function loadNovelSettingsUi(ui_settings) { $("#top_a_novel").val(ui_settings.top_a); $("#top_a_counter_novel").text(Number(ui_settings.top_a).toFixed(2)); $("#typical_p_novel").val(ui_settings.typical_p); - $("#typical_p_counter_novel").text(Number(ui_settings.typical_p).toFixed(2)); + $("#typical_p_counter_novel").text(Number(ui_settings.typical_p).toFixed(3)); $("#cfg_scale_novel").val(ui_settings.cfg_scale); $("#cfg_scale_counter_novel").text(Number(ui_settings.cfg_scale).toFixed(2)); $("#phrase_rep_pen_novel").val(ui_settings.phrase_rep_pen || "off"); @@ -269,8 +269,8 @@ const sliders = [ { sliderId: "#typical_p_novel", counterId: "#typical_p_counter_novel", - format: (val) => Number(val).toFixed(2), - setValue: (val) => { nai_settings.typical_p = Number(val).toFixed(2); }, + format: (val) => Number(val).toFixed(3), + setValue: (val) => { nai_settings.typical_p = Number(val).toFixed(3); }, }, { sliderId: "#mirostat_tau_novel",