OpenAI

创建会话条目

向会话追加 items。

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

POST /openai/v1/conversations/{conversation_id}/items● 支持

OpenAI 官方文档 ↗

请求参数

  • conversation_idstring必填

    path:

  • itemsarray必填

    已验证生效。

返回

200 list

向一个会话追加 items(一次最多 20 条),返回刚追加的这些 items。

错误按 OpenAI 格式返回,参见 错误码

响应

HTTP 200

The items just added

application/json

名称类型说明
objectstringObject type; always `list`.
dataarray<object>Items of the conversation, in the order the list requested.
first_idstringId of the first item of this page; null for an empty page.
last_idstringId of the last item of this page; null for an empty page.
has_morebooleanWhether more items exist beyond this page; pass `last_id` as `after` to read them.