mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-01 18:37:41 +01:00
Add chat start and example separator as stop sequences
This commit is contained in:
parent
6b348f6128
commit
69659e79e3
@ -214,6 +214,14 @@ export function getInstructStoppingSequences() {
|
|||||||
combined_sequence.split('\n').filter((line, index, self) => self.indexOf(line) === index).forEach(addInstructSequence);
|
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.example_separator) {
|
||||||
|
result.push(`\n${substituteParams(power_user.context.example_separator)}`);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user