From c2da07ddc31440c0fdb129e108544f921436b3f1 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Wed, 11 Jun 2025 11:36:24 +0300 Subject: Feat: rename user through props --- bot.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bot.go') diff --git a/bot.go b/bot.go index 08920cc..0503548 100644 --- a/bot.go +++ b/bot.go @@ -437,6 +437,7 @@ func removeThinking(chatBody *models.ChatBody) { func applyCharCard(cc *models.CharCard) { cfg.AssistantRole = cc.Role + // FIXME: remove // Initialize Cluedo if enabled and matching role if cfg.EnableCluedo && cc.Role == "CluedoPlayer" { playerOrder = []string{cfg.UserRole, cfg.AssistantRole, cfg.CluedoRole2} @@ -444,6 +445,7 @@ func applyCharCard(cc *models.CharCard) { } history, err := loadAgentsLastChat(cfg.AssistantRole) if err != nil { + // TODO: too much action for err != nil; loadAgentsLastChat needs to be split up logger.Warn("failed to load last agent chat;", "agent", cc.Role, "err", err) history = []models.RoleMsg{ {Role: "system", Content: cc.SysPrompt}, -- cgit v1.2.3