Skip to content

TokenRouter 0.1.287

Choose a tag to compare

@github-actions github-actions released this 19 Sep 18:41
· 330 commits to main since this release

AI API Gateway Platform - 将 AI 订阅配额分发和管理

  • 新增「用量与缓存」表(用户端与管理端共用):模型 / 请求 / 输入 / 缓存 / 缓存率 / 输出 / 额度
  • 命中率口径统一为「缓存读取 ÷(输入 + 缓存创建 + 缓存读取)」,抽取 utils/cacheHitRate 复用
  • 上游不回报缓存写入时显示「不适用」,命中率仍按缓存读取计算,不再误报为 0%
  • 模型分布父行与按用户子行新增缓存率列;UserBreakdownItem 补缓存创建/读取拆分
  • Token 趋势图无流量时间点断线,不再画成 0% 造成「未命中」误读
  • 用量与缓存表跟随页面时间范围;移除全量查询路径
  • 实扣(站点余额单位)与标准/成本(USD 基准价)加口径说明 tooltip
  • 新增前端单测(命中率口径 / 不适用状态 / 趋势断线)与后端拆分字段测试

📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/yegetables/tokenrouter:0.1.287

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/yegetables/TokenRouter/main/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation