From 9f23a7852fe7e9bdb13e49264f4700e8bead2166 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 9 Oct 2024 22:55:33 +0300 Subject: [PATCH] NovelAI: Increase repetition penalty precision --- public/index.html | 4 ++-- public/scripts/nai-settings.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/index.html b/public/index.html index fc36ebcc1..516a81503 100644 --- a/public/index.html +++ b/public/index.html @@ -264,10 +264,10 @@
- +
- +
diff --git a/public/scripts/nai-settings.js b/public/scripts/nai-settings.js index 040c6f203..e0b3d3748 100644 --- a/public/scripts/nai-settings.js +++ b/public/scripts/nai-settings.js @@ -245,7 +245,7 @@ function loadNovelSettingsUi(ui_settings) { $('#temp_novel').val(ui_settings.temperature); $('#temp_counter_novel').val(Number(ui_settings.temperature).toFixed(2)); $('#rep_pen_novel').val(ui_settings.repetition_penalty); - $('#rep_pen_counter_novel').val(Number(ui_settings.repetition_penalty).toFixed(2)); + $('#rep_pen_counter_novel').val(Number(ui_settings.repetition_penalty).toFixed(3)); $('#rep_pen_size_novel').val(ui_settings.repetition_penalty_range); $('#rep_pen_size_counter_novel').val(Number(ui_settings.repetition_penalty_range).toFixed(0)); $('#rep_pen_slope_novel').val(ui_settings.repetition_penalty_slope); @@ -298,8 +298,8 @@ const sliders = [ { sliderId: '#rep_pen_novel', counterId: '#rep_pen_counter_novel', - format: (val) => Number(val).toFixed(2), - setValue: (val) => { nai_settings.repetition_penalty = Number(val).toFixed(2); }, + format: (val) => Number(val).toFixed(3), + setValue: (val) => { nai_settings.repetition_penalty = Number(val).toFixed(3); }, }, { sliderId: '#rep_pen_size_novel',