检索运行
开发中
GET
https://oapi.czl.net/v1/threads/{thread_id}/runs/{run_id }
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
thread_id
string
必需
run_id
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/threads//runs/'
返回响应
🟢200成功
application/json
Body
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": {}
}
修改于 2024-01-08 06:38:13