LibreChat/packages/data-provider/src
Danny Avila b2f44fc90f
🧩 feat: Web Search Config Validations & Clipboard Citation Processing (#7530)
* 🔧 chore: Add missing optional `scraperTimeout` to webSearchSchema

* chore: Add missing optional `scraperTimeout` to web search authentication result

* chore: linting

* feat: Integrate attachment handling and citation processing in message components

- Added `useAttachments` hook to manage message attachments and search results.
- Updated `MessageParts`, `ContentParts`, and `ContentRender` components to utilize the new hook for improved attachment handling.
- Enhanced `useCopyToClipboard` to format citations correctly, including support for composite citations and deduplication.
- Introduced utility functions for citation processing and cleanup.
- Added tests for the new `useCopyToClipboard` functionality to ensure proper citation formatting and handling.

* feat: Add configuration for LibreChat Code Interpreter API and Web Search variables

* fix: Update searchResults type to use SearchResultData for better type safety

* feat: Add web search configuration validation and logging

- Introduced `checkWebSearchConfig` function to validate web search configuration values, ensuring they are environment variable references.
- Added logging for proper configuration and warnings for incorrect values.
- Created unit tests for `checkWebSearchConfig` to cover various scenarios, including valid and invalid configurations.

* docs: Update README to include Web Search feature details

- Added a section for the Web Search feature, highlighting its capabilities to search the internet and enhance AI context.
- Included links for further information on the Web Search functionality.

* ci: Add mock for checkWebSearchConfig in AppService tests

* chore: linting

* feat: Enhance Shared Messages with Web Search UI by adding searchResults prop to SearchContent and MinimalHoverButtons components

* chore: linting

* refactor: remove Meilisearch index sync from importConversations function

* feat: update safeSearch implementation to use SafeSearchTypes enum

* refactor: remove commented-out code in loadTools function

* fix: ensure responseMessageId handles latestMessage ID correctly

* feat: enhance Vite configuration for improved chunking and caching

- Added additional globIgnores for map files in Workbox configuration.
- Implemented high-impact chunking for various large libraries to optimize performance.
- Increased chunkSizeWarningLimit from 1200 to 1500 for better handling of larger chunks.

* refactor: move health check hook to Root, fix bad setState for Temporary state

- Enhanced the `useHealthCheck` hook to initiate health checks only when the user is authenticated.
- Added logic for managing health check intervals and handling window focus events.
- Introduced a new test suite for `useHealthCheck` to cover various scenarios including authentication state changes and error handling.
- Removed the health check invocation from `ChatRoute` and added it to `Root` for global health monitoring.

* fix: update font alias in Vite configuration for correct path resolution
2025-05-24 10:23:17 -04:00
..
react-query 🗓️ feat: Add Special Variables for Prompts & Agents, Prompt UI Improvements (#7123) 2025-04-29 03:49:02 -04:00
types 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
actions.ts 🗺️ feat: Add Parameter Location Mapping for OpenAPI actions (#6858) 2025-04-16 18:11:03 -04:00
api-endpoints.ts feat: Agent Version History and Management (#7455) 2025-05-23 17:40:39 -04:00
artifacts.ts 🪟 fix: Windows Build (npm) (#3889) 2024-09-02 10:01:09 -04:00
azure.ts 🖼️ refactor: Enhance Env Extraction & Agent Image Handling (#6131) 2025-03-01 07:51:12 -05:00
bedrock.ts 🪨 feat: Bedrock Support for Claude-4 Reasoning (#7517) 2025-05-23 00:42:51 -04:00
config.ts 🧩 feat: Web Search Config Validations & Clipboard Citation Processing (#7530) 2025-05-24 10:23:17 -04:00
createPayload.ts 🖥️ feat: Code Interpreter API for Non-Agent Endpoints (#6803) 2025-04-09 16:11:16 -04:00
data-service.ts feat: Agent Version History and Management (#7455) 2025-05-23 17:40:39 -04:00
file-config.ts 🖼️ feat: Tool Call and Loading UI Refresh, Image Resize Config (#7086) 2025-05-19 19:23:11 -04:00
generate.ts 🎚️ feat: Custom Parameters (#7342) 2025-05-19 19:33:25 -04:00
headers-helpers.ts chore: add back data-provider 2023-07-30 11:50:24 -04:00
index.ts 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
keys.ts feat: Agent Version History and Management (#7455) 2025-05-23 17:40:39 -04:00
mcp.ts 🔗 feat: Support Environment Variables in MCP URL Config (#7424) 2025-05-19 19:37:21 -04:00
models.ts 🚀 feat: Use Model Specs + Specific Endpoints, Limit Providers for Agents (#6650) 2025-04-01 03:50:32 -04:00
ocr.ts 🔍 feat: Mistral OCR API / Upload Files as Text (#6274) 2025-03-10 17:23:46 -04:00
parameterSettings.ts 🎚️ feat: Custom Parameters (#7342) 2025-05-19 19:33:25 -04:00
parsers.ts 🔧 fix: Google Gemma Support & OpenAI Reasoning Instructions (#7196) 2025-05-02 15:11:50 -04:00
permissions.ts 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
request.ts 🔒 feat: Two-Factor Authentication with Backup Codes & QR support (#5685) 2025-02-17 19:09:36 -05:00
roles.ts 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
schemas.ts 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
types.ts 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
utils.ts 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
web.ts 🧩 feat: Web Search Config Validations & Clipboard Citation Processing (#7530) 2025-05-24 10:23:17 -04:00
zod.spec.ts 🔀 fix: MCP Improvements, Auto-Save Drafts, Artifact Markup (#7040) 2025-04-23 18:56:06 -04:00
zod.ts 🐋 fix: Improve Deepseek Compatbility (#7132) 2025-04-29 09:55:43 -04:00