Fix extension prompt being not parsed correctly

This commit is contained in:
maver 2023-06-11 14:41:43 +02:00
parent 64c04957c2
commit a66041f503
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ async function prepareOpenAIMessages({ systemPrompt, name2, charDescription, cha
}
// Handle extension prompt
if (extensionPrompt) chatCompletion.insertAfter('worldInfoAfter', 'extensionPrompt', extensionPrompt);
if (extensionPrompt) chatCompletion.insertAfter('worldInfoAfter', 'extensionPrompt', chatCompletion.makeSystemMessage(substituteParams(extensionPrompt)));
// Handle bias settings
if (bias && bias.trim().length) chatCompletion.add(biasMessage);