From 573658ec7eedfe32c6204d4d18c401801eb743d6 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Sun, 4 Aug 2024 01:03:27 -0700 Subject: [PATCH] Attachments: fix mime --- src/common/attachment-drafts/attachment.mimetypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/attachment-drafts/attachment.mimetypes.ts b/src/common/attachment-drafts/attachment.mimetypes.ts index 4d3b767ee..b930c51d2 100644 --- a/src/common/attachment-drafts/attachment.mimetypes.ts +++ b/src/common/attachment-drafts/attachment.mimetypes.ts @@ -127,7 +127,7 @@ export function mimeTypeIsPlainText(mimeType: string): boolean { // we include this list: https://ai.google.dev/gemini-api/docs/prompting_with_media?lang=node#plain_text_formats // and include a greater number of plain text files const docType = GuessedMimeLookupTable[mimeType]?.dt; - return docType === 'plain' || docType === 'html' || docType === 'code'; + return docType === 'plain' || docType === 'markdown' || docType === 'html' || docType === 'code'; } // Image Rules across the supported LLMs