Fix koboldcpp dry sequence stringification (#5156) * Add DRY sequence parsing --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>

b44a67b7e78647c958f8349b27b7be08c4ebfbb0

Malformed C <34691878+malformed-c@users.noreply.github.com>

Signed
1 files changed, +1 -0Showing whitespace changes
public/scripts/textgen-settings.js+1 -0
@@ -1752,6 +1752,7 @@ export function createTextGenGenerationData(settings, model, finalPrompt = null,
1752 if (settings.type === KOBOLDCPP) {1752 if (settings.type === KOBOLDCPP) {
1753 params.grammar = settings.grammar_string || undefined;1753 params.grammar = settings.grammar_string || undefined;
1754 params.trim_stop = true;1754 params.trim_stop = true;
1755 params.dry_sequence_breakers = params.parseSequenceBreakers();
1755 }1756 }
17561757
1757 if (settings.type === HUGGINGFACE) {1758 if (settings.type === HUGGINGFACE) {