Fix double insertion of persona description to prompt manager if position set to A/N

This commit is contained in:
Cohee 2023-09-04 02:26:15 +03:00
parent 529c461318
commit 80e286fed2
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ function preparePromptsForChatCompletion({Scenario, charPersonality, name2, worl
}); });
// Persona Description // 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' }); systemPrompts.push({ role: 'system', content: power_user.persona_description, identifier: 'personaDescription' });
} }