ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
76.13k stars 59.02k forks source link

[Bug] Failed to execute 'setItem' on 'Storage': Setting the value of 'chat-next-web-store' exceeded the quota #5002

Closed mxdlzg closed 3 months ago

mxdlzg commented 3 months ago

Bug Description

There are more and more multi-modal model applications. The input pictures will occupy a lot of local storage space. If there are more than 50 dialogues, similar errors will occur, seriously affecting the use (or basically unusable).

image

Steps to Reproduce

New conversation.

Ask llm with image everytime.

Expected Behavior

Do not exceed quota, or use server-side storage.

Screenshots

No response

Deployment Method

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

lloydzhou commented 3 months ago

v2.13.1 版本支持图片使用cache storage存储到本地缓存(这个存储体积与磁盘大小相关),localStorage中只保留图片链接。 应该可以解决使用多模态模型存储限制的问题。

Issues-translate-bot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically.


v2.13.1 version supports storing images in local cache using cache storage (this storage volume is related to the disk size), Only image links are kept in localStorage. This should solve the storage limitations of using multimodal models.

17794 commented 2 months ago

v2.14.2 has the same question in windows exe version when use dalle-3 multi times

lloydzhou commented 2 months ago

经测试,app版本,无法注册serviceWorker成功,导致无法使用CacheStorage。 所以,后面会尝试先使用indexeddb缓解localStorage的问题。 再尝试在App端升级tauri插件,争取能让serviceWorker正常工作

Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically.


After testing, the app version failed to register the serviceWorker successfully, resulting in the inability to use CacheStorage. Therefore, I will try to use indexeddb to alleviate the localStorage problem later. Try to upgrade the tauri plug-in on the App side again, and try to make the serviceWorker work normally.