模型

更新会话

替换一个会话的 metadata。

先调用「创建对话」拿到 conv_ 开头的 ID,替换 conv_123。

POST /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.

  • metadataobject必填

    Replacement metadata. The whole object replaces the old one; it is not merged. Up to 16 pairs, keys at most 64 characters and values at most 512. Router support (supported): Verified to take effect.

    已验证生效。

返回

200 conversation

更新一个会话的 metadata——整体替换,不与已有 metadata 合并。

鉴权、限流、参数校验等平台错误按 problem+json 返回;OCR 的错误也为 problem+json,其它模型调用的错误按该端点所属格式(OpenAI 或 Anthropic)返回,参见 错误码

响应

HTTP 200

The updated conversation

application/json

名称类型说明
idstringId of the conversation, such as `conv_...`; use it as `conversation_id` in conversation calls and as `conversation` in createResponse.
objectstringObject type; always `conversation`.
created_atintegerUnix time in seconds at which the conversation was created.
metadataobjectUp to 16 string key/value pairs; keys at most 64 characters and values at most 512.