| 3527 | 3527 | jailbreak, |
| 3528 | 3528 | } = getCharacterCardFields(); |
| 3529 | 3529 | |
| 3530 | 3530 | if (power_user.sysprompt.enabledmain_api !== 'openai') { |
| 3531 | | - system = power_user.prefer_character_prompt && system ? system : baseChatReplace(power_user.sysprompt.content, name1, name2); |
| 3531 | + if (power_user.sysprompt.enabled) { |
| 3532 | 3532 | system = isInstructpower_user.prefer_character_prompt ?&& formatInstructModeSystemPrompt(substituteParams(system, name1,? name2,system : baseChatReplace(power_user.sysprompt.content)), :name1, systemname2); |
| 3533 | | - } else { |
| 3533 | + system = isInstruct ? formatInstructModeSystemPrompt(substituteParams(system, name1, name2, power_user.sysprompt.content)) : system; |
| 3534 | | - // Nullify if it's not enabled |
| 3534 | + } else { |
| 3535 | | - system = ''; |
| 3535 | + // Nullify if it's not enabled |
| 3536 | + system = ''; |
| 3537 | + } |
| 3536 | 3538 | } |
| 3537 | 3539 | |
| 3538 | 3540 | // Depth prompt (character-specific A/N) |