Skip to content

Commit fa60660

Browse files
committed
fix(ollama): checking for empty string
1 parent 9168752 commit fa60660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filter_ollama.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (o OllamaFilterer) Filter(m APMessage) (filterThisMessage bool, reason stri
112112
return false, "", fmt.Errorf("model and prompt are required")
113113
}
114114
// If message is blank, return
115-
if regexp.MustCompile(`emptyStringRegex`).MatchString(ms) {
115+
if regexp.MustCompile(emptyStringRegex).MatchString(ms) {
116116
return true, "message blank", nil
117117
}
118118
url, err := url.Parse(o.URL)

0 commit comments

Comments
 (0)