LocalAI/core/gallery
Ettore Di Giacinto bfdc29d316
fix(gallery): correctly show status for downloading OCI images (#5774)
We can't use the mutate.Extract written bytes as current status as that
will be bigger than the compressed image size. Image manifest don't have
any guarantee of the type of artifact (can be compressed or not) when
showing the layer size.

Split the extraction process in two parts: Downloading and extracting as
a flattened system, in this way we can display the status of downloading
and extracting accordingly.

This change also fixes a small nuance in detecting installed backends,
now it's more consistent and looks if a metadata.json and/or a path with
a `run.sh` file is present.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-07-02 08:25:48 +02:00
..
backend_types.go fix(backends gallery): meta packages do not have URIs (#5740) 2025-06-27 22:23:14 +02:00
backends.go fix(gallery): correctly show status for downloading OCI images (#5774) 2025-07-02 08:25:48 +02:00
backends_test.go fix(gallery): correctly show status for downloading OCI images (#5774) 2025-07-02 08:25:48 +02:00
gallery.go fix(gallery): correctly show status for downloading OCI images (#5774) 2025-07-02 08:25:48 +02:00
gallery_suite_test.go feat: Add backend gallery (#5607) 2025-06-15 14:56:52 +02:00
metadata_type.go feat: Add backend gallery (#5607) 2025-06-15 14:56:52 +02:00
models.go feat(gallery): automatically install missing backends along models (#5736) 2025-06-27 18:25:44 +02:00
models_test.go feat(gallery): automatically install missing backends along models (#5736) 2025-06-27 18:25:44 +02:00
models_types.go feat: Add backend gallery (#5607) 2025-06-15 14:56:52 +02:00
request_test.go feat: Add backend gallery (#5607) 2025-06-15 14:56:52 +02:00