chroma-core / chroma

the AI-native open-source embedding database

Home Page:https://www.trychroma.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: self._v1 = openai.__version__.startswith("1.") AttributeError: module 'openai' has no attribute '__version__'

harsh-g-zpqv opened this issue · comments

What happened?

DEFAULT_EF = embedding_functions.OpenAIEmbeddingFunction(api_key=os.getenv('OPENAI_API_KEY'), model_name='text-embedding-3-large')
File "/home/lib/python3.10/site-packages/chromadb/utils/embedding_functions.py", line 177, in init
self._v1 = openai.version.startswith("1.")
AttributeError: module 'openai' has no attribute 'version'

Versions

chroma v0.5.3 python 3.10 openai 1.35.9

Relevant log output

No response