Our entire system is DOWN because of a new bug in the OpenAI API for listing files in a vector store: vectorStores.files.list. We are calling it via the nodejs APIs, but I’ve confirmed that it is also broken when calling it directly using curl.
In the test I ran, I uploaded a file, then created a vector store, then added that file into the vector store. Now when I list files in the vector store, I am told there are zero files there. But if I ask specifically for the file I uploaded, it is indeed there. The “list” API is simply broken.
Here are actual curl calls (with actual IDs, but with our tokens hidden). The first call shows that the file exists in that vector store. The second call shows that the list returns none.
This is urgent to us because we periodically synchronize our list of files that we expect in the vector store with what OpenAI reports is there. We will upload anything that is missing. So we are continually uploading more and more copies of the same files.
kduffie$ curl https://api.openai.com/v1/vector_stores/vs_68094d70305481919003c4f34c721cfb/files/file-46igVDuSRUGzuFjduygPrn -H "Authorization: Bearer sk-proj-xxxxxxxxxxxx" -H "Content-Type: application/json" -H "OpenAI-Beta: assistants=v2"
{
"id": "file-46igVDuSRUGzuFjduygPrn",
"object": "vector_store.file",
"usage_bytes": 17216,
"created_at": 1745440686,
"vector_store_id": "vs_68094d70305481919003c4f34c721cfb",
"status": "completed",
"last_error": null,
"chunking_strategy": {
"type": "static",
"static": {
"max_chunk_size_tokens": 800,
"chunk_overlap_tokens": 400
}
},
"attributes": {}
}
kduffie$ curl https://api.openai.com/v1/vector_stores/vs_68095060792c8191a49ebde65cf8c8b7/files -H "Authorization: Bearer sk-proj-xxxxxxxxxxxxxxx" -H "Conten-Type: application/json" -H "OpenAI-Beta: assistants=v2"
{
"object": "list",
"data": [],
"first_id": null,
"last_id": null,
"has_more": false
}