feat: chatGPT bot

This commit is contained in:
zhayujie
2022-12-10 13:15:31 +08:00
parent 1ec0a530bf
commit a059005506
7 changed files with 37 additions and 7 deletions

View File

@@ -3,6 +3,7 @@ channel factory
"""
from bot.baidu.baidu_unit_bot import BaiduUnitBot
from bot.chatgpt.chat_gpt_bot import ChatGPTBot
def create_bot(bot_type):
@@ -13,4 +14,6 @@ def create_bot(bot_type):
"""
if bot_type == 'baidu':
return BaiduUnitBot()
elif bot_type == 'chatGPT':
return ChatGPTBot()
raise RuntimeError