[Bug]: self._v1 = openai.__version__.startswith("1.") AttributeError: module 'openai' has no attribute '__version__'
harsh-g-zpqv opened this issue · comments
harsh-g-zpqv commented
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