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

Unknown encoding gpt-3.5-turbo. Plugins found: ['tiktoken_ext.openai_public'] #609

Closed
delfer opened this issue Jul 3, 2024 · 1 comment

Comments

@delfer
Copy link

delfer commented Jul 3, 2024

Bug in https://github.com/n3d1117/chatgpt-telegram-bot/blob/0.4.1/bot/openai_helper.py#L656

        try:
            encoding = tiktoken.encoding_for_model(model)
        except KeyError:
            encoding = tiktoken.get_encoding("gpt-3.5-turbo")

Must be

        try:
            encoding = tiktoken.encoding_for_model(model)
        except KeyError:
            encoding = tiktoken.get_encoding("cl100k_base")
@delfer
Copy link
Author

delfer commented Jul 4, 2024

fixed in #615

@n3d1117 n3d1117 closed this as completed Dec 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

No branches or pull requests

2 participants