diff --git a/openai/client.go b/openai/client.go index 88e2a2c..8788a72 100644 --- a/openai/client.go +++ b/openai/client.go @@ -50,7 +50,7 @@ func (c Client) Completions(prompt string) (*CompletionResponse, error) { } func cleanPrompt(p string) string { - regex := regexp.MustCompile("<@\\d+>") + regex := regexp.MustCompile(`<@\d+>`) return regex.ReplaceAllString(p, "") }