mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
DeepSeek 的 OpenAI 兼容 usage 用 prompt_cache_hit_tokens / prompt_cache_miss_tokens 表示缓存命中(prompt_tokens = hit + miss),不返回 prompt_tokens_details.cached_tokens, OpenAI 网关解析 usage 时缓存读取恒为 0。将其作为缓存读取的兜底字段, 嵌套 cached_tokens 存在时仍以嵌套字段为准。