- 🔥最新公告
- OpenAI SDK教程
- 聊天(OpenAIChat)
- AnthropicClaude
- 图像(Images)
- 视频生成(Videos)
- 音频(Audio)
- 嵌入(RAG-Embeddings)
- 重排序(RAG-Reranker)
- 对象存储+文件解析(Files)
- 内容审查(Moderations)
- 助手测试版(AssistantsBeta)待开发
- 线程数(Threads)待开发
- 留言(Messages)待开发
- 运行(Runs)待开发
- 批量API(Batch API)待开发
- 微调(Fine-tuning)待开发
- 🔥AI 工具
- 文档智能&图片处理
- AI产品配置教程
- 教程类
- 系统API
- 视频生成
- Midjourney
- Recraft(图片)
- 未命名接口POST
- 未命名接口POST
取消 Batch
开发中
正式环境
正式环境
POST
https://api.chatfire.cn
最后修改时间:2024-05-31 06:50:08
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
batch_id
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.chatfire.cn/batches//cancel'
返回响应
🟢200成功
application/json
Body
id
string
批处理的唯一标识符。
object
string
对象类型,这里为 "batch"。
endpoint
string
批处理使用的 API 端点。
errors
null
必需
input_file_id
string
批处理使用的输入文件的ID。
completion_window
string
批处理应在此时间框架内完成的期限。
status
string
批处理的当前状态。
output_file_id
null
包含成功执行请求的输出的文件ID。
error_file_id
null
包含出现错误的请求的输出的文件ID。
created_at
integer
创建批处理的Unix时间戳(秒)。
in_progress_at
integer
批处理开始处理的Unix时间戳(秒)。
expires_at
integer
批处理将过期的Unix时间戳(秒)。
finalizing_at
null
批处理开始最终处理的Unix时间戳(秒)。
completed_at
null
批处理完成的Unix时间戳(秒)。
failed_at
null
批处理失败的Unix时间戳(秒)。
expired_at
null
批处理过期的Unix时间戳( 秒)。
cancelling_at
integer
批处理开始取消的Unix时间戳(秒)。
cancelled_at
null
批处理取 消完成的Unix时间戳(秒)。
request_counts
object
batch 请求计数。
total
integer
批处理中的请求总数。
completed
integer
批处理中已成功完成的请求数量。
failed
integer
批处理中失败的请求数量。
metadata
object
可附加到对象上的 16 个键值对的集合。这有助于以结构化格式存储对象的附加信息。键的长度最多为 64 个字符,值的长度最多为 512 个字符。
customer_id
string
必需
batch_description
string
必需
示例
{
"id": "batch_abc123",
"object": "batch",
"endpoint": "/v1/chat/completions",
"errors": null,
"input_file_id": "file-abc123",
"completion_window": "24h",
"status": "cancelling",
"output_file_id": null,
"error_file_id": null,
"created_at": 1711471533,
"in_progress_at": 1711471538,
"expires_at": 1711557933,
"finalizing_at": null,
"completed_at": null,
"failed_at": null,
"expired_at": null,
"cancelling_at": 1711475133,
"cancelled_at": null,
"request_counts": {
"total": 100,
"completed": 23,
"failed": 1
},
"metadata": {
"customer_id": "user_123456789",
"batch_description": "Nightly eval job",
}
}
修改于 2024-05-31 06:50:08