LocalAI/core/http
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
..
elements feat(gallery): Add 'Get Config' button for models (#6154) 2025-08-28 18:32:49 +02:00
endpoints chore: stream errors while streaming SSE (#6160) 2025-08-28 18:27:23 +02:00
middleware feat(backends): add system backend, refactor (#6059) 2025-08-14 19:38:26 +02:00
routes feat(gallery): Add 'Get Config' button for models (#6154) 2025-08-28 18:32:49 +02:00
static Tune the "dark gray" font color in the webui to make it more readable (#6078) 2025-08-16 21:16:25 +02:00
utils feat(ui): path prefix support via HTTP header (#4497) 2025-01-07 17:18:21 +01:00
views feat: Add a model refresh button to manually refresh on-disk yaml (#6150) 2025-08-27 09:44:40 +02:00
app.go feat(p2p): automatically sync installed models between instances (#6108) 2025-08-19 19:37:46 +02:00
app_test.go feat(backends): add system backend, refactor (#6059) 2025-08-14 19:38:26 +02:00
explorer.go feat: rebrand - LocalAGI and LocalRecall joins the LocalAI stack family (#5159) 2025-04-15 17:51:24 +02:00
http_suite_test.go fix: rename fiber entrypoint from http/api to http/app (#2096) 2024-04-21 22:39:28 +02:00
render.go feat(ui): path prefix support via HTTP header (#4497) 2025-01-07 17:18:21 +01:00