Skip to content

Commit b72f770

Browse files
committed
nice catch cursor
1 parent a6bcceb commit b72f770

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/utils/vercel-ai

1 file changed

+1
-1
lines changed

packages/core/src/utils/vercel-ai/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function addProviderMetadataToAttributes(attributes: SpanAttributes): void {
317317
if (providerMetadataObject.anthropic) {
318318
const cachedInputTokens =
319319
providerMetadataObject.anthropic.usage?.cache_read_input_tokens ??
320-
providerMetadataObject.anthropic.cacheCreationInputTokens;
320+
providerMetadataObject.anthropic.cacheReadInputTokens;
321321
setAttributeIfDefined(attributes, GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE, cachedInputTokens);
322322

323323
const cacheWriteInputTokens =

0 commit comments

Comments
 (0)