[PR #535] [MERGED] Add validation for chatGPT imports, stopping any breaking issues with imports of incompatible chats #20363

Closed
opened 2026-04-20 02:55:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/535
Author: @bhulston
Created: 1/19/2024
Status: Merged
Merged: 1/21/2024
Merged by: @tjbck

Base: mainHead: fix/chat-imports


📝 Commits (1)

  • 4d85e2c Add validation for chatGPT imports, stopping any breaking issues when imports are corrupted/not compatible

📊 Changes

1 file changed (+57 additions, -17 deletions)

View changed files

📝 src/lib/utils/index.ts (+57 -17)

📄 Description

Tested on 1000 chats from 3 separate people...

chatGPT imports might use external tools like Dall-E or there also might be corrupted chats that were interrupted several times from users.

To deal with this, I basically added a new validation function to make sure the chat imports look good and a new try catch block for any bad imports. In the case that they do not, we just won't include them.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/535 **Author:** [@bhulston](https://github.com/bhulston) **Created:** 1/19/2024 **Status:** ✅ Merged **Merged:** 1/21/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `fix/chat-imports` --- ### 📝 Commits (1) - [`4d85e2c`](https://github.com/open-webui/open-webui/commit/4d85e2cb157f76bc61ecdfc2cdc42bf683ad4aa8) Add validation for chatGPT imports, stopping any breaking issues when imports are corrupted/not compatible ### 📊 Changes **1 file changed** (+57 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/utils/index.ts` (+57 -17) </details> ### 📄 Description Tested on 1000 chats from 3 separate people... chatGPT imports might use external tools like Dall-E or there also might be corrupted chats that were interrupted several times from users. To deal with this, I basically added a new validation function to make sure the chat imports look good and a new try catch block for any bad imports. In the case that they do not, we just won't include them. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 02:55:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#20363