fix(frontend): 统计表格缓存列仅显示缓存读取token,与命中率计算口径一致

缓存列移除cache_creation_tokens,只保留cache_read_tokens,
避免缓存值大于输入值的反直觉展示。
This commit is contained in:
fawney19
2026-03-14 16:39:48 +08:00
parent 9c6036a103
commit 693e37d2df

View File

@@ -54,7 +54,7 @@
<TableCell class="text-right py-2 px-2"> <TableCell class="text-right py-2 px-2">
<div class="flex flex-col items-end text-xs gap-0.5 whitespace-nowrap"> <div class="flex flex-col items-end text-xs gap-0.5 whitespace-nowrap">
<span>{{ formatTokens(model.total_input_context || 0) }} / {{ formatTokens(model.output_tokens || 0) }}</span> <span>{{ formatTokens(model.total_input_context || 0) }} / {{ formatTokens(model.output_tokens || 0) }}</span>
<span class="text-muted-foreground">{{ formatTokens((model.cache_read_tokens || 0) + (model.cache_creation_tokens || 0)) }}</span> <span class="text-muted-foreground">{{ formatTokens(model.cache_read_tokens || 0) }}</span>
</div> </div>
</TableCell> </TableCell>
<TableCell class="text-right py-2 px-2"> <TableCell class="text-right py-2 px-2">