LibreChat/api/server/utils/import
Danny Avila 519645c0b0
🔻 fix: Role and System Message Handling for ChatGPT Imports (#9524)
* fix: ChatGPT import logic breaks message graph when it encounters a system message

- Implemented `findNonSystemParent` to maintain parent-child relationships by skipping system messages.
- Added a test case to ensure system messages do not disrupt the conversation flow during import.

* fix: ChatGPT import, correct sender for user messages with GPT-4 model

* fix: Enhance model name extraction for assistant messages in import process

- Updated sender assignment logic to dynamically extract model names from model slugs, improving accuracy for various GPT models.
- Added comprehensive tests to validate the extraction and formatting of model names from different model slugs, ensuring robustness in the import functionality.
2025-09-09 13:51:26 -04:00
..
__data__ 🎥 feat: YouTube Tool (#5582) 2025-01-31 19:11:04 -05:00
fork.js feat: Implement Conversation Duplication & UI Improvements (#5036) 2024-12-18 11:10:34 -05:00
fork.spec.js feat: Implement Conversation Duplication & UI Improvements (#5036) 2024-12-18 11:10:34 -05:00
importBatchBuilder.js 🌿 fix: forking a long conversation breaks chat structure (#4778) 2024-11-22 16:10:59 -05:00
importConversations.js 🔧 fix: Add missing configMiddleware to Convo Import Routes 2025-08-28 23:12:58 -04:00
importers-timestamp.spec.js refactor: Add Robust Timestamp handling for Conversation Imports (#8262) 2025-07-05 12:44:19 -04:00
importers.js 🔻 fix: Role and System Message Handling for ChatGPT Imports (#9524) 2025-09-09 13:51:26 -04:00
importers.spec.js 🔻 fix: Role and System Message Handling for ChatGPT Imports (#9524) 2025-09-09 13:51:26 -04:00
index.js ℹ️ refactor: Remove use of Agenda for Conversation Imports (#3024) 2024-06-10 13:00:34 -04:00