Skip to content

Commit 34a04ba

Browse files
authored
Merge pull request #1242 from ai16z/tcm-twitter-character-template-issue
fix: twitterShouldRespondTemplate Fails When Defined as a String in JSON Character Config
2 parents 5a023c7 + 08a5aad commit 34a04ba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/client-twitter/src/interactions.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,7 @@ export class TwitterInteractionClient {
398398
const shouldRespondContext = composeContext({
399399
state,
400400
template:
401-
this.runtime.character.templates?.twitterShouldRespondTemplate?.(
402-
validTargetUsersStr
403-
) ||
401+
this.runtime.character.templates?.twitterShouldRespondTemplate ||
404402
this.runtime.character?.templates?.shouldRespondTemplate ||
405403
twitterShouldRespondTemplate(validTargetUsersStr),
406404
});

0 commit comments

Comments
 (0)