fix(realtime): Use updated model on session update (#5604)

Signed-off-by: Richard Palethorpe <io@richiejp.com>
This commit is contained in:
Richard Palethorpe 2025-06-08 23:11:05 +01:00 committed by GitHub
parent 5bc7ef37a2
commit d650647db9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -569,7 +569,7 @@ func updateTransSession(session *Session, update *types.ClientSession, cl *confi
if trUpd != nil && trUpd.Model != "" && trUpd.Model != trCur.Model {
pipeline := config.Pipeline {
VAD: "silero-vad",
Transcription: session.InputAudioTranscription.Model,
Transcription: trUpd.Model,
}
m, _, err := newTranscriptionOnlyModel(&pipeline, cl, ml, appConfig)