Skip to content

llama_load_session_file throws exception without any handler #1716

Closed
@prsyahmi

Description

The code inside llama_load_session_file uses llama_file::read_raw which throws an exception if read error happens. In my case, 0-byte file due to #1699. This exception is not caught by any handler and just crash.
The rest of the llama_load_session_file will return false for something invalid.

I propose to convert all checks to throw and handle them.

It might be a good idea to have an option to continue/overwrite prompt cache file if it is invalid.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions