LocalAI/pkg/startup
Ettore Di Giacinto a36b721ca6
fix: be consistent in downloading files, check for scanner errors (#3108)
* fix(downloader): be consistent in downloading files

This PR puts some order in the downloader such as functions are re-used
across several places.

This fixes an issue with having uri's inside the model YAML file, it
would resolve to MD5 rather then using the filename

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* fix(scanner): do raise error only if unsafeFiles are found

Fixes: https://github.com/mudler/LocalAI/issues/3114

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2024-08-02 20:06:25 +02:00
..
model_preload_test.go feat(models): pull models from urls (#2750) 2024-07-11 15:04:05 +02:00
model_preload.go fix: be consistent in downloading files, check for scanner errors (#3108) 2024-08-02 20:06:25 +02:00
startup_suite_test.go feat: embedded model configurations, add popular model examples, refactoring (#1532) 2024-01-05 23:16:33 +01:00