mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-14 11:10:40 +01:00
#1663 Add last prompt line to quiet prompts
This commit is contained in:
parent
1f8513ae6f
commit
adf82f2ba8
@ -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...
|
// need a detection for what the quiet prompt is being asked for...
|
||||||
|
|
||||||
// Bail out early?
|
// Bail out early?
|
||||||
if (quietToLoud !== true) {
|
if (!isInstruct && !quietToLoud) {
|
||||||
return lastMesString;
|
return lastMesString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3481,7 +3481,7 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu
|
|||||||
|
|
||||||
// Get instruct mode line
|
// Get instruct mode line
|
||||||
if (isInstruct && !isContinue) {
|
if (isInstruct && !isContinue) {
|
||||||
const name = isImpersonate ? name1 : name2;
|
const name = (quiet_prompt && !quietToLoud) ? 'System' : (isImpersonate ? name1 : name2);
|
||||||
lastMesString += formatInstructModePrompt(name, isImpersonate, promptBias, name1, name2);
|
lastMesString += formatInstructModePrompt(name, isImpersonate, promptBias, name1, name2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user