Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token Counts not used from Bedrock response. #41

Closed
NAPTlME opened this issue May 8, 2024 · 1 comment
Closed

Token Counts not used from Bedrock response. #41

NAPTlME opened this issue May 8, 2024 · 1 comment
Labels

Comments

@NAPTlME
Copy link
Contributor

NAPTlME commented May 8, 2024

I would like to track the token counts (input/output) for my Bedrock calls in a similar fashion to this example for langchain-openai using callbacks.

These token counts are present in the header (or chunk data for streaming), but they are not captured by langchain-aws.

This PR addresses this issue.

Thanks.

@3coins
Copy link
Collaborator

3coins commented May 23, 2024

Fixed in v0.1.5.

@3coins 3coins closed this as completed May 23, 2024
@3coins 3coins added the bedrock label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants