summaryrefslogtreecommitdiff
path: root/tools.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-01-14 10:06:15 +0300
committerGrail Finder <wohilas@gmail.com>2026-01-14 10:06:15 +0300
commit3b542421e35180db9b9f972ee973befc42f1a46f (patch)
tree8a265754a18bb100eaa5cd301dec2572d6c3cde5 /tools.go
parente120a629397a8c594497bd61b8b1d9e5c0babf78 (diff)
Enha: sort chat table (by updated_at)
Diffstat (limited to 'tools.go')
-rw-r--r--tools.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools.go b/tools.go
index fddbffe..deba7b4 100644
--- a/tools.go
+++ b/tools.go
@@ -24,7 +24,7 @@ var (
starRE = regexp.MustCompile(`(\*.*?\*)`)
thinkRE = regexp.MustCompile(`(<think>\s*([\s\S]*?)</think>)`)
codeBlockRE = regexp.MustCompile(`(?s)\x60{3}(?:.*?)\n(.*?)\n\s*\x60{3}\s*`)
- singleBacktickRE = regexp.MustCompile(`\x60([^\x60]*)\x60`)
+ singleBacktickRE = regexp.MustCompile(`\x60([^\x60]*)\x60`)
roleRE = regexp.MustCompile(`^(\w+):`)
rpDefenitionSysMsg = `
For this roleplay immersion is at most importance.
@@ -330,6 +330,7 @@ func memorise(args map[string]string) []byte {
Topic: args["topic"],
Mind: args["data"],
UpdatedAt: time.Now(),
+ CreatedAt: time.Now(),
}
if _, err := store.Memorise(memory); err != nil {
logger.Error("failed to save memory", "err", err, "memoory", memory)