mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-02-08 09:12:19 +08:00
16 lines
302 B
Python
16 lines
302 B
Python
"""
|
|
channel factory
|
|
"""
|
|
|
|
from bot.baidu.baidu_unit_bot import BaiduUnitBot
|
|
|
|
|
|
def create_bot(bot_type):
|
|
"""
|
|
create a channel instance
|
|
:param channel_type: channel type code
|
|
:return: channel instance
|
|
"""
|
|
if bot_type == 'baidu':
|
|
return BaiduUnitBot()
|
|
raise RuntimeError |