LibreChat/api/app/clients
Ruben Talstra 4cbab86b45
📈 feat: Chat rating for feedback (#5878)
* feat: working started for feedback implementation.

TODO:
- needs some refactoring.
- needs some UI animations.

* feat: working rate functionality

* feat: works now as well to reader the already rated responses from the server.

* feat: added the option to give feedback in text (optional)

* feat: added Dismiss option `x` to the `FeedbackTagOptions`

*  feat: Add rating and ratingContent fields to message schema

* 🔧 chore: Bump version to 0.0.3 in package.json

*  feat: Enhance feedback localization and update UI elements

* 🚀 feat: Implement feedback tagging system with thumbs up/down options

* 🚀 feat: Add data-provider package to unused i18n keys detection

* 🎨 style: update HoverButtons' style

* 🎨 style: Update HoverButtons and Fork components for improved styling and visibility

* 🔧 feat: Implement feedback system with rating and content options

* 🔧 feat: Enhance feedback handling with improved rating toggle and tag options

* 🔧 feat: Integrate toast notifications for feedback submission and clean up unused state

* 🔧 feat: Remove unused feedback tag options from translation file

*  refactor: clean up Feedback component and improve HoverButtons structure

*  refactor: remove unused settings switches for auto scroll, hide side panel, and user message markdown

* refactor: reorganize import order

*  refactor: enhance HoverButtons and Fork components with improved styles and animations

*  refactor: update feedback response phrases for improved user engagement

*  refactor: add CheckboxOption component and streamline fork options rendering

* Refactor feedback components and logic

- Consolidated feedback handling into a single Feedback component, removing FeedbackButtons and FeedbackTagOptions.
- Introduced new feedback tagging system with detailed tags for both thumbs up and thumbs down ratings.
- Updated feedback schema to include new tags and improved type definitions.
- Enhanced user interface for feedback collection, including a dialog for additional comments.
- Removed obsolete files and adjusted imports accordingly.
- Updated translations for new feedback tags and placeholders.

*  refactor: update feedback handling by replacing rating fields with feedback in message updates

* fix: add missing validateMessageReq middleware to feedback route and refactor feedback system

* 🗑️ chore: Remove redundant fork option explanations from translation file

* 🔧 refactor: Remove unused dependency from feedback callback

* 🔧 refactor: Simplify message update response structure and improve error logging

* Chore: removed unused tests.

---------

Co-authored-by: Marco Beretta <81851188+berry-13@users.noreply.github.com>
2025-05-30 12:16:34 -04:00
..
agents 📦 fix: npm warnings; chore: bump deprecated packages (#4707) 2024-11-12 18:51:32 -05:00
callbacks 🏗️ fix: Agents Token Spend Race Conditions, Add Auto-refill Tx, Add Relevant Tests (#6480) 2025-03-22 17:54:25 -04:00
chains refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
document 📦 fix: npm warnings; chore: bump deprecated packages (#4707) 2024-11-12 18:51:32 -05:00
llm 🖥️ feat: Code Interpreter API for Non-Agent Endpoints (#6803) 2025-04-09 16:11:16 -04:00
memory 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
output_parsers 🖼️ fix: correct image extraction (#3538) 2024-08-04 20:53:11 -04:00
prompts 🔗 feat: Agent Chain (Mixture-of-Agents) (#6374) 2025-03-17 16:43:44 -04:00
specs 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
tools 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
AnthropicClient.js fix: Debounce setUserContext and Default State Param for OpenID Auth (#7559) 2025-05-25 23:40:37 -04:00
BaseClient.js 💬 refactor: MCP Chat Visibility Option, Google Rates, Remove OpenAPI Plugins (#7286) 2025-05-08 12:12:36 -04:00
ChatGPTClient.js 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
generators.js 🔁 refactor: Token Event Handler and Standardize maxTokens Key (#6886) 2025-04-14 22:38:35 -04:00
GoogleClient.js 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
index.js ci(backend-review.yml): add linter step to the backend review workflow (#625) 2023-07-14 09:36:49 -04:00
OllamaClient.js 🧠 feat: Reasoning UI for Agents (#5904) 2025-02-15 18:52:29 -05:00
OpenAIClient.js 🔄 fix: Assistants Endpoint & Minor Issues (#7274) 2025-05-07 17:11:33 -04:00
PluginsClient.js 🤖 refactor: Improve Agents Memory Usage, Bump Keyv, Grok 3 (#6850) 2025-04-12 18:46:36 -04:00
TextStream.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00