summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-02-19 19:56:58 +0300
committerGrail Finder <wohilas@gmail.com>2025-02-19 19:56:58 +0300
commit71987d25e9b0f8afeb885e8719fa8fabb7caef3e (patch)
tree1d1cbe9cc98b570dbeb2cf79f938470e297178b0 /tui.go
parent3ae71d81c426d5526827da1df3d930b991d0d62f (diff)
Chore: move rag settings to configHEADmaster
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tui.go b/tui.go
index 16d63e5..5e64e5e 100644
--- a/tui.go
+++ b/tui.go
@@ -450,6 +450,8 @@ func init() {
if event.Key() == tcell.KeyF2 {
// regen last msg
chatBody.Messages = chatBody.Messages[:len(chatBody.Messages)-1]
+ // there is no case where user msg is regenerated
+ // lastRole := chatBody.Messages[len(chatBody.Messages)-1].Role
textView.SetText(chatToText(cfg.ShowSys))
go chatRound("", cfg.UserRole, textView, true, false)
return nil