LocalAI/core/gallery
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
..
gallery_suite_test.go refactor: gallery inconsistencies (#2647) 2024-06-24 17:32:12 +02:00
gallery.go fix: be consistent in downloading files, check for scanner errors (#3108) 2024-08-02 20:06:25 +02:00
models_test.go feat: HF /scan endpoint (#2566) 2024-07-10 13:18:32 +02:00
models.go fix: be consistent in downloading files, check for scanner errors (#3108) 2024-08-02 20:06:25 +02:00
op.go refactor: gallery inconsistencies (#2647) 2024-06-24 17:32:12 +02:00
request_test.go refactor: gallery inconsistencies (#2647) 2024-06-24 17:32:12 +02:00
request.go refactor: gallery inconsistencies (#2647) 2024-06-24 17:32:12 +02:00