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);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue