mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Hide message text for SD gens. Don't include nudge for Poe on SD gen
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user