How to count input tokens #500
|
Is there a supported or straightforward way to send RubyLLM-built input to, for example, Anthropic's count_tokens endpoint? |
Answered by
crmne
Mar 2, 2026
Replies: 2 comments
|
This would be a great addition! Feel free to open an issue to discuss implementation design and would be lovely to have a PR after that! 🤘 |
0 replies
Answer selected by
crmne
|
Update: provider-side token counting is available in RubyLLM 2.0.0.rc3. Use |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This would be a great addition! Feel free to open an issue to discuss implementation design and would be lovely to have a PR after that! 🤘