取消 batch
POST
/v1/batches/{batch_id}/cancel请求取消进行中的 batch。状态先变为 cancelling,平台在可能时调用上游取消接口,确认后变为 cancelled。
已为终态的作业(completed、failed、expired、cancelled)直接返回当前对象。
Authentication
Authorization Bearer
Path Parameters
batch_idstringrequiredBatch ID to cancel.
Response
idstringBatch ID.
objectstringbatch
endpointstring/v1/chat/completions
statusenum<string>Usually cancelling or cancelled.
Available options: cancelling cancelled completed failed expired
input_file_idstringInput file ID.
output_file_idstringOutput JSONL file when already completed.
error_file_idstringError JSONL file when present.
completion_windowstring24h
request_countsobjecttotal, completed, failed counts when available.
created_atintegerUnix timestamp.
cancelled_atintegerUnix timestamp when cancellation is complete.
expires_atintegerUnix timestamp deadline.
metadataobjectStored metadata.
此页面对您有帮助吗?
上一篇
列出 batch
下一篇
下载 batch 文件内容