blah.txt fails in exactly the same manner:
file = client.files.upload(
parameters: {
file: path_to_upload,
purpose: "assistants"
}
)
{"object"=>"file", "id"=>"file-cr2IqoYc5TKLAy9g3tXSsLn5", "purpose"=>"assistants", "filename"=>"blah.txt", "bytes"=>48, "created_at"=>1721005143, "status"=>"processed", "status_details"=>nil}
response = client.vector_store_files.create(
vector_store_id: vector_store['id'],
parameters: {
file_id: file['id']
}
)
{"id"=>"file-cr2IqoYc5TKLAy9g3tXSsLn5", "object"=>"vector_store.file", "usage_bytes"=>0, "created_at"=>1721005143, "vector_store_id"=>"vs_BGZTsHutIG4ncQkAjQYo7pJm", "status"=>"in_progress", "last_error"=>nil, "chunking_strategy"=>{"type"=>"static", "static"=>{"max_chunk_size_tokens"=>800, "chunk_overlap_tokens"=>400}}}
client.vector_store_files.list(vector_store_id: vector_store['id'])
{"object"=>"list",
"data"=>
[{"id"=>"file-cr2IqoYc5TKLAy9g3tXSsLn5",
"object"=>"vector_store.file",
"usage_bytes"=>0,
"created_at"=>1721005143,
"vector_store_id"=>"vs_BGZTsHutIG4ncQkAjQYo7pJm",
"status"=>"failed",
"last_error"=>{"code"=>"unsupported_file", "message"=>"The file type is not supported."},
"chunking_strategy"=>{"type"=>"static", "static"=>{"max_chunk_size_tokens"=>800, "chunk_overlap_tokens"=>400}}},
{"id"=>"file-w5ZxKuQYi5lSsOnhKLto7tgo",
"object"=>"vector_store.file",
"usage_bytes"=>0,
"created_at"=>1720957235,
"vector_store_id"=>"vs_BGZTsHutIG4ncQkAjQYo7pJm",
"status"=>"failed",
"last_error"=>{"code"=>"unsupported_file", "message"=>"The file type is not supported."},
"chunking_strategy"=>{"type"=>"static", "static"=>{"max_chunk_size_tokens"=>800, "chunk_overlap_tokens"=>400}}}],
"first_id"=>"file-cr2IqoYc5TKLAy9g3tXSsLn5",
"last_id"=>"file-w5ZxKuQYi5lSsOnhKLto7tgo",
"has_more"=>false}