LocalAI/core
lif d7b2eee08f
fix: add nil checks before mergo.Merge to prevent panic in gallery model installation (#7785)
Fixes #7420

Added nil checks before calling mergo.Merge in InstallModelFromGallery and InstallModel
functions to prevent panic when req.Overrides or configOverrides are nil. The panic was
occurring at models.go:248 during Qwen-Image-Edit gallery model download.

Changes:
- Added nil check for req.Overrides before merging in InstallModelFromGallery (line 126)
- Added nil check for configOverrides before merging in InstallModel (line 248)
- Added test case to verify nil configOverrides are handled without panic

Signed-off-by: majiayu000 <1835304752@qq.com>
2025-12-30 09:51:45 +01:00
..
application feat: disable force eviction (#7725) 2025-12-25 14:26:18 +01:00
backend chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
cli feat(api): Allow tracing of requests and responses (#7609) 2025-12-29 11:06:06 +01:00
clients feat(store): add Golang client (#1977) 2024-04-16 15:54:14 +02:00
config feat(api): Allow tracing of requests and responses (#7609) 2025-12-29 11:06:06 +01:00
dependencies_manager fix: be consistent in downloading files, check for scanner errors (#3108) 2024-08-02 20:06:25 +02:00
explorer chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
gallery fix: add nil checks before mergo.Merge to prevent panic in gallery model installation (#7785) 2025-12-30 09:51:45 +01:00
http feat(api): Allow tracing of requests and responses (#7609) 2025-12-29 11:06:06 +01:00
p2p chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
schema chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
services chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
startup chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
templates chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00