Merge branch 'staging' into persona-lorebook

bab9d3c74bfa2277f18a7b0af2d6213e95872c22

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +2 -1Ignore whitespace
public/index.html+1 -1
@@ -1425,7 +1425,7 @@
14251425 <input class="neo-range-slider" type="range" id="dry_allowed_length_textgenerationwebui" min="1" max="20" step="1" />
14261426 <input class="neo-range-input" type="number" min="1" max="20" step="1" data-for="dry_allowed_length_textgenerationwebui" id="dry_allowed_length_counter_textgenerationwebui">
14271427 </div>
14281428 <div class="alignItemsCenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0" data-tg-type="llamacpp, koboldcpp, tabby, aphrodite">
14291429 <small data-i18n="Penalty Range">Penalty Range</small>
14301430 <input class="neo-range-slider" type="range" id="dry_penalty_last_n_textgenerationwebui" min="0" max="8192" step="1" />
14311431 <input class="neo-range-input" type="number" min="0" max="8192" step="1" data-for="dry_penalty_last_n_textgenerationwebui" id="dry_penalty_last_n_counter_textgenerationwebui">
public/scripts/textgen-settings.js+1 -0
@@ -1268,6 +1268,7 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
12681268
12691269 if (settings.type === KOBOLDCPP) {
12701270 params.grammar = settings.grammar_string;
1271+ params.trim_stop = true;
12711272 }
12721273
12731274 if (settings.type === HUGGINGFACE) {