mirror of
https://github.com/zhayujie/bot-on-anything.git
synced 2026-02-21 08:03:22 +08:00
feat: 文心一言测试版接入
This commit is contained in:
@@ -21,5 +21,9 @@ def create_bot(model_type):
|
||||
from model.openai.chatgpt_model import ChatGPTModel
|
||||
return ChatGPTModel()
|
||||
|
||||
elif model_type == const.BAIDU:
|
||||
from model.baidu.yiyan_model import YiyanModel
|
||||
return YiyanModel()
|
||||
|
||||
raise RuntimeError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user