LocalAI/core/http/elements
Matt Cowger d0b6aa3f7d
feat(gallery): Add 'Get Config' button for models (#6154)
* feat(gallery): Add 'Get Config' button for models

This commit introduces a 'Get Config' button to the model gallery UI. This allows users to download and save the configuration file for a model without installing the model's weights.

Key changes:
- Added a getConfigButton element and integrated it into the gallery card.
- Created a new API endpoint /browse/config/model/:id to handle fetching and saving the model configuration.
- Refactored the InstallModel function to allow saving only the configuration file without downloading model weights.
- Added a ToYAML method on ModelConfig for serialization.
- Fixed button spacing in the gallery UI.

Signed-off-by: Matt Cowger <matt.cowger@sigmacomputing.com>

* Update for reviewer comments

Signed-off-by: Matt Cowger <matt.cowger@sigmacomputing.com>

---------

Signed-off-by: Matt Cowger <matt.cowger@sigmacomputing.com>
2025-08-28 18:32:49 +02:00
..
buttons.go feat(gallery): Add 'Get Config' button for models (#6154) 2025-08-28 18:32:49 +02:00
gallery.go feat(gallery): Add 'Get Config' button for models (#6154) 2025-08-28 18:32:49 +02:00
p2p.go feat(p2p): automatically sync installed models between instances (#6108) 2025-08-19 19:37:46 +02:00
progressbar.go feat: Add backend gallery (#5607) 2025-06-15 14:56:52 +02:00