LocalAI/core/gallery
Ettore Di Giacinto 7c5d6162f7
fix(ui): rename model config files on save to prevent duplicates (#9388)
Editing a model's YAML and changing the `name:` field previously wrote
the new body to the original `<oldName>.yaml`. On reload the config
loader indexed that file under the new name while the old key
lingered in memory, producing two entries in the system UI that
shared a single underlying file — deleting either removed both.

Detect the rename in EditModelEndpoint and rename the on-disk
`<name>.yaml` and `._gallery_<name>.yaml` to match, drop the stale
in-memory key before the reload, and redirect the editor URL in the
React UI so it tracks the new name. Reject conflicts (409) and names
containing path separators (400).

Fixes #9294
2026-04-17 08:12:48 +02:00
..
importers feat: refactor shared helpers and enhance MLX backend functionality (#9335) 2026-04-13 18:44:03 +02:00
backend_resolve.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
backend_types.go feat(ux): backend management enhancement (#9325) 2026-04-12 00:35:22 +02:00
backends.go feat: backend versioning, upgrade detection and auto-upgrade (#9315) 2026-04-11 22:31:15 +02:00
backends_test.go fix(gallery): Use YAML v3 to avoid merging maps with incompatible keys (#8580) 2026-02-16 14:10:19 +01:00
backends_version_test.go feat: backend versioning, upgrade detection and auto-upgrade (#9315) 2026-04-11 22:31:15 +02:00
gallery.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
gallery_suite_test.go feat: Add backend gallery (#5607) 2025-06-15 14:56:52 +02:00
gallery_test.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
metadata_type.go feat(ui, gallery): Show model backends and add searchable model/backend selector (#9060) 2026-03-18 21:14:41 +01:00
models.go fix(ui): rename model config files on save to prevent duplicates (#9388) 2026-04-17 08:12:48 +02:00
models_test.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
models_types.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
request_test.go feat: Add backend gallery (#5607) 2025-06-15 14:56:52 +02:00
upgrade.go feat(ux): backend management enhancement (#9325) 2026-04-12 00:35:22 +02:00
upgrade_test.go feat: backend versioning, upgrade detection and auto-upgrade (#9315) 2026-04-11 22:31:15 +02:00
worker.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
worker_test.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00