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

feat: add support for gpt-4o tokenizer encoding #3

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

yaohui-wyh
Copy link
Owner

You can specify the encoding with the --encoding flag:

$ ctoc --encoding=o200k_base .
------------------------------------------------------------------------------------------------
Language                     files          blank        comment           code           tokens
------------------------------------------------------------------------------------------------
Go                              16            286            155           2113          22109
Markdown                         1             42              0            183           2596
YAML                             1              0              0             40            237
Makefile                         1              7              0             19            150
------------------------------------------------------------------------------------------------
TOTAL                           19            335            155           2355          25092
------------------------------------------------------------------------------------------------

@yaohui-wyh yaohui-wyh merged commit c550049 into main Aug 19, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant