upload 对象

Upload 对象可以接受 Part 形式的字节块。source

的 Upload unique identifier,可在 API 端点中引用。source

创建 Upload 时的 Unix 时间戳(以秒为单位)。source

要上传的文件的名称。source

要上传的预期字节数。source

文件的预期用途。请参阅此处了解可接受的值。source

The status of the Upload.source

创建 Upload 时的 Unix 时间戳(以秒为单位)。source

对象类型,始终为 “upload”。source

Fileobject 表示已上传到 OpenAI 的文档。source

OBJECT 上传对象
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  "id": "upload_abc123",
  "object": "upload",
  "bytes": 2147483648,
  "created_at": 1719184911,
  "filename": "training_examples.jsonl",
  "purpose": "fine-tune",
  "status": "completed",
  "expires_at": 1719127296,
  "file": {
    "id": "file-xyz321",
    "object": "file",
    "bytes": 2147483648,
    "created_at": 1719186911,
    "filename": "training_examples.jsonl",
    "purpose": "fine-tune",
  }
}