diff options
author | Grail Finder <wohilas@gmail.com> | 2025-08-22 23:15:20 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2025-08-22 23:15:20 +0300 |
commit | a21664fe927b3a826570d74b91b665da2b615b5f (patch) | |
tree | 526c752f0e05583bb599023041c9e080602bf416 /session.go | |
parent | eee5e83d329fa9a19cf04ba290102ea650aca580 (diff) |
Fix: export chat save in db; botPersona switching back to assistant
Diffstat (limited to 'session.go')
-rw-r--r-- | session.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -47,6 +47,9 @@ func importChat(filename string) error { return err } activeChatName = filepath.Base(filename) + if _, ok := chatMap[activeChatName]; !ok { + addNewChat(activeChatName) + } chatBody.Messages = messages cfg.AssistantRole = messages[1].Role if cfg.AssistantRole == cfg.UserRole { |