@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 +1 -1
- package/dist/ai-elements.cjs +2 -2
- package/dist/ai-elements.cjs.map +1 -1
- package/dist/ai-elements.js +2 -2
- package/dist/ai-elements.js.map +1 -1
- package/package.json +5 -5
package/dist/ai-elements.js
CHANGED
|
@@ -1402,7 +1402,7 @@ var ContextReasoningUsage = ({
|
|
|
1402
1402
|
...props
|
|
1403
1403
|
}) => {
|
|
1404
1404
|
const { usage, modelId } = useContextValue();
|
|
1405
|
-
const reasoningTokens = usage?.reasoningTokens ?? 0;
|
|
1405
|
+
const reasoningTokens = usage?.outputTokenDetails?.reasoningTokens ?? 0;
|
|
1406
1406
|
if (children) {
|
|
1407
1407
|
return children;
|
|
1408
1408
|
}
|
|
@@ -1435,7 +1435,7 @@ var ContextCacheUsage = ({
|
|
|
1435
1435
|
...props
|
|
1436
1436
|
}) => {
|
|
1437
1437
|
const { usage, modelId } = useContextValue();
|
|
1438
|
-
const cacheTokens = usage?.
|
|
1438
|
+
const cacheTokens = usage?.inputTokenDetails?.cacheReadTokens ?? 0;
|
|
1439
1439
|
if (children) {
|
|
1440
1440
|
return children;
|
|
1441
1441
|
}
|