The code as described in your readme.md doesn't run because of import errors.
I got:
AttributeError: module 'openai' has no attribute 'RateLimitError'
The file requirements.txt shows we should install the newest version of openai.
That's not going to work if they deprecate the methods you user.
You need to provide concrete version numbers of your packages to ensure compatibility.