mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-02-16 08:16:06 +08:00
15 lines
317 B
Python
15 lines
317 B
Python
"""
|
|
channel factory
|
|
"""
|
|
|
|
from channel.wechat.wechat_channel import WechatChannel
|
|
|
|
def create_channel(channel_type):
|
|
"""
|
|
create a channel instance
|
|
:param channel_type: channel type code
|
|
:return: channel instance
|
|
"""
|
|
if channel_type == 'wx':
|
|
return WechatChannel()
|
|
raise RuntimeError |