summaryrefslogtreecommitdiff
path: root/tools.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-02-15 08:46:33 +0300
committerGrail Finder <wohilas@gmail.com>2025-02-15 08:46:33 +0300
commit83babd027140b7ae41743655fa016bf3551350c2 (patch)
tree9823fbb9305bfe1eac765cd4c8e9c634c90306c5 /tools.go
parent2b9c44eff9becf15e73c159349c5aeaa4ce68a0c (diff)
Fix: thinking
Diffstat (limited to 'tools.go')
-rw-r--r--tools.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools.go b/tools.go
index 1489294..a380bf5 100644
--- a/tools.go
+++ b/tools.go
@@ -12,7 +12,7 @@ var (
toolCallRE = regexp.MustCompile(`__tool_call__\s*([\s\S]*?)__tool_call__`)
quotesRE = regexp.MustCompile(`(".*?")`)
starRE = regexp.MustCompile(`(\*.*?\*)`)
- thinkRE = regexp.MustCompile(`(<think>.*?</think>)`)
+ thinkRE = regexp.MustCompile(`(<think>\s*([\s\S]*?)</think>)`)
codeBlockRE = regexp.MustCompile(`(?s)\x60{3}(?:.*?)\n(.*?)\n\s*\x60{3}\s*`)
basicSysMsg = `Large Language Model that helps user with any of his requests.`
toolSysMsg = `You can do functions call if needed.