ollama/server
Jesse Gross 1829fb61bd manifest: Fix crash on startup when trying to clean up unused files (#5840)
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.
2024-08-07 10:30:44 -07:00
..
testdata/tools server: collect nested tool call objects when parsing (#5824) 2024-07-22 12:38:03 -04:00
auth.go fix nil deref in auth.go 2024-07-26 14:14:48 -07:00
download.go Ensure sparse files on windows during download 2024-08-06 10:58:08 -07:00
fixblobs.go server: replace blob prefix separator from ':' to '-' (#3146) 2024-03-14 20:18:06 -07:00
fixblobs_test.go server: replace blob prefix separator from ':' to '-' (#3146) 2024-03-14 20:18:06 -07:00
images.go manifest: Fix crash on startup when trying to clean up unused files (#5840) 2024-08-07 10:30:44 -07:00
layer.go manifest: Fix crash on startup when trying to clean up unused files (#5840) 2024-08-07 10:30:44 -07:00
manifest.go manifest: Fix crash on startup when trying to clean up unused files (#5840) 2024-08-07 10:30:44 -07:00
manifest_test.go lint 2024-08-01 17:06:06 -07:00
model.go convert: only extract large files 2024-07-31 15:58:55 -07:00
model_test.go lint 2024-08-01 17:06:06 -07:00
modelpath.go models 2024-07-22 11:26:12 -07:00
modelpath_test.go uint64 2024-07-22 11:49:02 -07:00
prompt.go tools 2024-07-15 15:26:16 -07:00
prompt_test.go lint 2024-08-01 17:06:06 -07:00
routes.go manifest: Fix crash on startup when trying to clean up unused files (#5840) 2024-08-07 10:30:44 -07:00
routes_create_test.go use testing tempdirs 2024-08-02 16:04:06 -07:00
routes_delete_test.go lint 2024-08-01 17:06:06 -07:00
routes_generate_test.go comments 2024-07-31 15:58:55 -07:00
routes_list_test.go lint 2024-08-01 17:06:06 -07:00
routes_test.go lint 2024-08-01 17:06:06 -07:00
sched.go lint 2024-08-01 17:06:06 -07:00
sched_test.go lint 2024-08-01 17:06:06 -07:00
sparse_common.go Ensure sparse files on windows during download 2024-08-06 10:58:08 -07:00
sparse_windows.go Ensure sparse files on windows during download 2024-08-06 10:58:08 -07:00
upload.go lint 2024-08-01 17:06:06 -07:00