-
Notifications
You must be signed in to change notification settings - Fork 56
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
ValueError: Unknown encoding cl100k_base #352
Comments
Looks like your tiktoken registry doesn't know the encoding Have you tried using a different model than gpt-3.5-turbo? Like the free ones from OpenRouter? |
@Leidtier these hidden imports mentioned in the linked issue are already included in the exe, so I'm not sure what else could be causing this! |
I am having the same issue. I am using Mad God Overhaul via Mode Organizer 2 (MO2). The problem seems to be caused by running Mantella in MO2's Virtual File System, as mantella.exe runs fine outside it. |
@danniesim thanks for the report and the investigation. |
Mantella currently running for SkyrimVR (C:\Steam\steamapps\common\SkyrimVR). Mantella mod located in C:\skyrim\MadGod\mods\Mantella - Bring NPCs to Life with AI
Running Mantella with 'gpt-3.5-turbo'. The language model can be changed in MantellaSoftware/config.ini
23:37:06.756 ERROR: Error loading model. If you are using an alternative to OpenAI, please find the setting
llm_api
in MantellaSoftware/config.ini and follow the instructions to change this setting23:37:06.757 ERROR: Traceback (most recent call last):
File "src\llm\openai_client.py", line 106, in init
File "tiktoken\model.py", line 75, in encoding_for_model
File "tiktoken\registry.py", line 60, in get_encoding
ValueError: Unknown encoding cl100k_base
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 21, in
File "src\setup.py", line 113, in initialise
File "src\llm\openai_client.py", line 110, in init
File "tiktoken\model.py", line 75, in encoding_for_model
File "tiktoken\registry.py", line 60, in get_encoding
ValueError: Unknown encoding cl100k_base
I have tried everything, OpenRouter and OpenAI cause this no matter what, I have no idea
The text was updated successfully, but these errors were encountered: