summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot.go b/bot.go
index 7d9fbe9..aecc0b9 100644
--- a/bot.go
+++ b/bot.go
@@ -186,10 +186,12 @@ func sendMsgToLLM(body io.Reader) {
}
content, stop, err = chunkParser.ParseChunk(line)
if err != nil {
- logger.Error("error parsing response body", "error", err, "line", string(line), "url", cfg.CurrentAPI)
+ logger.Error("error parsing response body", "error", err,
+ "line", string(line), "url", cfg.CurrentAPI)
streamDone <- true
break
}
+ // here line can contain some error msg; if it does we should log it and break from loop; ai!
if stop {
if content != "" {
logger.Warn("text inside of finish llmchunk", "chunk", content, "counter", counter)