Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAI invalid requet. #37

Closed
ivanlee1999 opened this issue Mar 5, 2023 · 1 comment
Closed

OpenAI invalid requet. #37

ivanlee1999 opened this issue Mar 5, 2023 · 1 comment

Comments

@ivanlee1999
Copy link

After using for a while, the boot will generate such message even though I input a very short sentence:

⚠️ OpenAI Invalid request ⚠️
This model's maximum context length is 4096 tokens. However, you requested 4368 tokens (3168 in the messages, 1200 in the completion). Please reduce the length of the messages or completion.

After restarting the service, it will return normal

@n3d1117
Copy link
Owner

n3d1117 commented Mar 5, 2023

Hi @ivanlee1999, yes this is a known issue, see #34. Basically keeping the entire conversation history consumes a lot of tokens. Should be fixed soon

@n3d1117 n3d1117 closed this as completed Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants