列出响应输入项
先调用「生成响应」,用返回的 ID 替换 resp_123。
/model/v1/responses/{response_id}/input_items● 支持请求参数
response_idstring必填path: Id of the stored response, the
idreturned by createResponse (it looks like resp_...). An unknown id, a response created with store false, an expired response and another tenant's response all answer 404.
返回
200 list
列出一条已保存响应的输入项。支持 limit(1–100,默认 20)、order(asc/desc, 默认 desc,与官方一致)与基于条目 id 的 after 游标分页;has_more/first_id/ last_id 均与实际返回页一致,可据此翻页且不重不漏。每个条目都带服务端签发的 id(message 为 msg_ 前缀,function_call/function_call_output/reasoning 各自 对应前缀),本次上线前已保存、尚无服务端 id 的旧数据在读取时按确定性规则补 id,不做破坏性迁移,同一游标反复读取保持稳定。以 previous_response_id 续接 创建的响应,其输入项列出解析后的完整输入:前序响应链已有的输入与输出条目 再加本轮自己提交的输入;若该祖先响应在我方平台未保存(例如创建时 store 为 false)或已过期删除,则只列出本轮自己提交的输入。如果创建时 store 为 false,我们不会保存这次响应,列出会返回 404 response_not_found。
鉴权、限流、参数校验等平台错误按 problem+json 返回;OCR 的错误也为 problem+json,其它模型调用的错误按该端点所属格式(OpenAI 或 Anthropic)返回,参见 错误码
请求示例
curl
# 先调用「生成响应」,用返回的 ID 替换 resp_123。
curl https://api.deepraxis.com/model/v1/responses/resp_123/input_items \
-H "Authorization: Bearer $PRAXIS_API_KEY"Python
# 先调用「生成响应」,用返回的 ID 替换 resp_123。
from openai import OpenAI
client = OpenAI(
base_url="https://api.deepraxis.com/model/v1",
api_key="$PRAXIS_API_KEY",
)
items = client.responses.input_items.list("resp_123")TypeScript
// 先调用「生成响应」,用返回的 ID 替换 resp_123。
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.deepraxis.com/model/v1",
apiKey: "$PRAXIS_API_KEY",
});
const items = await client.responses.inputItems.list("resp_123");响应示例 200
{
"object": "list",
"data": [
{
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "你好"
}
],
"id": "msg_dd36befd82be4d8cb479b885"
}
],
"first_id": "msg_dd36befd82be4d8cb479b885",
"last_id": "msg_dd36befd82be4d8cb479b885",
"has_more": false
}响应
HTTP 200
Native Responses API input item list
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| $ | object |