LocalAI/pkg/downloader
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
..
downloader_suite_test.go groundwork: add pkg/concurrency and the associated test file (#2745) 2024-07-18 23:29:21 +00:00
huggingface.go fix: be consistent in downloading files, check for scanner errors (#3108) 2024-08-02 20:06:25 +02:00
progress.go feat: Galleries UI (#2104) 2024-04-23 09:22:58 +02:00
uri_test.go fix: be consistent in downloading files, check for scanner errors (#3108) 2024-08-02 20:06:25 +02:00
uri.go fix: be consistent in downloading files, check for scanner errors (#3108) 2024-08-02 20:06:25 +02:00