We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe9f09d commit fa4b767Copy full SHA for fa4b767
1 file changed
pkg/provider/eliza/engine.go
@@ -127,8 +127,10 @@ func (e *Engine) InferMemory(messages []*schema.Message) {
127
if !rule.memorable {
128
continue
129
}
130
- if match := rule.pattern.FindStringSubmatch(input); match != nil && len(match) > 1 {
131
- e.remember(match[1])
+ if match := rule.pattern.FindStringSubmatch(input); match != nil {
+ if len(match) > 1 {
132
+ e.remember(match[1])
133
+ }
134
135
136
0 commit comments