Closed risu729 closed 5 months ago
@dqbd Please merge ASAP as we are blocking as this moment🙏
Should this PR also add gpt-4-turbo-preview
, which was part of the recent release too?
The PR includes it.
The list in the comment is the models not included in this PR. I apologize for the confusion.
A forked version with @risu729 's code just in case you need it right away: https://github.com/mystist/tiktoken
npm install tiktoken-mystist
Thank you so much for the npm package! It's really helpful to me.
Thank you so much for the npm package! It's really helpful to me.
Thanks to yourself, actually your pr saved my life 😂
Hey @risu729, thanks for the PR! LGTM
Adds new models released on January 25th, 2024.
The encodings are based on the definitions in
model.py
.The following models are also added, but this PR does not include them. The encodings are still unknown since openai/tiktoken is not updated yet.
OpenAI blog post: New embedding models and API updates OpenAI API: Models