jdagdelen / hyperDB

A hyper-fast local vector database for use with LLM Agents. Now accepting SAFEs at $135M cap.
MIT License
1.36k stars 83 forks source link

openai.Embedding, but this is no longer supported in openai>=1.0.0 #36

Open DariusTans opened 2 months ago

DariusTans commented 2 months ago

i try to run hyperDB with code for openai 1.35.3 but found this error

APIRemovedInV1:

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

jdagdelen commented 3 weeks ago

Thanks, will update rn.