@@ -137,7 +137,7 @@ func newModel(cl *config.BackendConfigLoader, ml *model.ModelLoader, appConfig *
137
137
// If we don't have Wrapped model definitions, just return a standard model
138
138
opts := backend .ModelOptions (* cfg , appConfig , model .WithBackendString (cfg .Backend ),
139
139
model .WithModel (cfg .Model ))
140
- return ml .BackendLoader (opts ... )
140
+ return ml .Load (opts ... )
141
141
}
142
142
143
143
log .Debug ().Msg ("Loading a wrapped model" )
@@ -174,19 +174,19 @@ func newModel(cl *config.BackendConfigLoader, ml *model.ModelLoader, appConfig *
174
174
}
175
175
176
176
opts := backend .ModelOptions (* cfgTTS , appConfig )
177
- ttsClient , err := ml .BackendLoader (opts ... )
177
+ ttsClient , err := ml .Load (opts ... )
178
178
if err != nil {
179
179
return nil , fmt .Errorf ("failed to load tts model: %w" , err )
180
180
}
181
181
182
182
opts = backend .ModelOptions (* cfgSST , appConfig )
183
- transcriptionClient , err := ml .BackendLoader (opts ... )
183
+ transcriptionClient , err := ml .Load (opts ... )
184
184
if err != nil {
185
185
return nil , fmt .Errorf ("failed to load SST model: %w" , err )
186
186
}
187
187
188
188
opts = backend .ModelOptions (* cfgLLM , appConfig )
189
- llmClient , err := ml .BackendLoader (opts ... )
189
+ llmClient , err := ml .Load (opts ... )
190
190
if err != nil {
191
191
return nil , fmt .Errorf ("failed to load LLM model: %w" , err )
192
192
}
@@ -571,6 +571,9 @@ func handleVAD(session *Session, conversation *Conversation, c *websocket.Conn,
571
571
572
572
// Function to generate a response based on the conversation
573
573
func generateResponse (session * Session , conversation * Conversation , responseCreate ResponseCreate , c * websocket.Conn , mt int ) {
574
+
575
+ log .Debug ().Msg ("Generating realtime response..." )
576
+
574
577
// Compile the conversation history
575
578
conversation .Lock .Lock ()
576
579
var conversationHistory []string
0 commit comments