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

Gracefully handle errors (e.g. don't fail the script if we exceed token limit) #7

Open
vnawrath opened this issue Oct 6, 2023 · 0 comments
Assignees

Comments

@vnawrath
Copy link
Contributor

vnawrath commented Oct 6, 2023

e.g. :
InvalidRequestError: This model's maximum context length is 4097 tokens. However, your messages resulted in 4453 tokens (4275 in the messages, 178 in the functions). Please reduce the length of the messages or functions.

@petrmanak petrmanak self-assigned this Oct 6, 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