diff --git a/src/modules/aifn/attachmentprompts/agiAttachmentPrompts.ts b/src/modules/aifn/attachmentprompts/agiAttachmentPrompts.ts index 301fe18b1..f5cb4ba8e 100644 --- a/src/modules/aifn/attachmentprompts/agiAttachmentPrompts.ts +++ b/src/modules/aifn/attachmentprompts/agiAttachmentPrompts.ts @@ -25,7 +25,7 @@ export async function agiAttachmentPrompts(attachmentFragments: DMessageAttachme // const docParts = attachmentFragments.filter(f => f.part.pt === 'doc').map(f => f.part) as DMessageDocPart[]; // const docs_count = docParts.length; const docs_count = attachmentFragments.length; - if (!llmId || docs_count < 2) + if (!llmId || docs_count < 1) return []; const num_suggestions = 3;