mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-16 15:55:00 +00:00
fix(realtime): Use updated model on session update (#5604)
Signed-off-by: Richard Palethorpe <io@richiejp.com>
This commit is contained in:
parent
5bc7ef37a2
commit
d650647db9
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ func updateTransSession(session *Session, update *types.ClientSession, cl *confi
|
||||||
if trUpd != nil && trUpd.Model != "" && trUpd.Model != trCur.Model {
|
if trUpd != nil && trUpd.Model != "" && trUpd.Model != trCur.Model {
|
||||||
pipeline := config.Pipeline {
|
pipeline := config.Pipeline {
|
||||||
VAD: "silero-vad",
|
VAD: "silero-vad",
|
||||||
Transcription: session.InputAudioTranscription.Model,
|
Transcription: trUpd.Model,
|
||||||
}
|
}
|
||||||
|
|
||||||
m, _, err := newTranscriptionOnlyModel(&pipeline, cl, ml, appConfig)
|
m, _, err := newTranscriptionOnlyModel(&pipeline, cl, ml, appConfig)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue