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

Maximum context length is 4097 tokens #4

Open
foolsh opened this issue Jun 15, 2023 · 0 comments
Open

Maximum context length is 4097 tokens #4

foolsh opened this issue Jun 15, 2023 · 0 comments

Comments

@foolsh
Copy link

foolsh commented Jun 15, 2023

I'm getting

InvalidRequestError: This model's maximum context length is 4097 tokens. However, you requested 4128 tokens (2128 in the messages, 2000 in the completion). Please reduce the length of the messages or completion.

A Google search points to there

https://stackoverflow.com/questions/75396481/openai-gpt-3-api-error-this-models-maximum-context-length-is-4097-tokens

I've poked around the code but didn't find anything screaming out at me.
Nice project you've got here, I hope to see more

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

1 participant