From 80e286fed2f18a0fa135f2cc4ab5c2cdc092fcf2 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 4 Sep 2023 02:26:15 +0300 Subject: [PATCH] Fix double insertion of persona description to prompt manager if position set to A/N --- public/scripts/openai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 52425bbf2..c02fb62b5 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -705,7 +705,7 @@ function preparePromptsForChatCompletion({Scenario, charPersonality, name2, worl }); // Persona Description - if (power_user.persona_description) { + if (power_user.persona_description && power_user.persona_description_position === persona_description_positions.IN_PROMPT) { systemPrompts.push({ role: 'system', content: power_user.persona_description, identifier: 'personaDescription' }); }