generative-ai-for-beginners
generative-ai-for-beginners copied to clipboard
breaking openai library update in 09-building-image-applications
Describe the bug There are some breaking changes in openai library between version 0.28.x and version 1.x. In sample 09-building-image-applications the requirements.txt does not specify any version. Using pip pulls the most recent openai library (aka some 1.x version) However the python code is still on version 0.28.x which results in invalid code.
The pull request fixes the python code and documentation:
- rename of openai.error.InvalidRequestError into openai.InvalidRequestError
To Reproduce Steps to reproduce the behavior:
- sample 09-building-image-applications
- install python libraries via pip
- open python files, shows invalid code
Expected behavior Code, documentation and libraries shall be in sync.