summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-08-20 22:45:41 +0300
committerGrail Finder <wohilas@gmail.com>2025-08-20 22:45:41 +0300
commiteee5e83d329fa9a19cf04ba290102ea650aca580 (patch)
tree79b20b29dd6db0f1c4c2ace8a1a3bbebd1378d94 /bot.go
parent6955a5bc3a89e982f0b05d1e8e6f109e3b79d9ca (diff)
Feat: bot to write for any char in chat (completion only)
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot.go b/bot.go
index 35ea0fa..8373edf 100644
--- a/bot.go
+++ b/bot.go
@@ -203,7 +203,7 @@ func sendMsgToLLM(body io.Reader) {
line, err := reader.ReadBytes('\n')
if err != nil {
logger.Error("error reading response body", "error", err, "line", string(line),
- "reqbody", string(bodyBytes), "user_role", cfg.UserRole, "parser", chunkParser, "link", cfg.CurrentAPI)
+ "user_role", cfg.UserRole, "parser", chunkParser, "link", cfg.CurrentAPI)
// if err.Error() != "EOF" {
streamDone <- true
break
@@ -355,6 +355,9 @@ func chatRound(userMsg, role string, tv *tview.TextView, regen, resume bool) {
logger.Error("empty reader from msgs", "role", role, "error", err)
return
}
+ if cfg.SkipLLMResp {
+ return
+ }
go sendMsgToLLM(reader)
logger.Debug("looking at vars in chatRound", "msg", userMsg, "regen", regen, "resume", resume)
if !resume {