mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-13 17:58:56 -06:00
[GH-ISSUE #11734] Fix chat import from chatgpt json file. import & preserve unix timestamp "create_time" "update_time" #31864
Reference in New Issue
Block a user
Originally created by @samsong on GitHub (Mar 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11734
openwebui does not import & save the chatgpt JSON export timestamp
"create_time" & "update_time"
please add this feature
manual fix possible for now below instructions how i did it
Export ChatGPT json.
Open file: regex remove the seconds from timestamp, save close
Upload file to: https://tableconvert.com/json-to-sql - download "insert sql" (sqlite) including table creation, tablename "chatgpt"
Download openwebui database: filename webui.db
Open it using (Windows) sqlite db browser
Import chat SQL file to a table called "chatgpt"
run this command:
close the database, upload file replace webui.db
run openwebui. all chats will be date sorted.
Originally posted by @samsong in https://github.com/open-webui/open-webui/discussions/5682#discussioncomment-12513952