mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-19 21:07:28 +08:00
fix: avoid channel to generate not support reply
This commit is contained in:
@@ -40,6 +40,9 @@ class SDWebUI(Plugin):
|
||||
|
||||
if e_context['context'].type != ContextType.IMAGE_CREATE:
|
||||
return
|
||||
channel = e_context['context'].channel
|
||||
if ReplyType.IMAGE in channel.NOT_SUPPORT_REPLYTYPE:
|
||||
return
|
||||
|
||||
logger.debug("[SD] on_handle_context. content: %s" %e_context['context'].content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user