diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-01-14 10:06:15 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-01-14 10:06:15 +0300 |
| commit | 3b542421e35180db9b9f972ee973befc42f1a46f (patch) | |
| tree | 8a265754a18bb100eaa5cd301dec2572d6c3cde5 /tools.go | |
| parent | e120a629397a8c594497bd61b8b1d9e5c0babf78 (diff) | |
Enha: sort chat table (by updated_at)
Diffstat (limited to 'tools.go')
| -rw-r--r-- | tools.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
