Fix sysprompt dependency on instruct
| @@ -3522,6 +3522,9 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro | ||
| 3522 | 3522 | if (power_user.sysprompt.enabled) { |
| 3523 | 3523 | system = power_user.prefer_character_prompt && system ? system : baseChatReplace(power_user.sysprompt.content, name1, name2); |
| 3524 | 3524 | system = isInstruct ? formatInstructModeSystemPrompt(substituteParams(system, name1, name2, power_user.sysprompt.content)) : system; |
| 3525 | + } else { | |
| 3526 | + // Nullify if it's not enabled | |
| 3527 | + system = ''; | |
| 3525 | 3528 | } |
| 3526 | 3529 | |
| 3527 | 3530 | // Depth prompt (character-specific A/N) |
| @@ -3774,7 +3777,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro | ||
| 3774 | 3777 | personality: personality, |
| 3775 | 3778 | persona: power_user.persona_description_position == persona_description_positions.IN_PROMPT ? persona : '', |
| 3776 | 3779 | scenario: scenario, |
| 3777 | 3780 | system: isInstruct ? system : '', |
| 3778 | 3781 | char: name2, |
| 3779 | 3782 | user: name1, |
| 3780 | 3783 | wiBefore: worldInfoBefore, |