From e811bc51d401ecde194df562034ae529943546d0 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 5 Dec 2024 20:13:07 +0300 Subject: Enha: improve colours and formatingg --- bot.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bot.go') 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) -- cgit v1.2.3