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

Add new models #86

Merged
merged 1 commit into from
Jan 28, 2024
Merged

Add new models #86

merged 1 commit into from
Jan 28, 2024

Conversation

risu729
Copy link

@risu729 risu729 commented Jan 26, 2024

Adds new models released on January 25th, 2024.

  • gpt-3.5-turbo-0125
  • gpt-4-turbo-preview (alias)
  • gpt-4-0125-preview

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.

  • text-embedding-3-large
  • text-embedding-3-small
  • text-moderation-007
  • text-moderation-latest (alias)
  • text-moderation-stable (alias)

OpenAI blog post: New embedding models and API updates
OpenAI API: Models

@mystist
Copy link

mystist commented Jan 26, 2024

@dqbd Please merge ASAP as we are blocking as this moment🙏

@nem035
Copy link

nem035 commented Jan 26, 2024

Should this PR also add gpt-4-turbo-preview, which was part of the recent release too?

@risu729
Copy link
Author

risu729 commented Jan 27, 2024

The PR includes it.

The list in the comment is the models not included in this PR. I apologize for the confusion.

@mystist
Copy link

mystist commented Jan 27, 2024

A forked version with @risu729 's code just in case you need it right away:
https://github.com/mystist/tiktoken

npm install tiktoken-mystist

@risu729
Copy link
Author

risu729 commented Jan 27, 2024

Thank you so much for the npm package! It's really helpful to me.

@mystist
Copy link

mystist commented Jan 27, 2024

Thank you so much for the npm package! It's really helpful to me.

Thanks to yourself, actually your pr saved my life 😂

@dqbd
Copy link
Owner

dqbd commented Jan 28, 2024

Hey @risu729, thanks for the PR! LGTM

@dqbd dqbd merged commit e1b2472 into dqbd:main Jan 28, 2024
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.

4 participants