亮色模式
List run steps (v1)
GET
https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/stepsReturns a list of run steps belonging to a run.
Request
Header 参数
Authorization
string
必需
示例值:
Bearer $OPENAI_API_KEY
Content-Type
string
必需
示例值:
application/json
OpenAI-Beta
string
必需
示例值:
assistants=v1
Body 参数text/plain
Request samples
返回响应
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
数据结构
object
string
必需
data
array [object {15}]
必需
id
string
可选
object
string
可选
created_at
integer
可选
run_id
string
可选
assistant_id
string
可选
thread_id
string
可选
type
string
可选
status
string
可选
cancelled_at
null
可选
completed_at
integer
可选
expired_at
null
可选
failed_at
null
可选
last_error
null
可选
step_details
object
可选
usage
object
可选
first_id
string
必需
last_id
string
必需
has_more
boolean
必需
示例
{
"object": "list",
"data": [
{
"id": "step_abc123",
"object": "thread.run.step",
"created_at": 1699063291,
"run_id": "run_abc123",
"assistant_id": "asst_abc123",
"thread_id": "thread_abc123",
"type": "message_creation",
"status": "completed",
"cancelled_at": null,
"completed_at": 1699063291,
"expired_at": null,
"failed_at": null,
"last_error": null,
"step_details": {
"type": "message_creation",
"message_creation": {
"message_id": "msg_abc123"
}
},
"usage": {
"prompt_tokens": 123,
"completion_tokens": 456,
"total_tokens": 579
}
}
],
"first_id": "step_abc123",
"last_id": "step_abc456",
"has_more": false
}
最后修改时间: 10 天前