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

encoding before measuring byte length + extra try clause #796

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

ATheorell
Copy link
Collaborator

Solution to #773 crash bug. Addressing the issue by making sure that length is measured in bytes in utf-8 encoding.
Secondly, added additional try/except clause to make sure that, in case the truncation still fails, the program doesn't crash.

@sweep-ai
Copy link
Contributor

sweep-ai bot commented Oct 13, 2023

Apply Sweep Rules to your PR?

  • Apply: Ensure all new functions and classes have very clear, concise and up-to-date docstrings. Take gpt_engineer/ai.py as a good example.

@ATheorell ATheorell merged commit 7aee2a3 into AntonOsika:main Oct 13, 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

Successfully merging this pull request may close these issues.

1 participant