亮色模式
Create assistant file (v1)
POST
https://api.openai.com/v1/assistants/asst_abc123/filesRequest
Header 参数
Authorization
string
必需
示例值:
Bearer $OPENAI_API_KEY"
Content-Type
string
必需
示例值:
application/json
OpenAI-Beta
string
必需
示例值:
assistants=v1
Body 参数application/json
file_id
string
必需
A File ID (with purpose="assistants"
) that the assistant should use. Useful for tools like retrieval
and code_interpreter
that can access files.
示例
{
"file_id": "file-abc123"
}
Request samples
返回响应
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
数据结构
id
string
必需
object
string
必需
created_at
integer
必需
assistant_id
string
必需
示例
{
"id": "file-abc123",
"object": "assistant.file",
"created_at": 1699055364,
"assistant_id": "asst_abc123"
}
最后修改时间: 10 天前