Skip to content

Commit c824422

Browse files
committed
chore: simplify passing options to ModelOptions
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 8c7d1cd commit c824422

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/http/endpoints/openai/realtime.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,8 @@ func newModel(cl *config.BackendConfigLoader, ml *model.ModelLoader, appConfig *
129129

130130
if cfg.Pipeline.LLM == "" || cfg.Pipeline.TTS == "" || cfg.Pipeline.Transcription == "" {
131131
// If we don't have Wrapped model definitions, just return a standard model
132-
opts := backend.ModelOptions(*cfg, appConfig, []model.Option{
133-
model.WithBackendString(cfg.Backend),
134-
model.WithModel(cfg.Model),
135-
})
132+
opts := backend.ModelOptions(*cfg, appConfig, model.WithBackendString(cfg.Backend),
133+
model.WithModel(cfg.Model))
136134
return ml.BackendLoader(opts...)
137135
}
138136

0 commit comments

Comments
 (0)