You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- """
- channel factory
- """
-
- from bot.baidu.baidu_unit_bot import BaiduUnitBot
- from bot.chatgpt.chat_gpt_bot import ChatGPTBot
-
-
- def create_bot(bot_type):
- """
- create a channel instance
- :param channel_type: channel type code
- :return: channel instance
- """
- if bot_type == 'baidu':
- return BaiduUnitBot()
- elif bot_type == 'chatGPT':
- return ChatGPTBot()
- raise RuntimeError
|