From 2aa5addb1d351101565976f0f10538dcdcfed299 Mon Sep 17 00:00:00 2001 From: 50h100a Date: Sat, 10 May 2025 19:04:32 -0400 Subject: [PATCH] Mancer parameters: - Add XTC - Add DRY - Remove Mirostat --- public/index.html | 6 +++--- public/scripts/textgen-settings.js | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 08b1bdb09..d1ddc9423 100644 --- a/public/index.html +++ b/public/index.html @@ -1406,7 +1406,7 @@ -
+

@@ -1427,7 +1427,7 @@

-
+
-
+

diff --git a/public/scripts/textgen-settings.js b/public/scripts/textgen-settings.js index 69f6372fb..210d60070 100644 --- a/public/scripts/textgen-settings.js +++ b/public/scripts/textgen-settings.js @@ -1439,6 +1439,17 @@ export async function getTextGenGenerationData(finalPrompt, maxTokens, isImperso params.dynatemp_max = params.dynatemp_high; delete params.dynatemp_low; delete params.dynatemp_high; + const sequenceBreakers = (() => { + try { + return JSON.parse(params.dry_sequence_breakers); + } catch { + if (typeof params.dry_sequence_breakers === 'string') { + return params.dry_sequence_breakers.split(','); + } + return undefined; + } + })(); + params.dry_sequence_breakers = sequenceBreakers; } if (settings.type === TABBY) {