OpenAI
删除会话条目
从会话里删除一条 item。
先调用「创建对话」拿到 conv_ 开头的 ID,替换 conv_123。 条目 ID 取自「添加对话条目」或「列出对话条目」,替换 item_123。
DELETE
/openai/v1/conversations/{conversation_id}/items/{item_id}● 支持请求参数
conversation_idstring必填path:
item_idstring必填path:
返回
200 conversation
删除会话里的单条 item,返回该会话对象(不是被删除的 item)。
错误按 OpenAI 格式返回,参见 错误码
响应
HTTP 200
The conversation, with the item removed
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| id | string | Id of the conversation, such as `conv_...`; use it as `conversation_id` in conversation calls and as `conversation` in createResponse. |
| object | string | Object type; always `conversation`. |
| created_at | integer | Unix time in seconds at which the conversation was created. |
| metadata | object | Up to 16 string key/value pairs; keys at most 64 characters and values at most 512. |