@aigentyc/chat-sdk 0.5.5 → 0.6.0

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.
package/context7.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "url": "https://context7.com/llmstxt/cdn_jsdelivr_net_npm_aigentyc_chat-sdk_0_5_5_llms_txt",
2
+ "url": "https://context7.com/llmstxt/cdn_jsdelivr_net_npm_aigentyc_chat-sdk_0_6_0_llms_txt",
3
3
  "public_key": "pk_dHiyF4hGXkgbb1jdrT7TU"
4
4
  }
@@ -1424,7 +1424,7 @@ var ContextReasoningUsage = ({
1424
1424
  ...props
1425
1425
  }) => {
1426
1426
  const { usage, modelId } = useContextValue();
1427
- const reasoningTokens = usage?.reasoningTokens ?? 0;
1427
+ const reasoningTokens = usage?.outputTokenDetails?.reasoningTokens ?? 0;
1428
1428
  if (children) {
1429
1429
  return children;
1430
1430
  }
@@ -1457,7 +1457,7 @@ var ContextCacheUsage = ({
1457
1457
  ...props
1458
1458
  }) => {
1459
1459
  const { usage, modelId } = useContextValue();
1460
- const cacheTokens = usage?.cachedInputTokens ?? 0;
1460
+ const cacheTokens = usage?.inputTokenDetails?.cacheReadTokens ?? 0;
1461
1461
  if (children) {
1462
1462
  return children;
1463
1463
  }