创建运行
POST
https://api.openai.com/v1/threads/{thread_id}/runs
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai.com/v1/threads//runs' \
--header 'Content-Type: application/json' \
--data-raw '{
"assistant_id": "asst_nGl00s4xa9zmVY6Fvuvz9wwQ"
}'
响应示例响应示例
{
"id": "string",
"object": "string",
"created_at": 0,
"assistant_id": "string",
"thread_id": "string",
"status": "string",
"started_at": 0,
"expires_at": null,
"cancelled_at": null,
"failed_at": null,
"completed_at": 0,
"last_error": null,
"model": "string",
"instructions": null,
"tools": [
{
"type": "string"
}
],
"file_ids": [
"string"
],
"metadata": {}
}
请求参数
Path 参数
thread_id
string
必需
Body 参数application/json
返回响应
修改于 2023-11-09 10:17:56