検索運行です
GET
https://api.openai.com/v1/threads/{thread_id}/runs/{run_id }
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
thread_id
string
required
run_id
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openai.com/v1/threads//runs/'
Responses
🟢200成功
application/json
Body
id
string
required
object
string
required
created_at
integer
required
assistant_id
string
required
thread_id
string
required
status
string
required
started_at
integer
required
expires_at
null
required
cancelled_at
null
required
failed_at
null
required
completed_at
integer
required
last_error
null
required
model
string
required
instructions
null
required
tools
array [object {1}]
required
type
string
optional
file_ids
array[string]
required
metadata
object
required
Example
{
"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": {}
}
Modified at 2024-12-17 03:40:24