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

GPT-4o support #577

Open
akurou opened this issue May 17, 2024 · 1 comment
Open

GPT-4o support #577

akurou opened this issue May 17, 2024 · 1 comment

Comments

@akurou
Copy link

akurou commented May 17, 2024

GPT-4o support is not working properly.
Reason: tiktoken encoding needs to be updated for GPT-4o.

Currently encoding = tiktoken.get_encoding("gpt-3.5-turbo") is used (openai_helper.py row 656).
You need to change tokenizer to "p50k_base" to fix an error.

@VaMPIRESqq
Copy link

VaMPIRESqq commented Jun 3, 2024

hi, I found a solution to our problem, change line 656 to:

encoding = tiktoken.get_encoding("p50k_base")

don't forget about the tabulation rules

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

No branches or pull requests

2 participants