diff options
Diffstat (limited to 'bot.go')
-rw-r--r-- | bot.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |