[KongchangAI]
ConceptToken Ledger / 调用账本

Token Ledger

A logging system that records the estimated token count, routing choice, latency, and prompt hash of each LLM call, typically persisted in JSONL format. It is used to identify duplicate calls, set thresholds for free paths, and provide an auditable data basis for routing decisions.

Timeline (last 90 days)

Oct 18

The ledger stores a truncated SHA256 hash of the prompt, which allows duplicate calls to be identified without retaining the original prompt.

Unverified50%
Oct 18

The wall_s field in the ledger records measured wall-clock time, not an estimate.

Unverified50%
Oct 18

The original author runs a summary script once each night, outputting distributions grouped by route: median tokens, p95 tokens, median latency, and the number of duplicate prompts derived from the hash statistics.

Unverified50%

All Facts (3)

Source Articles