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

Call OpenAI API directly and got this error #6

Open
hcchengithub opened this issue May 19, 2023 · 0 comments
Open

Call OpenAI API directly and got this error #6

hcchengithub opened this issue May 19, 2023 · 0 comments

Comments

@hcchengithub
Copy link

Thanks for your great idea.
I tried with calling OpenAI API and sent chunks into the conversation context.
Due to the token limit, I got this error:

"type": "InvalidRequestError",
"message": "This model's maximum context length is 4097 tokens. However, your messages resulted in 4415 tokens. Please reduce the length of the messages."

Any suggestion?

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