Skip to content

Commit e690bf3

Browse files
authored
fix(tts): fix regression when supplying backend from requests (#1713)
fixes #1707 Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 5e155fb commit e690bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/localai/localai.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TTSEndpoint(cm *config.ConfigLoader, o *options.Option) func(c *fiber.Ctx)
4141
log.Debug().Msgf("Request for model: %s", modelFile)
4242

4343
if input.Backend != "" {
44-
cfg.Backend = input.Input
44+
cfg.Backend = input.Backend
4545
}
4646

4747
filePath, _, err := backend.ModelTTS(cfg.Backend, input.Input, modelFile, o.Loader, o, *cfg)

0 commit comments

Comments
 (0)