Skip to content

Commit

Permalink
Merge pull request #2405 from 6vision/role-plugin-linkai
Browse files Browse the repository at this point in the history
Linkai bot is compatible with the role plugin.
  • Loading branch information
6vision authored Dec 2, 2024
2 parents a4d0e9b + 33a69a7 commit bdc3820
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/role/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def on_handle_context(self, e_context: EventContext):
e_context["reply"] = reply
e_context.action = EventAction.BREAK_PASS
else:
e_context["context"]["generate_breaked_by"] = EventAction.BREAK
prompt = self.roleplays[sessionid].action(content)
e_context["context"].type = ContextType.TEXT
e_context["context"].content = prompt
Expand Down

0 comments on commit bdc3820

Please sign in to comment.