Feat: parse role from raw msg

This commit is contained in:
Grail Finder
2025-10-21 10:35:37 +03:00
parent 988529537b
commit 6a8e854ef6
3 changed files with 20 additions and 8 deletions

View File

@@ -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.