列出文件
GET
https://api.openai.com/v1/files _请求参数
Query 参数
purpose
string
可选
Only return files with the given purpose.
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: 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"
}
最后修改时间: 1 年前