Vercel AI SDK - Counting Tokens in NextJS App? (Amazon Bedrock - Claude 3.5 Sonnet) #7441
-
SummaryHi all, I'm not sure if this is the best place to ask this, but I'm working on building an LLM chat feature into my app and struggling to find something similar to OpenAI's Tokenizer for counting tokens. My general idea here is pretty straightforward, wanting to track total token consumption (input + output) per user, in as close to real-time as possible. Thanks in advance! ExampleNo response Steps to ReproduceN/A |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @cbaird-1337! It might be worth asking in the AI Discussions. |
Beta Was this translation helpful? Give feedback.
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
Hi @cbaird-1337!
It might be worth asking in the AI Discussions.