mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-18 04:25:14 +08:00
Add wechatmp_service channel
This commit is contained in:
@@ -19,5 +19,8 @@ def create_channel(channel_type):
|
||||
return TerminalChannel()
|
||||
elif channel_type == 'wechatmp':
|
||||
from channel.wechatmp.wechatmp_channel import WechatMPChannel
|
||||
return WechatMPChannel()
|
||||
return WechatMPChannel(passive_reply = True)
|
||||
elif channel_type == 'wechatmp_service':
|
||||
from channel.wechatmp.wechatmp_channel import WechatMPChannel
|
||||
return WechatMPChannel(passive_reply = False)
|
||||
raise RuntimeError
|
||||
|
||||
Reference in New Issue
Block a user