mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Make context stop strings togglable
This commit is contained in:
@ -214,12 +214,14 @@ export function getInstructStoppingSequences() {
|
||||
combined_sequence.split('\n').filter((line, index, self) => self.indexOf(line) === index).forEach(addInstructSequence);
|
||||
}
|
||||
|
||||
if (power_user.context.chat_start) {
|
||||
result.push(`\n${substituteParams(power_user.context.chat_start)}`);
|
||||
}
|
||||
if (power_user.context.use_stop_strings) {
|
||||
if (power_user.context.chat_start) {
|
||||
result.push(`\n${substituteParams(power_user.context.chat_start)}`);
|
||||
}
|
||||
|
||||
if (power_user.context.example_separator) {
|
||||
result.push(`\n${substituteParams(power_user.context.example_separator)}`);
|
||||
if (power_user.context.example_separator) {
|
||||
result.push(`\n${substituteParams(power_user.context.example_separator)}`);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user