Early in my python program, I create a client as usual:
client = OpenAI(api_key=‘xxxxxx’)
Later I try to use the client to create a vector_store:
vector_store = client.beta.vector_stores.create(name=“Deposition”)
But I get the following error every time:
AttributeError: ‘Beta’ object has no attribute ‘vector_stores’
I have the very latest python sdk installed (1.21.2). I have tried uninstalling it and reinstalling it, which didn’t help. I have rebooted my computer and cleared out all caches and tried again. No joy.
I’m wondering if this is a bug, or some problem on my end. Has anyone else been able to call “vector_store = client.beta.vector_stores.create(name=‘YourName’)” without getting this error?
Thanks Ben. On further investigation, the problem seems to be some conflict with streamlit (I am building streamlit app). When I created a test project without streamlit, the vector_store created just fine.