1829fb61bd
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. |
||
---|---|---|
.. | ||
testdata/tools | ||
auth.go | ||
download.go | ||
fixblobs.go | ||
fixblobs_test.go | ||
images.go | ||
layer.go | ||
manifest.go | ||
manifest_test.go | ||
model.go | ||
model_test.go | ||
modelpath.go | ||
modelpath_test.go | ||
prompt.go | ||
prompt_test.go | ||
routes.go | ||
routes_create_test.go | ||
routes_delete_test.go | ||
routes_generate_test.go | ||
routes_list_test.go | ||
routes_test.go | ||
sched.go | ||
sched_test.go | ||
sparse_common.go | ||
sparse_windows.go | ||
upload.go |