BUG: context_length_exceeded
issue & Max History Message Size
setting DOES NOT seem to WORK
#96
Labels
use
issue when using `anse.app`
What operating system are you using?
Mac
What browser are you using?
Safari, Chrome
Describe the bug
When I use the OpenAI API to chat for a period of time, the problem of exceeding the token limit occurs. Even after clearing all history, the problem STILL exists.
When switching to another newly created blank conversation, it seems that the historical messages of other conversations will also be sent together. The error that the previous conversation exceeded the token limit will affect this new conversation.
The
Max History Message Size
setting DOES NOT seem to take effect.What provider are you using?
OpenAI
What prompt did you enter?
(No matter what is ...)
Console Logs
Error: This model's maximum context length is 4097 tokens. However, you requested 16332 tokens (13 in the messages, 16319 in the completion). Please reduce the length of the messages or completion.
at (entry.mjs:63:6060)
at (entry.mjs:63:18548)
at (entry.mjs:63:18705)
at (entry.mjs:48:1281)
at (entry.mjs:58:56367)
at (entry.mjs:100:617)
Participation
The text was updated successfully, but these errors were encountered: