• Jesse Gross's avatar
    manifest: Fix crash on startup when trying to clean up unused files (#5840) · 1829fb61
    Jesse Gross authored
    Currently if the config field is missing in the manifest file (or
    corrupted), Ollama will crash when it tries to read it. This can
    happen at startup or when pulling new models.
    
    This data is mostly just used for showing model information so we
    can be tolerant of it not being present - it is not required to
    run the models. Besides avoiding crashing, this also gives us the
    ability to restructure the config in the future by pulling it
    into the main manifest file.
    1829fb61
images.go 28.3 KB