-
Notifications
You must be signed in to change notification settings - Fork 173
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
tiktoken usage #341
Labels
good first issue
Good for newcomers
Comments
I'm not 100% sure whether we actually need to fix this. We could possibly just use tiktoken unless we run into problems. |
Oh, actually litellm supports cross-provider token counting, so resolving this may be easier than I anticipated: https://docs.litellm.ai/docs/token_usage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#335 (comment)
Another thing is that I am not sure that all the API-based models use tiktoken to compute input tokens. Thus, the num of input tokens may slightly differ between these models. But that's minimal.
The text was updated successfully, but these errors were encountered: