mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-09-20 17:07:59 +00:00
When only the legacy DeepSeek fields (prompt_cache_hit_tokens) are set but the OpenAI-standard prompt_tokens_details is nil, MarshalJSON now auto- generates the nested object. This ensures dsh (which reads the standard format first) sees cache hit data regardless of which adapter format the upstream uses.