列出文件
开发中
GET
https://oapi.czl.net/v1/files _
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
purpose
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://oapi.czl.net/v1/files _?purpose'
返回响应
🟢200成功
application/json
Body
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"
}
修改于 2024-01-08 06:37:11