#!/usr/bin/env python3 """Every text lane asks its engine to say what the prefix cache served (discussion #49): the 27B's units, run.sh and the flash launcher start SGLang with --enable-cache-report, and the vLLM lanes pass --enable-prompt-tokens-details (2026-10-25; six since the Liquid AI LFM3 lane, 2026-11-16). With it, each answer says how much of its prompt the prefix cache served: usage.prompt_tokens_details.cached_tokens on the OpenAI routes, cache_read_input_tokens beside input_tokens on /v1/messages, and the proxy's x-systemone-cached-tokens. 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's total and Claude Code's count stayed what they were, and bench.sh gave 64.9 against 64.0 tok/s (three runs each, their spreads overlapping). The recipes' drift check knows the switch, so a 27B unit written before it says so in the cockpit. """ import pathlib import re import sys import unittest REPO = pathlib.Path(__file__).resolve().parents[1] LAUNCHES = ("qwen38-sglang.service.template", "qwen38-sglang-1m.service.template", "qwen38-sglang-64.service.template", "run.sh", "qwen38-flash-launch.sh.template") FLAG = re.compile(r"(?