上传 batch 输入文件
POST
/v1/files上传将用于 POST /v1/batches 的 JSONL 输入文件。须设置 purpose=batch。
Authentication
Authorization Bearer
Request Body
multipart/form-data
filefilerequiredJSONL file. Max 200 MB. Extension must be .jsonl when purpose=batch.
purposestringrequiredMust be batch for batch input files.
Example: "batch"
asset_groupstringOptional storage group. Console uploads often use library.
ttl_secondsintegerOptional time-to-live for the stored file.
Response
idstringFile ID. Pass as input_file_id when creating a batch.
objectstringfile
bytesintegerFile size in bytes.
created_atintegerUnix timestamp.
filenamestringOriginal filename.
purposestringbatch
statusstringe.g. processed
此页面对您有帮助吗?
上一篇
列出支持 batch 的模型
下一篇
创建 batch