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
Hi - I'm confused about the version of the openai library that jupyter_ai requires when fetched with 'pip install'. It wants a 0.26-compatible version, and if I have the modern 1.6.1 installed, I get this error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. jupyter-ai 2.7.1 requires openai~=0.26, but you have openai 1.6.1 which is incompatible.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
@simonff Thank you for opening this issue! Upgrading to openai version 1 would be a good improvement. I've upgraded my dependency locally, and I've run openai migrate to update the code in Jupyter AI, but I'm still seeing an error when running a magic command:
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: https://github.com/openai/openai-python/discussions/742
I can take another look at this soon. If you find a mitigation for this error, please open a pull request, and we will consider incorporating it. Thank you for your interest in Jupyter AI!
Hi - I'm confused about the version of the openai library that jupyter_ai requires when fetched with 'pip install'. It wants a 0.26-compatible version, and if I have the modern 1.6.1 installed, I get this error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. jupyter-ai 2.7.1 requires openai~=0.26, but you have openai 1.6.1 which is incompatible.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: