You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
1-introduction.ipynb fails to run Exercise 2 with the following error message:
APIRemovedInV1:
You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.
You can run openai migrate to automatically upgrade your codebase to use the 1.0.0 interface.
Alternatively, you can pin your installation to the old version, e.g. pip install openai==0.28
The Devcontainer and codespaces environment should run a post installation after the installation and install python libraries listed in requirements.txt
Describe the bug
1-introduction.ipynb fails to run Exercise 2 with the following error message:
APIRemovedInV1:
You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.
You can run
openai migrate
to automatically upgrade your codebase to use the 1.0.0 interface.Alternatively, you can pin your installation to the old version, e.g.
pip install openai==0.28
A detailed migration guide is available here: openai/openai-python#742
To Reproduce
Steps to reproduce the behavior:
Expected behavior
OpenAI API key to be set up
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: