From 2584ded9a0b47a2907ba1661a76519b8a0ccaabe Mon Sep 17 00:00:00 2001 From: Dustin Healy Date: Thu, 14 Aug 2025 07:50:21 -0700 Subject: [PATCH] chore: bring back file search and ocr options --- client/src/components/Chat/Input/Files/AttachFileMenu.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/components/Chat/Input/Files/AttachFileMenu.tsx b/client/src/components/Chat/Input/Files/AttachFileMenu.tsx index 66063e965..dd29a39bc 100644 --- a/client/src/components/Chat/Input/Files/AttachFileMenu.tsx +++ b/client/src/components/Chat/Input/Files/AttachFileMenu.tsx @@ -71,7 +71,7 @@ const AttachFileMenu = ({ // Add document upload option for Anthropic endpoints if (endpoint === EModelEndpoint.anthropic) { items.push({ - label: 'Upload Document', + label: 'Upload to Provider', onClick: () => { setToolResource(undefined); handleUploadClick('document'); @@ -80,8 +80,7 @@ const AttachFileMenu = ({ }); } - // Hide OCR and File Search for Anthropic endpoints (native PDF support makes these irrelevant) - if (capabilities.ocrEnabled && endpoint !== EModelEndpoint.anthropic) { + if (capabilities.ocrEnabled) { items.push({ label: localize('com_ui_upload_ocr_text'), onClick: () => { @@ -92,7 +91,7 @@ const AttachFileMenu = ({ }); } - if (capabilities.fileSearchEnabled && endpoint !== EModelEndpoint.anthropic) { + if (capabilities.fileSearchEnabled) { items.push({ label: localize('com_ui_upload_file_search'), onClick: () => {