Hide message text for SD gens. Don't include nudge for Poe on SD gen

This commit is contained in:
SillyLossy
2023-05-17 11:10:29 +03:00
parent 0c3aae8d40
commit 76895705b6
2 changed files with 4 additions and 2 deletions

View File

@ -1033,11 +1033,13 @@ function getMessageFromTemplate({ mesId, characterName, isUser, avatarImg, bias,
export function appendImageToMessage(mes, messageElement) { export function appendImageToMessage(mes, messageElement) {
if (mes.extra?.image) { if (mes.extra?.image) {
const image = messageElement.find('.mes_img'); const image = messageElement.find('.mes_img');
const text = messageElement.find('.mes_text');
const isInline = !!mes.extra?.inline_image; const isInline = !!mes.extra?.inline_image;
image.attr('src', mes.extra?.image); image.attr('src', mes.extra?.image);
image.attr('title', mes.extra?.title || mes.title); image.attr('title', mes.extra?.title || mes.title || '');
messageElement.find(".mes_img_container").addClass("img_extra"); messageElement.find(".mes_img_container").addClass("img_extra");
image.toggleClass("img_inline", isInline); image.toggleClass("img_inline", isInline);
text.toggleClass('displayNone', !isInline);
} }
} }

View File

@ -118,7 +118,7 @@ async function generatePoe(type, finalPrompt, signal) {
const isImpersonate = type === 'impersonate'; const isImpersonate = type === 'impersonate';
const isQuiet = type === 'quiet'; const isQuiet = type === 'quiet';
if (poe_settings.character_nudge && !isImpersonate) { if (poe_settings.character_nudge && !isQuiet && !isImpersonate) {
let characterNudge = '\n' + substituteParams(poe_settings.character_nudge_message); let characterNudge = '\n' + substituteParams(poe_settings.character_nudge_message);
finalPrompt += characterNudge; finalPrompt += characterNudge;
} }