mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix prompt-manager being rendered twice.
This commit is contained in:
@ -590,7 +590,7 @@ function prepareOpenAIMessages({
|
||||
quietPrompt,
|
||||
extensionPrompts,
|
||||
cyclePrompt
|
||||
} = {}) {
|
||||
} = {}, dryRun) {
|
||||
const prompts = promptManager.getPromptCollection();
|
||||
const chatCompletion = new ChatCompletion();
|
||||
const userSettings = promptManager.serviceSettings;
|
||||
@ -671,7 +671,7 @@ function prepareOpenAIMessages({
|
||||
promptManager.populateTokenHandler(chatCompletion.getMessages());
|
||||
|
||||
// All information are up-to-date, render without dry-run.
|
||||
promptManager.render(false);
|
||||
if (false === dryRun) promptManager.render(false);
|
||||
}
|
||||
|
||||
const chat = chatCompletion.getChat();
|
||||
|
Reference in New Issue
Block a user