Fix 'send if empty' Closes #4881

088ce0e962b138bb60958f8d32b549a4123f6508

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

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