From d93aba5706a084e90dee5b5e26ff85151a00d3d7 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 27 Mar 2025 22:52:01 +0200 Subject: [PATCH] Fix useStopStrings defaulting --- public/scripts/instruct-mode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/instruct-mode.js b/public/scripts/instruct-mode.js index 7edfb1e0b..56b16f560 100644 --- a/public/scripts/instruct-mode.js +++ b/public/scripts/instruct-mode.js @@ -245,10 +245,10 @@ export function autoSelectInstructPreset(modelId) { * Converts instruct mode sequences to an array of stopping strings. * @param {Object} options * @param {InstructSettings?} [options.customInstruct=null] - Custom instruct settings. - * @param {boolean?} [options.useStopStrings=false] - Decides whether to use "Chat Start" and "Example Separator" + * @param {boolean?} [options.useStopStrings] - Decides whether to use "Chat Start" and "Example Separator" * @returns {string[]} Array of instruct mode stopping strings. */ -export function getInstructStoppingSequences({ customInstruct = null, useStopStrings = false } = {}) { +export function getInstructStoppingSequences({ customInstruct = null, useStopStrings = null } = {}) { const instruct = structuredClone(customInstruct ?? power_user.instruct); /**