mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
chore: bring back file search and ocr options
This commit is contained in:
parent
621695b5a2
commit
2584ded9a0
1 changed files with 3 additions and 4 deletions
|
@ -71,7 +71,7 @@ const AttachFileMenu = ({
|
||||||
// Add document upload option for Anthropic endpoints
|
// Add document upload option for Anthropic endpoints
|
||||||
if (endpoint === EModelEndpoint.anthropic) {
|
if (endpoint === EModelEndpoint.anthropic) {
|
||||||
items.push({
|
items.push({
|
||||||
label: 'Upload Document',
|
label: 'Upload to Provider',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
setToolResource(undefined);
|
setToolResource(undefined);
|
||||||
handleUploadClick('document');
|
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) {
|
||||||
if (capabilities.ocrEnabled && endpoint !== EModelEndpoint.anthropic) {
|
|
||||||
items.push({
|
items.push({
|
||||||
label: localize('com_ui_upload_ocr_text'),
|
label: localize('com_ui_upload_ocr_text'),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
|
@ -92,7 +91,7 @@ const AttachFileMenu = ({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (capabilities.fileSearchEnabled && endpoint !== EModelEndpoint.anthropic) {
|
if (capabilities.fileSearchEnabled) {
|
||||||
items.push({
|
items.push({
|
||||||
label: localize('com_ui_upload_file_search'),
|
label: localize('com_ui_upload_file_search'),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue