microsoft / generative-ai-for-beginners

21 Lessons, Get Started Building with Generative AI 🔗 https://microsoft.github.io/generative-ai-for-beginners/
https://microsoft.github.io/generative-ai-for-beginners/
MIT License
64.53k stars 32.83k forks source link

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

Closed bmerkle closed 2 months ago

bmerkle commented 2 months ago

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:

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.

github-actions[bot] commented 2 months ago

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

koreyspace commented 2 months ago

Thanks for the fix @bmerkle , in review!