please linter
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ func (c Client) Completions(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, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user