mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Do not generate group responses on dry run
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user