summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2024-12-05 20:13:07 +0300
committerGrail Finder <wohilas@gmail.com>2024-12-05 20:13:07 +0300
commite811bc51d401ecde194df562034ae529943546d0 (patch)
tree6a9cec3b0d132c1dd0594dfea54cc976ee9061d9 /bot.go
parent990e0695c582c2c8d647c258cde0342ac14e3a75 (diff)
Enha: improve colours and formatingg
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot.go b/bot.go
index 6ff579d..23769dd 100644
--- a/bot.go
+++ b/bot.go
@@ -113,6 +113,7 @@ func chatRound(userMsg, role string, tv *tview.TextView, regen bool) {
if userMsg != "" && !regen { // no need to write assistant icon since we continue old message
fmt.Fprintf(tv, "(%d) ", len(chatBody.Messages))
fmt.Fprint(tv, cfg.AssistantIcon)
+ fmt.Fprint(tv, "\n")
}
respText := strings.Builder{}
out:
@@ -131,6 +132,7 @@ out:
chatBody.Messages = append(chatBody.Messages, models.RoleMsg{
Role: cfg.AssistantRole, Content: respText.String(),
})
+ colorText()
// bot msg is done;
// now check it for func call
// logChat(activeChatName, chatBody.Messages)