Something went wrong. Try again.
sloproxy
Something went wrong. Try again.
feat(translator): add usage token details for cache input/output aggregation master
- Introduced `claudeResponsesUsageTokens` to manage detailed token statistics, including input, output, cache read, and cache creation tokens. - Updated aggregation logic to include cached tokens in total usage calculations. - Refactored usage processing to simplify token merging and ensure consistent handling across streaming and non-streaming responses. - Added unit tests (`TestConvertClaudeResponseToOpenAIResponses_ReportsCacheTokens`) to verify correct cache token inclusion in usage metrics. Closes: #3807
Author Luis Pater Date (Jun 12, 2026, 1:03 PM UTC) Commit 9dbf4cd0 9dbf4cd07e4aaa5a8858903262bee4717a263fad Parent 5633c936 5633c93622616b5358232b1a2726bac9e3ae5bb0