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

Update token_count_utils.py #2531

Merged
merged 5 commits into from
Apr 30, 2024
Merged

Update token_count_utils.py #2531

merged 5 commits into from
Apr 30, 2024

Conversation

ginward
Copy link
Contributor

@ginward ginward commented Apr 27, 2024

Update the token counts of new gpt models

ref: https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4

Why are these changes needed?

Open AI has updated the token counts of certain models and redirected gpt-3.5-turbo to a later version with a larger context window

Checks

@sonichi sonichi enabled auto-merge April 29, 2024 15:35
@yiranwu0
Copy link
Collaborator

Please format the code with pre-commit command to pass the code. After that, I think it's good to go!

auto-merge was automatically disabled April 30, 2024 08:07

Head branch was pushed to by a user without write access

@ginward
Copy link
Contributor Author

ginward commented Apr 30, 2024

Thanks! I Have formatted the code with pre-commit.

@ekzhu ekzhu enabled auto-merge April 30, 2024 20:37
@ekzhu ekzhu added this pull request to the merge queue Apr 30, 2024
Merged via the queue into microsoft:main with commit bcb6117 Apr 30, 2024
66 of 82 checks passed
jayralencar pushed a commit to jayralencar/autogen that referenced this pull request May 28, 2024
* Update token_count_utils.py

Update the token counts of new gpt models

ref: https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4

* format code with pre-commit

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
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