Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sp332
· 3y ago · 0 comments
https://platform.openai.com/tokenizer
or the official python library tiktoken
https://github.com/openai/tiktoken
or this JS port of tiktoken
https://github.com/dqbd/tiktoken
Comments
[–]
oofsa
3y ago
https://platform.openai.com/tokenizer
is not for GPT-4 but GPT-3.
https://tiktokenizer.vercel.app/
supports GPT-4.
[–]
adroitboss
3y ago
Thanks for the recommendations. I found the one I needed because of this comment thread.