From ed5cb75134019a7ba063a13b5ff6f9cd296c80dd Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Wed, 11 Dec 2024 18:43:04 +0300 Subject: Refactor: sql on conflict; fix unittest; page names to vars --- tools.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools.go') diff --git a/tools.go b/tools.go index bb9012e..39c6063 100644 --- a/tools.go +++ b/tools.go @@ -9,9 +9,10 @@ import ( ) var ( - toolCallRE = regexp.MustCompile(`__tool_call__\s*([\s\S]*?)__tool_call__`) - quotesRE = regexp.MustCompile(`(".*?")`) - starRE = regexp.MustCompile(`(\*.*?\*)`) + toolCallRE = regexp.MustCompile(`__tool_call__\s*([\s\S]*?)__tool_call__`) + quotesRE = regexp.MustCompile(`(".*?")`) + starRE = regexp.MustCompile(`(\*.*?\*)`) + // codeBlokRE = regexp.MustCompile(`(\x60\x60\x60.*?\x60\x60\x60)`) basicSysMsg = `Large Language Model that helps user with any of his requests.` toolSysMsg = `You're a helpful assistant. # Tools -- cgit v1.2.3