Closed DevOpsAzurance closed 1 year ago
Can you try with the latest commit? I think we just had to change the import path
getting the following now:
An error occurred while generating the resume. Please try again.
AttributeError: module 'openai' has no attribute 'ChatCompletion'
Traceback:
File "/app/src/Main.py", line 71, in
The stack seems to end at create as pasted above. Additionally in Docker:
2023-11-12 15:03:30 resullme-main-resullme-1 |
2023-11-12 15:03:30 resullme-main-resullme-1 | Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.
2023-11-12 15:03:30 resullme-main-resullme-1 |
2023-11-12 15:03:30 resullme-main-resullme-1 |
2023-11-12 15:03:30 resullme-main-resullme-1 | You can now view your Streamlit app in your browser.
2023-11-12 15:03:30 resullme-main-resullme-1 |
2023-11-12 15:03:30 resullme-main-resullme-1 | Network URL: http://
I completely missed https://github.com/openai/openai-python/discussions/742, looks like they released a new API version. I haven't touched this in a while but I will try to fix it
I can confirm the app is fixed. Thanks for reporting it, I wouldn't have caught the API change alone!
Full stack is:
File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "/app/src/Main.py", line 104, in
except openai.error.RateLimitError as e:
I assume it is related to the version of openai in the requirements file:
Since it is not hard coding the version, it may be using a newer version that is being affected by the ratelimiter.