mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #23505] issue: Import of ChatGPT export file is broken #20003
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fsx8 on GitHub (Apr 8, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23505
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.12
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Chats from a ChatGPT export file (conversations.json) are correctly imported.
Actual Behavior
There is a green success toast notification saying "Imported 0 Chats", although the uploaded file contains dozens of chats and is used as-is right after the export from ChatGPT without any further modification.
The logs show a
POST /api/v1/chats/import HTTP/1.1" 200which makes me assume that the conversion code is probably getting confused.Steps to Reproduce
conversations.jsonfileLogs & Screenshots
POST /api/v1/chats/import HTTP/1.1" 200Additional Information
No response
@swapnilshekade commented on GitHub (Apr 8, 2026):
Hi! I took a look at this issue and tried to understand how ChatGPT exports are being parsed.
It seems like chats that belong to folders/projects in the ChatGPT export may include additional metadata or slightly different structure, which might not be handled correctly during the import process. My suspicion is that these chats are either getting filtered out or failing during the mapping → message tree conversion and being skipped silently.
I’m thinking of approaching this by:
Does this direction sound reasonable? If so, I’d be happy to work on a PR.
@nightt5879 commented on GitHub (Apr 13, 2026):
Hi, I’d like to work on this issue. I’ll reproduce it first and investigate the ChatGPT
conversations.jsonimport path. If no one is already working on it, I can open a PR.