From a788b7a41b5df5a5ad2b218d5dc344e9b650d445 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Tue, 6 Aug 2024 13:45:15 -0700 Subject: [PATCH] agiAttachmentPrompts: lower requirement to 1 --- src/modules/aifn/attachmentprompts/agiAttachmentPrompts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;