Fix: signal that llm is done

This commit is contained in:
Grail Finder
2025-05-17 13:33:00 +03:00
parent d05d904747
commit f7d1fbf73c
2 changed files with 29 additions and 8 deletions

10
bot.go
View File

@@ -334,12 +334,6 @@ func chatRound(userMsg, role string, tv *tview.TextView, regen, resume bool) {
}
}
respText := strings.Builder{}
// if tts is enabled
// var audioStream *extra.AudioStream
// if cfg.TTS_ENABLED {
// audioStream = extra.RunOrator(orator)
// // defer close(audioStream.DoneChan)
// }
out:
for {
select {
@@ -354,6 +348,10 @@ out:
}
case <-streamDone:
botRespMode = false
if cfg.TTS_ENABLED {
// audioStream.TextChan <- chunk
extra.TTSFlushChan <- true
}
break out
}
}