mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-18 15:08:08 +00:00
fix(tts): fix regression when supplying backend from requests (#1713)
fixes #1707 Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5e155fb081
commit
e690bf387a
@ -41,7 +41,7 @@ func TTSEndpoint(cm *config.ConfigLoader, o *options.Option) func(c *fiber.Ctx)
|
|||||||
log.Debug().Msgf("Request for model: %s", modelFile)
|
log.Debug().Msgf("Request for model: %s", modelFile)
|
||||||
|
|
||||||
if input.Backend != "" {
|
if input.Backend != "" {
|
||||||
cfg.Backend = input.Input
|
cfg.Backend = input.Backend
|
||||||
}
|
}
|
||||||
|
|
||||||
filePath, _, err := backend.ModelTTS(cfg.Backend, input.Input, modelFile, o.Loader, o, *cfg)
|
filePath, _, err := backend.ModelTTS(cfg.Backend, input.Input, modelFile, o.Loader, o, *cfg)
|
||||||
|
Reference in New Issue
Block a user