From 410599b287d71f881bf328588621f5f537f005c8 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 27 Oct 2023 02:01:09 +0300 Subject: [PATCH] Fix unlocked context sliders sanity --- public/scripts/power-user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index ce689e41a..b18168803 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -46,7 +46,7 @@ export { export const MAX_CONTEXT_DEFAULT = 8192; const MAX_CONTEXT_UNLOCKED = 65536; -const unlockedMaxContextStep = 4096 +const unlockedMaxContextStep = 1024 const unlockedMaxContestMin = 8192 const defaultStoryString = "{{#if system}}{{system}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}"; @@ -1087,7 +1087,7 @@ function loadMaxContextUnlocked() { function switchMaxContextSize() { const elements = [$('#max_context'), $('#rep_pen_range'), $('#rep_pen_range_textgenerationwebui')]; const maxValue = power_user.max_context_unlocked ? MAX_CONTEXT_UNLOCKED : MAX_CONTEXT_DEFAULT; - const minValue = power_user.max_context_unlocked ? unlockedMaxContestMin : 0; + const minValue = power_user.max_context_unlocked ? 0 : 0; const steps = power_user.max_context_unlocked ? unlockedMaxContextStep : 256; for (const element of elements) {