Merge branch 'release' into staging

8d34ad5bae40101acbad82d26632261108885911

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -4087,7 +4087,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
4087 await sendMessageAsUser(textareaText, messageBias);4087 await sendMessageAsUser(textareaText, messageBias);
4088 }4088 }
4089 }4089 }
4090 else if (textareaText == '' && !automatic_trigger && !dryRun && type === undefined && main_api == 'openai' && oai_settings.send_if_empty.trim().length > 0) {4090 else if (textareaText == '' && !automatic_trigger && !dryRun && [undefined, 'normal'].includes(type) && main_api == 'openai' && oai_settings.send_if_empty.trim().length > 0) {
4091 // Use send_if_empty if set and the user message is empty. Only when sending messages normally4091 // Use send_if_empty if set and the user message is empty. Only when sending messages normally
4092 await sendMessageAsUser(oai_settings.send_if_empty.trim(), messageBias);4092 await sendMessageAsUser(oai_settings.send_if_empty.trim(), messageBias);
4093 }4093 }