mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #695 from ThisIsPIRI/continue
Fix continue formatting
This commit is contained in:
@@ -2265,9 +2265,9 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
|||||||
|
|
||||||
chat2[i] = formatMessageHistoryItem(coreChat[j], isInstruct);
|
chat2[i] = formatMessageHistoryItem(coreChat[j], isInstruct);
|
||||||
|
|
||||||
// Do not format the message for continuation
|
// Do not suffix the message for continuation
|
||||||
if (i === 0 && type == 'continue') {
|
if (i === 0 && type == 'continue') {
|
||||||
chat2[i] = coreChat[j].mes;
|
chat2[i] = chat2[i].slice(0, chat2[i].lastIndexOf(coreChat[j].mes) + coreChat[j].mes.length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user