feat: hello plugin support system prompt

This commit is contained in:
zhayujie
2023-11-29 17:41:14 +08:00
parent 6e0d2f9437
commit 865e4b5349
4 changed files with 8 additions and 9 deletions

View File

@@ -184,8 +184,6 @@ class ChatChannel(Channel):
reply = e_context["reply"]
if not e_context.is_pass():
logger.debug("[WX] ready to handle context: type={}, content={}".format(context.type, context.content))
if e_context.is_break():
context["generate_breaked_by"] = e_context["breaked_by"]
if context.type == ContextType.TEXT or context.type == ContextType.IMAGE_CREATE: # 文字和图片消息
context["channel"] = e_context["channel"]
reply = super().build_reply_content(context.content, context)