diff --git a/api/localai/localai.go b/api/localai/localai.go index 7774ca47497e..3abe440ea12e 100644 --- a/api/localai/localai.go +++ b/api/localai/localai.go @@ -41,7 +41,7 @@ func TTSEndpoint(cm *config.ConfigLoader, o *options.Option) func(c *fiber.Ctx) log.Debug().Msgf("Request for model: %s", modelFile) if input.Backend != "" { - cfg.Backend = input.Input + cfg.Backend = input.Backend } filePath, _, err := backend.ModelTTS(cfg.Backend, input.Input, modelFile, o.Loader, o, *cfg)