diff options
author | Grail Finder <wohilas@gmail.com> | 2025-10-21 10:35:37 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2025-10-21 10:35:37 +0300 |
commit | 6a8e854ef6dd9a3f00027cf46f6b673c6cf13ab0 (patch) | |
tree | 54a560dea07a2239c388858558c2fc5ffb78e4e2 /tools.go | |
parent | 988529537be098713211cd2042f0808b2046ff3d (diff) |
Feat: parse role from raw msg
Diffstat (limited to 'tools.go')
-rw-r--r-- | tools.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -19,6 +19,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*`) + roleRE = regexp.MustCompile(`^(\w+):`) rpDefenitionSysMsg = ` For this roleplay immersion is at most importance. Every character thinks and acts based on their personality and setting of the roleplay. |