From 83babd027140b7ae41743655fa016bf3551350c2 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sat, 15 Feb 2025 08:46:33 +0300 Subject: Fix: thinking --- tools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools.go') 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(`(.*?)`) + thinkRE = regexp.MustCompile(`(\s*([\s\S]*?))`) 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. -- cgit v1.2.3