ztjhz / BetterChatGPT

An amazing UI for OpenAI's ChatGPT (Website + Windows + MacOS + Linux)
http://bettergpt.chat/
Creative Commons Zero v1.0 Universal
8.19k stars 2.76k forks source link

Importing large Json file fails to upload full Chat. #611

Closed T0kunz closed 2 months ago

T0kunz commented 3 months ago

I am trying to import a chat that I have been using for about 2 years, and was starting to get noticeably slow on the ChatGPT website. I wanted to transfer the chat to BetterGPT so that I can use GPT while the ChatGPT website was down and to see if it would Fix my issue in speed of the chat.

But when I tried to import the conversations json file, all the other Chats imported fine but the one I wanted did not. I've isolated the singular json file and the size is 1848KB.

Is there a way to fix this?

animalnots commented 3 months ago

Does it have images?

T0kunz commented 3 months ago

Here is an image of of my Json file, (I dont want to link the whole thing)

image

Here is an image of what I get on BetterGPT

image

animalnots commented 3 months ago

can u try https://animalnots.github.io/BetterChatGPT-PLUS/ or even better, a desktop version https://github.com/animalnots/BetterChatGPT-PLUS/releases

T0kunz commented 3 months ago

I encountered the same problem, on BetterGPT PLUS on both web and desktop versions

animalnots commented 3 months ago

Can you perhaps show what the error in console is?

T0kunz commented 3 months ago

How do I get to that?

animalnots commented 3 months ago

depends on browser and your OS https://help.planday.com/en/articles/30207-how-to-open-the-developer-console-in-your-web-browser

T0kunz commented 3 months ago

This is what I got

image

animalnots commented 3 months ago

I am trying to import a chat that I have been using for about 2 years, and was starting to get noticeably slow on the ChatGPT website.

I wanted to transfer the chat to BetterGPT so that I can use GPT while the ChatGPT website was down and to see if it would Fix my issue in speed of the chat.

But when I tried to import the conversations json file, all the other Chats imported fine but the one I wanted did not. I've isolated the singular json file and the size is 1848KB.

Is there a way to fix this?

Do you know how many messages there are inside this big chat?

animalnots commented 3 months ago

try now with 1.8.0 https://github.com/animalnots/BetterChatGPT-PLUS/releases/tag/v1.8.0

T0kunz commented 3 months ago

Still did not work.

Also to answer you question from, there are currently 1,003 messages.

animalnots commented 3 months ago

Still did not work.

Also to answer you question from, there are currently 1,003 messages.

Desktop version doesn't have storage limit, if the import doesn't work, the json is perhaps malformatted or something else is wrong. I tested it on file > 3000 KB and it successfully reduced the chat size to the acceptable limit of 256k tokens (for UI not to lag).

The only edge cases are: 1) your first message in the chat hits the limit (e.g. the first message is 1kk tokens) 2) you already hit/about to hit the limit because of the other chats

1 & 2 should only happen in browser and not in the desktop version.

Are you getting any notifications at the top right when you import?

T0kunz commented 3 months ago

When I import it on desktop it says it was successful. But it still doesn't import the chat. I really dont know what is wrong it might be the chat itself because I also imported my all my chats from gpt in a file > 3000 KB and it was the only chat that didnt import correctly.

I just genuinely do not know what is wrong with the file.

animalnots commented 3 months ago

can u perhaps share the file/part of it privately? https://discord.gg/2CKfAbAJrH

animalnots commented 2 months ago

fixed at https://github.com/animalnots/BetterChatGPT-PLUS/releases/tag/v1.8.2

T0kunz commented 2 months ago

Thx