Enha: chat management table

This commit is contained in:
Grail Finder
2024-12-15 22:02:32 +03:00
parent 5a82ed727f
commit f367ad266a
3 changed files with 82 additions and 47 deletions

View File

@@ -76,6 +76,8 @@ func loadHistoryChat(chatName string) ([]models.RoleMsg, error) {
return nil, err
}
activeChatName = chatName
cfg.AssistantRole = chat.Agent
cfg.AssistantIcon = "<" + chat.Agent + ">: "
return chat.ToHistory()
}