#1663 Add last prompt line to quiet prompts

This commit is contained in:
Cohee 2024-01-09 01:02:58 +02:00
parent 1f8513ae6f
commit adf82f2ba8
1 changed files with 2 additions and 2 deletions

View File

@ -3473,7 +3473,7 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu
// need a detection for what the quiet prompt is being asked for...
// Bail out early?
if (quietToLoud !== true) {
if (!isInstruct && !quietToLoud) {
return lastMesString;
}
}
@ -3481,7 +3481,7 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu
// Get instruct mode line
if (isInstruct && !isContinue) {
const name = isImpersonate ? name1 : name2;
const name = (quiet_prompt && !quietToLoud) ? 'System' : (isImpersonate ? name1 : name2);
lastMesString += formatInstructModePrompt(name, isImpersonate, promptBias, name1, name2);
}