POST /v1/responses/compactgithub.com/QuantumNous/new-api/router.SetRelayRouter.func10。external_api_client。confirmed-openapi-source。字段为动态上游数据或回调负载时,文档会明确标记,不能补造 Schema。x-debug 里的占位符;示例不含真实密码、API Key、签名、Cookie 或 Provider 密钥。Authorization: Bearer ********************{
"model": "string",
"input": "string",
"instructions": "string",
"previous_response_id": "string"
}curl --location 'http://api-dev.opensosen.cn/v1/responses/compact' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "string",
"input": "string",
"instructions": "string",
"previous_response_id": "string"
}'{
"id": "string",
"object": "response.compaction",
"created_at": 0,
"output": [
{}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"prompt_tokens_details": {
"cached_tokens": 0,
"text_tokens": 0,
"audio_tokens": 0,
"image_tokens": 0
},
"completion_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0
}
},
"error": {}
}