Skip to content

Conversation

@corona10
Copy link
Contributor

Issue #, if available:
The key cacheCreationInputTokens is incorrect.
We adopted part of your team’s codebase internally and noticed that prompt caching metrics weren’t working as expected.
To fix this issue, the key should be updated to cacheWriteInputTokens.

Description of changes:
See: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html#prompt-caching-get-started

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@corona10
Copy link
Contributor Author

@zxkane PTAL :)

Copy link
Member

@zxkane zxkane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix!

@zxkane zxkane merged commit 7e03ab0 into aws-samples:main Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants