Thread Specific File Attachment Error Handling

Ok, so we had an issue earlier where we uploaded a file to the assistants message, which creates the thread-specific vector DBs. Now when we add files directly to the vectors.file.create, we can poll the status of the files as a VectorStoreFile. When using the thread stores, you have to use the older Files endpoint, which returns a File object.

Vector Files have a status which can be used to check whether the embeddings worked correctly, or if the file was too big and so on, but the Files object does not, (it’s deprecated).

So a proper sequence for checking the status of our user journey is

files.create → file_id
… get vectorstore from thread, check file_id.status
if OK call run.create

Is it really this complicated or am I missing something?