fix regex

This commit is contained in:
unintendedfraud
2023-05-06 11:56:22 +02:00
parent 31c44edc0f
commit 6c953ff579
+1 -1
View File
@@ -60,7 +60,7 @@ func (c Client) ChatCompletions(prompt string) (*CompletionResponse, error) {
} }
func cleanPrompt(p string) string { func cleanPrompt(p string) string {
regex := regexp.MustCompile("(<@\d+>)") regex := regexp.MustCompile("<@\\d+>")
return regex.ReplaceAllString(p, "") return regex.ReplaceAllString(p, "")
} }