亮色模式
列出文件
GET
https://api.openai.com/v1/files _Request
Query 参数
purpose
string
可选
Only return files with the given purpose.
Request samples
返回响应
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
数据结构
data
array [object {6}]
必需
id
string
必需
object
string
必需
bytes
integer
必需
created_at
integer
必需
filename
string
必需
purpose
string
必需
object
string
必需
示例
{
"data": [
{
"id": "file-abc123",
"object": "file",
"bytes": 175,
"created_at": 1613677385,
"filename": "salesOverview.pdf",
"purpose": "assistants",
},
{
"id": "file-abc123",
"object": "file",
"bytes": 140,
"created_at": 1613779121,
"filename": "puppy.jsonl",
"purpose": "fine-tune",
}
],
"object": "list"
}
最后修改时间: 9 天前