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

fix access openai.Embedding no longer supported in openai>=1.0.0 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cat-mia
Copy link

@cat-mia cat-mia commented Sep 4, 2024

I have followed the tutorial to build a vector index for my Neo4j instance using OpenAI version 1.42.0.
However, during the embedding process(openai_embeddings.py), I encountered the following message:

You tried to access openai.Embedding, 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

image
image

I downgraded my OpenAI version to 0.28, which resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant