mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-29 06:54:59 +00:00
chore: simplify passing options to ModelOptions
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
05225c93e4
commit
9e965033bb
1 changed files with 2 additions and 4 deletions
|
@ -129,10 +129,8 @@ func newModel(cl *config.BackendConfigLoader, ml *model.ModelLoader, appConfig *
|
||||||
|
|
||||||
if cfg.Pipeline.LLM == "" || cfg.Pipeline.TTS == "" || cfg.Pipeline.Transcription == "" {
|
if cfg.Pipeline.LLM == "" || cfg.Pipeline.TTS == "" || cfg.Pipeline.Transcription == "" {
|
||||||
// If we don't have Wrapped model definitions, just return a standard model
|
// If we don't have Wrapped model definitions, just return a standard model
|
||||||
opts := backend.ModelOptions(*cfg, appConfig, []model.Option{
|
opts := backend.ModelOptions(*cfg, appConfig, model.WithBackendString(cfg.Backend),
|
||||||
model.WithBackendString(cfg.Backend),
|
model.WithModel(cfg.Model))
|
||||||
model.WithModel(cfg.Model),
|
|
||||||
})
|
|
||||||
return ml.BackendLoader(opts...)
|
return ml.BackendLoader(opts...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue