mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:34:13 -05:00
[PR #496] [CLOSED] Feat: Enable imports of ChatGPT chat history #7148
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/496
Author: @bhulston
Created: 1/17/2024
Status: ❌ Closed
Base:
main← Head:fix/chat-imports📝 Commits (2)
27d5eb4Add chatGPT chat history Import functionality415777eAdd error catching for import📊 Changes
3 files changed (+77 additions, -2 deletions)
View changed files
📝
src/lib/components/chat/SettingsModal.svelte(+8 -1)📝
src/lib/utils/index.ts(+68 -0)📝
src/routes/(app)/c/[id]/+page.svelte(+1 -1)📄 Description
For this issue: https://github.com/ollama-webui/ollama-webui/issues/337
Enable imports of ChatGPT histories (conversations.json), and the ability to choose a new model to use upon import.
src/lib/utils/index.tsthat are used at import time before sending to thecreateNewChatapia) Identify if import is a chatGPT one or Ollama-webui one (as they are very different)
b) Parses and iterates through the chatGPT json to match the ollama-webui chat structure
src/routes/(app)/c/[id]/+page.sveltea) This makes sure that we can select a new model to chat with when a model is not currently selected (upon import)
** Note **: When we import from ChatGPT, we don't default to a model so 1. users aren't forced to use chatgpt and 2. because actually collecting which chatGPT model was used is not clear from the chatgpt json.
Does not import context (i.e. pdf RAG) info from GPT chats. Maybe would be nice in future but would take some investment.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.