I’m making an app in python / flask, I upload small pdf and docx files (200kB or so) and when doing this:
client = OpenAI(api_key=settings.openai_api_key)
vector_store = client.vector_stores.create(name="pdf_store")
vs_id = vector_store.id
# Upload file
file_resp = client.files.create( # < 512 MB
file=open(filepath, "rb"),
purpose="assistants" # mandatory
)
print("create_and_poll")
client.vector_stores.files.create_and_poll( # blocks until embedding finishes
vector_store_id=vs_id,
file_id=file_resp.id
)
print("create_and_poll done")
the “create_and_poll” message stays there waiting for ever. This system has been working for like 2 months or so, and today started to fail. The files are ok (are the one I used for develop and testing), my quotas are ok (1%) the files are well uploaded, and is the process of embedding that is failing.
Can somebody check this out? Apart from this, all the API works fine for me.
Thanks in advice