agiAttachmentPrompts: lower requirement to 1

This commit is contained in:
Enrico Ros
2024-08-06 13:45:15 -07:00
parent 024489939e
commit a788b7a41b
@@ -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;