LocalAI/core
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
..
application feat(p2p): automatically sync installed models between instances (#6108) 2025-08-19 19:37:46 +02:00
backend feat(diffusers): add support for wan2.2 (#6153) 2025-08-28 10:26:42 +02:00
cli feat(launcher): add LocalAI launcher app (#6127) 2025-08-26 14:22:04 +02:00
clients feat(store): add Golang client (#1977) 2024-04-16 15:54:14 +02:00
config feat(webui): add import/edit model page (#6050) 2025-08-14 23:48:09 +02:00
dependencies_manager fix: be consistent in downloading files, check for scanner errors (#3108) 2024-08-02 20:06:25 +02:00
explorer feat(p2p): automatically sync installed models between instances (#6108) 2025-08-19 19:37:46 +02:00
gallery feat(mlx): add mlx backend (#6049) 2025-08-22 08:42:29 +02:00
http feat(gallery): Add 'Get Config' button for models (#6154) 2025-08-28 18:32:49 +02:00
p2p feat(p2p): automatically sync installed models between instances (#6108) 2025-08-19 19:37:46 +02:00
schema feat(diffusers): add support for wan2.2 (#6153) 2025-08-28 10:26:42 +02:00
services feat(ui): General improvements (#6072) 2025-08-16 07:44:50 +02:00
startup feat(backends): add system backend, refactor (#6059) 2025-08-14 19:38:26 +02:00
templates feat(backends): add system backend, refactor (#6059) 2025-08-14 19:38:26 +02:00