模型
删除会话
删除一个会话。
先调用「创建对话」拿到 conv_ 开头的 ID,替换 conv_123。
DELETE
/model/v1/conversations/{conversation_id}● 支持请求参数
conversation_idstring必填path: Id of the conversation, the `id` of the object returned by createConversation (it looks like conv_...). Another tenant's conversation, an unknown id and a deleted conversation all answer 404 conversation_not_found.
返回
200 conversation.deleted
删除一个会话。删除后该会话与其 items 都不能再被引用(包括作为 Responses create 的 conversation 参数)。
鉴权、限流、参数校验等平台错误按 problem+json 返回;OCR 的错误也为 problem+json,其它模型调用的错误按该端点所属格式(OpenAI 或 Anthropic)返回,参见 错误码
响应
HTTP 200
Deletion confirmation
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| id | string | Id of the deleted conversation. |
| object | string | Object type; always `conversation.deleted`. |
| deleted | boolean | Always true; neither the conversation nor its items can be referenced again. |