-
openai: surface prompt_tokens_details.cached_tokens as CacheReadInputTokens
released this
2026-11-16 18:14:25 +03:00 | 0 commits to main since this releaseOpenAI-compatible servers (llama.cpp, vLLM) report server-side prefix
cache hits via prompt_tokens_details.cached_tokens. The streaming
provider mapped only prompt/completion tokens and silently dropped the
cache figure, so downstream usage analytics always saw zero cached
input. Map it into Usage.CacheReadInputTokens.Downloads