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