mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-10 09:00:14 +01:00
Don't append name2 in non-instruct mode if continuing on first message
This commit is contained in:
parent
3cd935c0d2
commit
958cf6a373
@ -3275,8 +3275,9 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu
|
||||
}
|
||||
|
||||
// Add character's name
|
||||
// Force name append on continue (if not continuing on user message)
|
||||
if (!isInstruct && force_name2) {
|
||||
// Force name append on continue (if not continuing on user message or first message)
|
||||
const isContinuingOnFirstMessage = chat.length === 1 && isContinue;
|
||||
if (!isInstruct && force_name2 && !isContinuingOnFirstMessage) {
|
||||
if (!lastMesString.endsWith('\n')) {
|
||||
lastMesString += '\n';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user