sqs404/dsh-client-ui-cache-hit ↗★ 0
@deepseek-ai/dsh-client-ui-cache-hit
Sidebar cache hit-rate widget: visualizes the current session's DeepSeek context-cache hit ratio (hit / billed prompt tokens) from the tokenUsage session projection — segmented hit/miss/write bar, rate-state coloring, and the latest-request rate
AI Analysis
核心用途是直观监控 DeepSeek 模型的 API 缓存命中情况。适合关注 API 资费消耗、需要优化 Prompt 结构以最大化利用上下文缓存的开发者和高频用户。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗使用 / Usage
- 选择一个会话(或新建会话并开始对话)。
- 展开左侧边栏,底部出现「缓存命中率」卡片:
- 标题行:左侧
缓存命中率,右侧为累计命中率百分比(按状态着色)。 - 堆叠条:绿 = 命中,灰 = 未命中,蓝 = 写缓存;右侧为
命中 / 未命中 / 写缓存的紧凑 token 计数(如517 / 12.2K / 517K)。 - 本次请求行:最近一次请求自身的命中率。
- 标题行:左侧
- 悬停卡片查看完整明细 tooltip。
- 在设置页的「我的插件」(插件面板)中可随时开关本插件。
未选择会话、暂无数据、或尚未产生计费输入时,卡片显示对应的占位文案。