summaryrefslogtreecommitdiff
path: root/helpfuncs.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpfuncs.go')
-rw-r--r--helpfuncs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpfuncs.go b/helpfuncs.go
index dff53b9..538b4aa 100644
--- a/helpfuncs.go
+++ b/helpfuncs.go
@@ -121,12 +121,12 @@ func initSysCards() ([]string, error) {
return labels, nil
}
-func startNewChat() {
+func startNewChat(keepSysP bool) {
id, err := store.ChatGetMaxID()
if err != nil {
logger.Error("failed to get chat id", "error", err)
}
- if ok := charToStart(cfg.AssistantRole); !ok {
+ if ok := charToStart(cfg.AssistantRole, keepSysP); !ok {
logger.Warn("no such sys msg", "name", cfg.AssistantRole)
}
// set chat body