mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
Discussion #49 asked for --enable-cache-report. With it, each answer says how much of its prompt the prefix cache served: usage.prompt_tokens_details.cached_tokens on the OpenAI routes (8,192 then 9,472 of a 9,539-token prompt that repeats its system message), cache_read_input_tokens beside input_tokens on /v1/messages (31 and 9,600 where it said 9,631 before), and the proxy's x-systemone-cached-tokens (0, then 2,176). Without it the cache serves the same and says nothing. Measured on the 27B lane behind the proxy on 2026-10-24, with the flag and without: the SDKs, fetch under Node and Bun, LiteLLM, Claude Code, opencode, Hermes and pi each did their task; opencode 1.19.4 recorded 33,536 of a turn's 33,650 prompt tokens as read from the cache, its total unchanged, so it compacts where it did; bench.sh gave 64.9 against 64.0 tok/s (three runs each, their spreads overlapping). The three 27B units and run.sh pass it, and the recipes' drift check knows the switch. The flash lane, on another build, is not measured and does not pass it. tests/test_engine_cache_report.py fails on the old files and passes on the new ones; the 28 test modules that read these files pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>