ChatGPTNextWeb / ChatGPT-Next-Web

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

[Bug] Recurring QuotaExceeded error #5010

Open m0rg5 opened 2 months ago

m0rg5 commented 2 months ago

Bug Description

NextChat crashing regularly with:

QuotaExceededError: The Quota Has been exceeded.

I've tried multiple higher settings in both "Max Tokens" and "History Compression Threshold", and now back to 10000.

This recurrs regardless of token or model used. This seemed to start after adding Anthropic API, with lower token limit, and hence required I changed token limit.

I've since changed back/uninstalled/reset/cleared data and it's made no difference.

I'm also getting quota exceeded messages on short prompt replies, right now gpt-4o-2024-05-13

{
  "error": true,
  "message": "The quota has been exceeded."
}

On trying to prompt: image

On creating a new empty chat: image

Steps to Reproduce

Write prompts,

Expected Behavior

Complete prompt, not crash

Screenshots

No response

Deployment Method

Desktop OS

Macos 14.5

Desktop Browser

NextChat

Desktop Browser Version

2.12.4

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

mountainguan commented 2 months ago

the same here

m0rg5 commented 2 months ago

So, I've reset, uninstalled again, and it seemed stable, then I reimported my backed up json, and the same issues reoccur (note: neither max tokens or history compression are changing, currently showing default: 4000/1000).

lloydzhou commented 1 month ago

针对多模态的模型,之前的系统将图片压缩后以base64格式存放到localStorage,这会触发QuotaExceededError错误。

v2.13.1 版本,将图片放到CacheStorage(这个能存放的文件数量和磁盘大小有关,而不是限制在10M以内) 这个版本应该能解决QuotaExceededError的问题。 但是,这里还没有针对旧的图片做兼容处理,可以先移除旧消息中的一两张比较大的图片,再升级到新版本。

Issues-translate-bot commented 1 month ago

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


For multi-modal models, the previous system compressed the image and stored it in base64 format in localStorage, which would trigger a QuotaExceededError error.

v2.13.1 version, put the image into CacheStorage (the number of files that can be stored is related to the disk size, not limited to 10M) This version should solve the problem of QuotaExceededError. However, there is no compatibility processing for old pictures here. You can first remove one or two larger pictures in the old messages and then upgrade to the new version.

m0rg5 commented 1 month ago

Sounds good, tho I've likely inserted a total of 2 images into a chat in the many months I've used NextChat, so . . 🤷‍♂️.

Any trick/issue with importing my "corrupted" JSON into 2.13.1?