跳轉到主要內容

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
}