LocalAI/core/http/endpoints/localai
LocalAI [bot] 1027c487a6
fix: reload model after editing YAML config (issue #8647) (#8652)
fix: reload model configuration after editing (issue #8647)

- Add *model.ModelLoader parameter to EditModelEndpoint
- Call ml.ShutdownModel() after saving config to unload the running model
- Model will be reloaded on next inference request with new settings (e.g., context_size)
- Update route registration to pass ml to EditModelEndpoint

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
Co-authored-by: localai-bot <localai-bot@users.noreply.github.com>
2026-02-25 22:18:42 +01:00
..
agent_jobs.go feat(agent-jobs): add multimedia support (#7398) 2025-11-30 14:09:25 +01:00
backend.go chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
backend_monitor.go feat: migrate to echo and enable cancellation of non-streaming requests (#7270) 2025-11-14 22:57:53 +01:00
detection.go chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
edit_model.go fix: reload model after editing YAML config (issue #8647) (#8652) 2026-02-25 22:18:42 +01:00
edit_model_test.go feat: migrate to echo and enable cancellation of non-streaming requests (#7270) 2025-11-14 22:57:53 +01:00
gallery.go chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
get_token_metrics.go chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
import_model.go feat(ui): runtime settings (#7320) 2025-11-20 22:37:20 +01:00
localai_suite_test.go feat(webui): add import/edit model page (#6050) 2025-08-14 23:48:09 +02:00
mcp.go chore(deps): bump cogito and add new options to the agent config (#8601) 2026-02-18 22:10:26 +01:00
metrics.go feat: migrate to echo and enable cancellation of non-streaming requests (#7270) 2025-11-14 22:57:53 +01:00
p2p.go feat: migrate to echo and enable cancellation of non-streaming requests (#7270) 2025-11-14 22:57:53 +01:00
settings.go feat(api): add support for open responses specification (#8063) 2026-01-17 22:11:47 +01:00
stores.go feat(loader): enhance single active backend to support LRU eviction (#7535) 2025-12-12 12:28:38 +01:00
system.go feat: migrate to echo and enable cancellation of non-streaming requests (#7270) 2025-11-14 22:57:53 +01:00
tokenize.go feat: migrate to echo and enable cancellation of non-streaming requests (#7270) 2025-11-14 22:57:53 +01:00
tts.go Add sample_rate support to TTS API via post-processing resampling (#8650) 2026-02-25 16:36:27 +01:00
types.go feat(webui): add import/edit model page (#6050) 2025-08-14 23:48:09 +02:00
vad.go chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
video.go fix(videogen): drop incomplete endpoint, add GGUF support for LTX-2 (#8160) 2026-01-22 14:09:20 +01:00
welcome.go feat(ui): runtime settings (#7320) 2025-11-20 22:37:20 +01:00