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

breaking openai library update in 09-building-image-applications #544

Closed
bmerkle opened this issue Jul 31, 2024 · 2 comments
Closed

breaking openai library update in 09-building-image-applications #544

bmerkle opened this issue Jul 31, 2024 · 2 comments
Assignees

Comments

@bmerkle
Copy link
Contributor

bmerkle commented Jul 31, 2024

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:

  1. sample 09-building-image-applications
  2. install python libraries via pip
  3. open python files, shows invalid code

Expected behavior
Code, documentation and libraries shall be in sync.

Copy link

👋 Thanks for contributing @bmerkle! We will review the issue and get back to you soon.

@koreyspace
Copy link
Collaborator

Thanks for the fix @bmerkle , in review!

@github-actions github-actions bot locked and limited conversation to collaborators Aug 29, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants