LibreChat/client/src/components/Chat/Input/Files
Danny Avila 81139046e5
🔄 refactor: Convert OCR Tool Resource to Context (#9699)
* WIP: conversion of `ocr` to `context`

* refactor: make `primeResources` backwards-compatible for `ocr` tool_resources

* refactor: Convert legacy `ocr` tool resource to `context` in agent updates

- Implemented conversion logic to replace `ocr` with `context` in both incoming updates and existing agent data.
- Merged file IDs and files from `ocr` into `context` while ensuring deduplication.
- Updated tools array to reflect the change from `ocr` to `context`.

* refactor: Enhance context file handling in agent processing

- Updated the logic for managing context files by consolidating file IDs from both `ocr` and `context` resources.
- Improved backwards compatibility by ensuring that context files are correctly populated and handled.
- Simplified the iteration over context files for better readability and maintainability.

* refactor: Enhance tool_resources handling in primeResources

- Added tests to verify the deletion behavior of tool_resources fields, ensuring original objects remain unchanged.
- Implemented logic to delete `ocr` and `context` fields after fetching and re-categorizing files.
- Preserved context field when the context capability is disabled, ensuring correct behavior in various scenarios.

* refactor: Replace `ocrEnabled` with `contextEnabled` in AgentConfig

* refactor: Adjust legacy tool handling order for improved clarity

* refactor: Implement OCR to context conversion functions and remove original conversion logic in update agent handling

* refactor: Move contextEnabled declaration to maintain consistent order in capabilities

* refactor: Update localization keys for file context to improve clarity and accuracy

* chore: Update localization key for file context information to improve clarity
2025-09-18 20:06:59 -04:00
..
Table 📦 feat: Move Shared Components to @librechat/client (#8685) 2025-07-27 12:19:01 -04:00
AttachFile.tsx 📦 feat: Move Shared Components to @librechat/client (#8685) 2025-07-27 12:19:01 -04:00
AttachFileChat.tsx 📂 refactor: Show File Search and Code File Upload Options Based on Agent Tools (#9532) 2025-09-09 20:48:29 -04:00
AttachFileMenu.tsx 🔄 refactor: Convert OCR Tool Resource to Context (#9699) 2025-09-18 20:06:59 -04:00
DragDropModal.tsx 🔄 refactor: Convert OCR Tool Resource to Context (#9699) 2025-09-18 20:06:59 -04:00
DragDropOverlay.tsx 📬 refactor: Improved Rendering and Localization for Drag & Drop Files (#9547) 2025-09-10 14:27:57 -04:00
DragDropWrapper.tsx 🧩 refactor: File Upload Options based on Ephemeral Agent (#9693) 2025-09-18 14:44:55 -04:00
FileContainer.tsx 🗃️ feat: Code Interpreter File Persistence between Sessions (#6790) 2025-04-08 23:18:50 -04:00
FileFormChat.tsx 📇 refactor: Improve State mgmt. for File uploads and Tool Auth (#9359) 2025-08-28 23:11:16 -04:00
FilePreview.tsx 📁 feat: Integrate SharePoint File Picker and Download Workflow (#8651) 2025-08-13 16:24:16 -04:00
FileRow.tsx 📇 refactor: Improve State mgmt. for File uploads and Tool Auth (#9359) 2025-08-28 23:11:16 -04:00
FilesView.tsx 📦 feat: Move Shared Components to @librechat/client (#8685) 2025-07-27 12:19:01 -04:00
FileUpload.tsx 🔒 feat: Two-Factor Authentication with Backup Codes & QR support (#5685) 2025-02-17 19:09:36 -05:00
Image.tsx 🎨 feat: enhance Chat Input UI, File Mgmt. UI, Bookmarks a11y (#5112) 2024-12-29 17:31:41 -05:00
ImagePreview.tsx 📦 feat: Move Shared Components to @librechat/client (#8685) 2025-07-27 12:19:01 -04:00
ProgressCircle.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
RemoveFile.tsx 🗑️ a11y: Add Accessible Name to Button for File Attachment Removal (#6709) 2025-04-03 21:45:10 +02:00
SourceIcon.tsx 🔧 fix: Azure Blob Integration and File Source References (#6575) 2025-03-31 13:44:20 -04:00