Skip to content

Commit

Permalink
fix(tts): fix regression when supplying backend from requests (#1713)
Browse files Browse the repository at this point in the history
fixes #1707

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
  • Loading branch information
mudler authored Feb 15, 2024
1 parent 5e155fb commit e690bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/localai/localai.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e690bf3

Please sign in to comment.