Fix: export chat save in db; botPersona switching back to assistant

This commit is contained in:
Grail Finder
2025-08-22 23:15:20 +03:00
parent eee5e83d32
commit a21664fe92
3 changed files with 30 additions and 19 deletions

View File

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