Do not generate group responses on dry run

This commit is contained in:
maver
2023-07-13 20:05:55 +02:00
parent a706ecd48c
commit 4dd94a4a62
3 changed files with 24 additions and 10 deletions

View File

@ -635,7 +635,7 @@ function prepareOpenAIMessages({
extensionPrompts,
cyclePrompt
} = {}, dryRun) {
// When there is no character selected, there is no way to accurately calculate tokens
// Without a character selected, there is no way to accurately calculate tokens
if (!promptManager.activeCharacter && dryRun) return [null, false];
const prompts = promptManager.getPromptCollection();
@ -723,7 +723,7 @@ function prepareOpenAIMessages({
promptManager.populateTokenHandler(messages);
promptManager.setMessages(messages);
// All information are up-to-date, render without dry-run.
// All information are up-to-date, render.
if (false === dryRun) promptManager.render(false);
}