Skip to content

Commit db15e98

Browse files
committed
chore(refactor): imply modelpath
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 51e0db3 commit db15e98

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

core/config/backend_config_loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (bcl *BackendConfigLoader) LoadBackendConfigFileByName(modelName, modelPath
140140
}
141141
}
142142

143-
cfg.SetDefaults(opts...)
143+
cfg.SetDefaults(append(opts, ModelPath(modelPath))...)
144144

145145
return cfg, nil
146146
}

core/http/endpoints/openai/request.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ func mergeRequestWithConfig(modelFile string, input *schema.OpenAIRequest, cm *c
304304
config.LoadOptionThreads(threads),
305305
config.LoadOptionContextSize(ctx),
306306
config.LoadOptionF16(f16),
307-
config.ModelPath(loader.ModelPath),
308307
)
309308

310309
// Set the parameters for the language model prediction

0 commit comments

Comments
 (0)