本文档由帆智引擎整理发布,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
Authorization: Bearer ********************{
"model": "string",
"input": "string",
"instructions": "string",
"previous_response_id": "string"
}curl --location --request POST '/v1/responses/compact' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"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": {}
}
扫码添加微信客服
关于帆智引擎api对接问题,可以随时咨询即可。

扫码添加微信客服