summaryrefslogtreecommitdiff
path: root/tools.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-02-24 18:57:31 +0300
committerGrail Finder <wohilas@gmail.com>2025-02-24 18:57:31 +0300
commit97a1fc507e69b9594d44023f7a85b479b0c34285 (patch)
tree576827fb0c2d9ad8644b3f534c1c419368bf86f4 /tools.go
parent71987d25e9b0f8afeb885e8719fa8fabb7caef3e (diff)
Feat: shift syscard to first msg option
Diffstat (limited to 'tools.go')
-rw-r--r--tools.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/tools.go b/tools.go
index a380bf5..50b3d24 100644
--- a/tools.go
+++ b/tools.go
@@ -9,11 +9,16 @@ import (
)
var (
- toolCallRE = regexp.MustCompile(`__tool_call__\s*([\s\S]*?)__tool_call__`)
- quotesRE = regexp.MustCompile(`(".*?")`)
- starRE = regexp.MustCompile(`(\*.*?\*)`)
- thinkRE = regexp.MustCompile(`(<think>\s*([\s\S]*?)</think>)`)
- codeBlockRE = regexp.MustCompile(`(?s)\x60{3}(?:.*?)\n(.*?)\n\s*\x60{3}\s*`)
+ toolCallRE = regexp.MustCompile(`__tool_call__\s*([\s\S]*?)__tool_call__`)
+ quotesRE = regexp.MustCompile(`(".*?")`)
+ starRE = regexp.MustCompile(`(\*.*?\*)`)
+ thinkRE = regexp.MustCompile(`(<think>\s*([\s\S]*?)</think>)`)
+ codeBlockRE = regexp.MustCompile(`(?s)\x60{3}(?:.*?)\n(.*?)\n\s*\x60{3}\s*`)
+ rpDefenitionSysMsg = `
+For this roleplay immersion is at most importance.
+Every character thinks and acts based on their personality and setting of the roleplay.
+Meta discussions outside of roleplay is allowed if clearly labeled as out of character, for example: (ooc: {msg}) or <ooc>{msg}</ooc>.
+`
basicSysMsg = `Large Language Model that helps user with any of his requests.`
toolSysMsg = `You can do functions call if needed.
Your current tools: