Closed NAPTlME closed 1 month ago
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.
Fixed in v0.1.5.
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.