From bf212ca83f61fb7f9cff7c7f447307a0090e75ff Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Sat, 13 Sep 2025 11:37:56 -0700 Subject: [PATCH] AIX: Client: Auto-Index of images excludes caption --- src/modules/aix/client/aix.client.chatGenerateRequest.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/aix/client/aix.client.chatGenerateRequest.ts b/src/modules/aix/client/aix.client.chatGenerateRequest.ts index 5e87921da..fc9ae4658 100644 --- a/src/modules/aix/client/aix.client.chatGenerateRequest.ts +++ b/src/modules/aix/client/aix.client.chatGenerateRequest.ts @@ -142,7 +142,7 @@ export async function aixCGR_SystemMessage_FromDMessageOrThrow( if (AUTO_SYSTEM_IMAGES_INDEX) { // Generate description text using pure function const title = sFragment?.ft === 'attachment' ? sFragment.title : undefined; - const caption = sFragment?.ft === 'attachment' ? sFragment.caption : undefined; + // const caption = sFragment?.ft === 'attachment' ? sFragment.caption : undefined; const altText = refPart.zRefSummary?.text || refPart._legacyImageRefPart?.altText; let width = refPart._legacyImageRefPart?.width; let height = refPart._legacyImageRefPart?.height; @@ -180,7 +180,7 @@ export async function aixCGR_SystemMessage_FromDMessageOrThrow( parts.push(`- Generated from: "${prompt}"`); if (author) parts.push(`by ${author}`); } else if (author) parts.push(`- Author: ${author}`); - if (caption && caption !== altText) parts.push(`- ${caption}`); + // if (caption && caption !== altText) parts.push(`- ${caption}`); const descriptionText = parts.join(' '); imageDescriptionTexts.push(descriptionText); }