mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
partially fix quietPrompts (/sysgen) for Instruct
This commit is contained in:
@ -2755,7 +2755,17 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
||||
if (quiet_prompt && quiet_prompt.length) {
|
||||
const name = name1;
|
||||
const quietAppend = isInstruct ? formatInstructModeChat(name, quiet_prompt, false, true, '', name1, name2, false) : `\n${quiet_prompt}`;
|
||||
|
||||
//This begins to fix quietPrompts (particularly /sysgen) for instruct
|
||||
//previously instruct input sequence was being appended to the last chat message w/o '\n'
|
||||
//and no output sequence was added after the input's content.
|
||||
//TODO: respect output_sequence vs last_output_sequence settings
|
||||
//TODO: decide how to prompt this to clarify who is talking 'Narrator', 'System', etc.
|
||||
if (isInstruct) {
|
||||
lastMesString += '\n' + quietAppend + power_user.instruct.output_sequence + '\n';
|
||||
} else {
|
||||
lastMesString += quietAppend;
|
||||
}
|
||||
// Bail out early
|
||||
return lastMesString;
|
||||
}
|
||||
|
Reference in New Issue
Block a user