跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.tokenlab.sh/llms.txt

Use this file to discover all available pages before exploring further.

概览

使用此端点查看已经收到反馈报告的缓存条目的当前统计信息。 它适用于排查缓存质量、支持工作流,以及提交反馈后的对账场景。

注意

  • 认证需要标准的 inference API key。
  • entryId 必须是当前 API Key 所属组织拥有的缓存命中 request/cache entry 标识。
  • 此端点只返回聚合计数,不会暴露原始反馈提交内容。
  • at_risk 表示该条目是否接近失效阈值。

请求 / 响应

请使用上方的交互式 OpenAPI 面板查看准确的 schema 和响应字段。

示例

curl "https://api.tokenlab.sh/v1/cache/feedback/req_1234567890" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "object": "cache.feedback.stats",
  "entry_id": "req_1234567890",
  "negative_feedback_count": 2,
  "total_hit_count": 18,
  "negative_feedback_rate": 0.1111,
  "at_risk": true
}