亮色模式
Retrieve run step (v1)
GET
https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/steps/step_abc123Retrieves a run step.
Request
Header 参数
Authorization
string
必需
示例值:
Bearer $OPENAI_API_KEY
Content-Type
string
必需
示例值:
application/json
OpenAI-Beta
string
必需
示例值:
assistants=v1
Body 参数application/json
object {0}
示例
{}
Request samples
返回响应
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
数据结构
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
必需
type
string
必需
message_creation
object
必需
usage
object
必需
prompt_tokens
integer
必需
completion_tokens
integer
必需
total_tokens
integer
必需
示例
{
"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
}
}
最后修改时间: 10 天前