Remove redundant condition

This commit is contained in:
Cohee
2025-05-03 01:18:58 +03:00
parent b8f7675d8c
commit 07a6017443

View File

@ -4215,7 +4215,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
: baseChatReplace(power_user.sysprompt.post_history, name1, name2); : baseChatReplace(power_user.sysprompt.post_history, name1, name2);
// Only inject the jb if there is one // Only inject the jb if there is one
if (jailbreak && typeof(jailbreak) != 'undefined') { if (jailbreak) {
// When continuing generation of previous output, last user message precedes the message to continue // When continuing generation of previous output, last user message precedes the message to continue
if (isContinue) { if (isContinue) {
coreChat.splice(coreChat.length - 1, 0, { mes: jailbreak, is_user: true }); coreChat.splice(coreChat.length - 1, 0, { mes: jailbreak, is_user: true });