#763 Fix "Continue on Send"

This commit is contained in:
Cohee 2023-07-22 17:46:59 +03:00
parent 01f1f67de3
commit eccfadb14e

View File

@ -2110,7 +2110,6 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
// OpenAI doesn't need instruct mode. Use OAI main prompt instead. // OpenAI doesn't need instruct mode. Use OAI main prompt instead.
const isInstruct = power_user.instruct.enabled && main_api !== 'openai'; const isInstruct = power_user.instruct.enabled && main_api !== 'openai';
const isImpersonate = type == "impersonate"; const isImpersonate = type == "impersonate";
const isContinue = type == 'continue';
message_already_generated = isImpersonate ? `${name1}: ` : `${name2}: `; message_already_generated = isImpersonate ? `${name1}: ` : `${name2}: `;
// Name for the multigen prefix // Name for the multigen prefix
@ -2199,6 +2198,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
type = 'continue'; type = 'continue';
} }
const isContinue = type == 'continue';
deactivateSendButtons(); deactivateSendButtons();
let { messageBias, promptBias, isUserPromptBias } = getBiasStrings(textareaText, type); let { messageBias, promptBias, isUserPromptBias } = getBiasStrings(textareaText, type);