WongSaang / chatgpt-ui

A ChatGPT web client that supports multiple users, multiple languages, and multiple database connections for persistent data storage. Provides Docker images and quick deployment scripts.
https://wongsaang.github.io/chatgpt-ui/
MIT License
1.53k stars 338 forks source link

Exceed maximum context length #231

Open golden-h opened 1 year ago

golden-h commented 1 year ago

Hello, I have the following situation. After a period of chat, an error of token limit exceeded. I tried deleting the chats but the error still shows up. Is there any way to fix this problem?

image @WongSaang

MrAlaminH commented 1 year ago

Deleting chats won't help because the model doesn't have a memory of past requests. Each request is independent and doesn't affect the token count of future requests.

To fix this, you need to reduce the length of your input or output.

golden-h commented 1 year ago

@Its-Alamin-H Thanks for considering my offer.

if you take a look at my screenshot you can see that the text i entered is simply "hello" but still getting the token exceeded error. I am understanding my situation is that all past chats are still being saved and transmitted on request. So I clicked the delete old chats button but the error still occurs.

MrAlaminH commented 1 year ago

If this is the case, then you may need to delete the old chats from the API provider's servers.

Or my recommendation would be to generate a new API and try it out.

gocayeju commented 1 year ago

ingrese en su app > settings > parámetros de modelo >Máximo de tokens asegúrese de que Máximo de tokens no este al máximo