Chore: move rag settings to config

This commit is contained in:
Grail Finder
2025-02-19 19:56:58 +03:00
parent 3ae71d81c4
commit 71987d25e9
7 changed files with 27 additions and 22 deletions

2
tui.go
View File

@@ -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