mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-22 23:18:27 +01:00
Handle last_output_sequence like output_sequence
This commit is contained in:
parent
a40df0c117
commit
7e5d08874f
@ -1834,6 +1834,7 @@ function getStoppingStrings(isImpersonate, addSpace) {
|
||||
if (power_user.instruct.enabled) {
|
||||
addInstructSequence(power_user.instruct.input_sequence);
|
||||
addInstructSequence(power_user.instruct.output_sequence);
|
||||
addInstructSequence(power_user.instruct.last_output_sequence);
|
||||
}
|
||||
|
||||
if (power_user.custom_stopping_strings) {
|
||||
@ -3926,6 +3927,9 @@ function cleanUpMessage(getMessage, isImpersonate, isContinue, displayIncomplete
|
||||
if (isInstruct && power_user.instruct.output_sequence && !isImpersonate) {
|
||||
getMessage = getMessage.replaceAll(power_user.instruct.output_sequence, '');
|
||||
}
|
||||
if (isInstruct && power_user.instruct.last_output_sequence && !isImpersonate) {
|
||||
getMessage = getMessage.replaceAll(power_user.instruct.last_output_sequence, '');
|
||||
}
|
||||
// clean-up group message from excessive generations
|
||||
if (selected_group) {
|
||||
getMessage = cleanGroupMessage(getMessage);
|
||||
|
Loading…
x
Reference in New Issue
Block a user