| 245 | * Converts instruct mode sequences to an array of stopping strings. | 245 | * Converts instruct mode sequences to an array of stopping strings. |
| 246 | * @param {Object} options | 246 | * @param {Object} options |
| 247 | * @param {InstructSettings?} [options.customInstruct=null] - Custom instruct settings. | 247 | * @param {InstructSettings?} [options.customInstruct=null] - Custom instruct settings. |
| 248 | * @param {boolean?} [options.useStopStrings=false] - Decides whether to use "Chat Start" and "Example Separator" | 248 | * @param {boolean?} [options.useStopStrings] - Decides whether to use "Chat Start" and "Example Separator" |
| 249 | * @returns {string[]} Array of instruct mode stopping strings. | 249 | * @returns {string[]} Array of instruct mode stopping strings. |
| 250 | */ | 250 | */ |
| 251 | export function getInstructStoppingSequences({ customInstruct = null, useStopStrings = false } = {}) { | 251 | export function getInstructStoppingSequences({ customInstruct = null, useStopStrings = null } = {}) { |
| 252 | const instruct = structuredClone(customInstruct ?? power_user.instruct); | 252 | const instruct = structuredClone(customInstruct ?? power_user.instruct); |
| 253 | | 253 | |
| 254 | /** | 254 | /** |