Skip to content

On "Start Analysis": 'NoneType' object has no attribute 'startswith' #5

Description

@jaytoday

AttributeError: 'NoneType' object has no attribute 'startswith'
Traceback:

File "/usr/local/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "/profile-gpt/dashboard.py", line 60, in <module>
    num_tokens = functions.get_number_of_tokens(str(processed_messages), FAST_MODEL)
File "/profile-gpt/utils/functions.py", line 91, in get_number_of_tokens
    encoding = tiktoken.encoding_for_model(model_name)
File "/usr/local/lib/python3.8/site-packages/tiktoken/model.py", line 66, in encoding_for_model
    if model_name.startswith(model_prefix):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions