Skip to content
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

Question: Does anybody know a good token count package for PHP? #59

Closed
inpresif opened this issue Mar 2, 2023 · 1 comment
Closed

Comments

@inpresif
Copy link

inpresif commented Mar 2, 2023

Describe the feature or improvement you're requesting

At thispoint we just divide the number of words by .75 to get the estimate, but a "real" script like tiktoken e.g. would be helpful. I did not come across one anywhere, does one exist?

If there is one, we're looking forward to using it and perhaps it will help your package as well?

Additional context

It would help give an estimate of tokens to our end users so they know what's about to get charged by OpenAI.

@orhanerday
Copy link
Owner

I can only bind the api references to the package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants