Add chat start and example separator as stop sequences

This commit is contained in:
Cohee 2023-12-01 19:01:06 +02:00
parent 6b348f6128
commit 69659e79e3
1 changed files with 8 additions and 0 deletions

View File

@ -214,6 +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.example_separator) {
result.push(`\n${substituteParams(power_user.context.example_separator)}`);
}
return result;
}