亮色模式
检索运行
GET
https://api.openai.com/v1/threads/{thread_id}/runs/{run_id }与指定ID匹配的运行对象。
Request
Path 参数
thread_id
string
必需
运行的线程的 ID 。
run_id
string
必需
要检索的运行的 ID。
Request samples
返回响应
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
数据结构
id
string
必需
object
string
必需
created_at
integer
必需
assistant_id
string
必需
thread_id
string
必需
status
string
必需
started_at
integer
必需
expires_at
null
必需
cancelled_at
null
必需
failed_at
null
必需
completed_at
integer
必需
last_error
null
必需
model
string
必需
instructions
null
必需
tools
array [object {1}]
必需
type
string
可选
file_ids
array[string]
必需
metadata
object
必需
示例
{
"id": "run_5pyUEwhaPk11vCKiDneUWXXY",
"object": "thread.run",
"created_at": 1699075072,
"assistant_id": "asst_nGl00s4xa9zmVY6Fvuvz9wwQ",
"thread_id": "thread_BDDwIqM4KgHibXX3mqmN3Lgs",
"status": "completed",
"started_at": 1699075072,
"expires_at": null,
"cancelled_at": null,
"failed_at": null,
"completed_at": 1699075073,
"last_error": null,
"model": "gpt-3.5-turbo",
"instructions": null,
"tools": [
{
"type": "code_interpreter"
}
],
"file_ids": [
"file-9F1ex49ipEnKzyLUNnCA0Yzx",
"file-dEWwUbt2UGHp3v0e0DpCzemP"
],
"metadata": {}
}
最后修改时间: 9 天前