mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Improve context slider sanity
This commit is contained in:
@ -46,8 +46,9 @@ export {
|
||||
|
||||
export const MAX_CONTEXT_DEFAULT = 8192;
|
||||
const MAX_CONTEXT_UNLOCKED = 65536;
|
||||
const unlockedMaxContextStep = 1024
|
||||
const unlockedMaxContestMin = 8192
|
||||
const unlockedMaxContextStep = 256;
|
||||
const maxContextMin = 512;
|
||||
const maxContextStep = 64;
|
||||
|
||||
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}}";
|
||||
const defaultExampleSeparator = '***';
|
||||
@ -1087,8 +1088,8 @@ 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 ? 0 : 0;
|
||||
const steps = power_user.max_context_unlocked ? unlockedMaxContextStep : 256;
|
||||
const minValue = power_user.max_context_unlocked ? maxContextMin : maxContextMin;
|
||||
const steps = power_user.max_context_unlocked ? unlockedMaxContextStep : maxContextStep;
|
||||
|
||||
for (const element of elements) {
|
||||
element.attr('max', maxValue);
|
||||
|
Reference in New Issue
Block a user