Skip to content

Commit f6881ea

Browse files
authored
fix(edit): propagate correctly opts when reloading (#7233)
fix(edit): propagate correctly ops when reloading Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 5651a19 commit f6881ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/http/endpoints/localai/edit_model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func EditModelEndpoint(cl *config.ModelConfigLoader, appConfig *config.Applicati
155155
}
156156

157157
// Reload configurations
158-
if err := cl.LoadModelConfigsFromPath(appConfig.SystemState.Model.ModelsPath); err != nil {
158+
if err := cl.LoadModelConfigsFromPath(appConfig.SystemState.Model.ModelsPath, appConfig.ToConfigLoaderOptions()...); err != nil {
159159
response := ModelResponse{
160160
Success: false,
161161
Error: "Failed to reload configurations: " + err.Error(),

0 commit comments

Comments
 (0)