tiktoken
tiktoken copied to clipboard
Add gpt-4.1 to model
Tested gpt-4o and gpt-4.1 in the playground, and they seemed to use the same tokenizer because of the token count.
yes we are getting errors with the new model since tiktoken is not up to date. currently spoofing with "gpt-4o-"
kindly pinging @hauntsaninja here
Really looking forward to seeing this move forward! Thanks for the effort!
Yes, looking forward to this PR to be merged for our use of gpt4.1. Thanks for creating the PR!
https://community.openai.com/t/whats-the-tokenization-algorithm-gpt-4-1-uses/1245758
Would really like to see this merged :)
Can we please merge this?
please merge this, I'm making this change locally to get counts
Dear OpenAI team, Please hire me and I will review and merge this for you. The situation with a missing constant persisting for months isn’t even funny anymore.
Dear OpenAI team, Please hire me and I will review and merge this for you. The situation with a missing constant persisting for months isn’t even funny anymore.
Seoncd this. GPT-4.1 has been released 50 Days ago....
+1 bump
C'mon!
PLS!
Let's merge it!
@hauntsaninja pls approve
Similar PR https://github.com/openai/tiktoken/pull/407 that also includes gpt-4.5
+1 bump
GPT 5 is releasing in 15 minutes and this still hasn't been merged
This is already there https://github.com/openai/tiktoken/blob/3591ff175d6a80efbe4fcc7f0e219ddd4b8c52f1/tiktoken/model.py#L13. I think this PR should be closed.
yes version 0.10.0 got released on pypi 2 days ago but not on github and it has been added.