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

upgraded openai to handle exponential backoff #21

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

areibman
Copy link
Contributor

Currently, there's an issue #8 that causes components not to get generated. This is because OpenAI caps how many tokens/minute you can make.

I've updated the OpenAI library to version 4, and this includes retries + exponential backoff. I made the retry limit = 100, which gives the client more than enough retries to generate all components.

Copy link
Owner

@eylonmiz eylonmiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eylonmiz eylonmiz merged commit 501fac0 into eylonmiz:main Nov 14, 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.

None yet

2 participants