diff options
author | Grail Finder <wohilas@gmail.com> | 2025-02-24 18:57:31 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2025-02-24 18:57:31 +0300 |
commit | 97a1fc507e69b9594d44023f7a85b479b0c34285 (patch) | |
tree | 576827fb0c2d9ad8644b3f534c1c419368bf86f4 /tools.go | |
parent | 71987d25e9b0f8afeb885e8719fa8fabb7caef3e (diff) |
Feat: shift syscard to first msg option
Diffstat (limited to 'tools.go')
-rw-r--r-- | tools.go | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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: |