#652 Add custom stop strings

This commit is contained in:
Cohee
2023-07-11 00:24:09 +03:00
parent 5c6c7fd3ca
commit 9ebb1cfe90
3 changed files with 47 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ import {
formatInstructModePrompt,
persona_description_positions,
loadMovingUIState,
getCustomStoppingStrings,
} from "./scripts/power-user.js";
import {
@@ -1624,6 +1625,11 @@ function getStoppingStrings(isImpersonate, addSpace) {
}
}
if (power_user.custom_stopping_strings) {
const customStoppingStrings = getCustomStoppingStrings();
result.push(...customStoppingStrings);
}
return addSpace ? result.map(x => `${x} `) : result;
}