@zenmux/rosetta-ai 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -669,6 +669,8 @@ class ChatCompletionToResponsesConverter {
669
669
  prompt_tokens_details: {
670
670
  cached_tokens: usage.input_tokens_details?.cached_tokens ?? 0,
671
671
  ...(cacheWriteTokens != null ? { cache_write_tokens: cacheWriteTokens } : {}),
672
+ // @ts-expect-error Preserve cache-write details not yet declared by the SDK.
673
+ cache_write_tokens_details: usage.input_tokens_details?.cache_write_tokens_details,
672
674
  ...(webSearchCount > 0 ? { web_search: webSearchCount } : {}),
673
675
  },
674
676
  completion_tokens_details: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenmux/rosetta-ai",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Universal translator between AI provider protocols",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -60,4 +60,4 @@
60
60
  "typescript": "^6.0.2",
61
61
  "typescript-eslint": "^8.58.2"
62
62
  }
63
- }
63
+ }