Issue with count_tokens in langchain_aws Using Claude on Bedrock #29674
Unanswered
MehyarWealthy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I'm encountering an issue when trying to use langchain_aws with Claude on AWS Bedrock. The error occurs when LangChain attempts to count tokens using client.count_tokens(text=text).
System Info
Python 3.11.9
boto3==1.36.15
botocore==1.36.15
langchain==0.3.17
langchain-aws==0.2.12
langchain-core==0.3.34
langchain-text-splitters==0.3.6
langsmith==0.3.6
Beta Was this translation helpful? Give feedback.
All reactions