Upload file
POST {{baseUrl}}/files
Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
Request Body
[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"purpose", "value"=>"fine-tune", "datatype"=>"string"}]
RESPONSES
status: OK
{"object":"file","id":"file-vGxE9KywnSUkEL6dv9qZxKAF","purpose":"fine-tune","filename":"my-custom-model.jsonl","bytes":159,"created_at":1679529088,"status":"uploaded","status_details":null}