mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-10 01:39:12 +00:00
The session page was showing significantly lower token counts than the console summary because it used local tiktoken estimation while the console used actual API-reported usage data. Now SetResponse prefers resp.Usage when available (falling back to tiktoken), persists cache token fields to JSONL, and the viewer displays cache read/write stats alongside prompt/completion totals. |
||
|---|---|---|
| .. | ||
| static | ||
| templates | ||
| handler.go | ||
| hostguard.go | ||
| hostguard_test.go | ||
| server.go | ||
| store.go | ||