We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6bcceb commit b72f770Copy full SHA for b72f770
packages/core/src/utils/vercel-ai/index.ts
@@ -317,7 +317,7 @@ function addProviderMetadataToAttributes(attributes: SpanAttributes): void {
317
if (providerMetadataObject.anthropic) {
318
const cachedInputTokens =
319
providerMetadataObject.anthropic.usage?.cache_read_input_tokens ??
320
- providerMetadataObject.anthropic.cacheCreationInputTokens;
+ providerMetadataObject.anthropic.cacheReadInputTokens;
321
setAttributeIfDefined(attributes, GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE, cachedInputTokens);
322
323
const cacheWriteInputTokens =
0 commit comments