feat: add xunfei spark bot

This commit is contained in:
zhayujie
2023-08-25 16:06:55 +08:00
parent 1171b04e93
commit a086f1989f
8 changed files with 290 additions and 16 deletions

View File

@@ -25,6 +25,8 @@ class Bridge(object):
self.btype["chat"] = const.CHATGPTONAZURE
if model_type in ["wenxin"]:
self.btype["chat"] = const.BAIDU
if model_type in ["xunfei"]:
self.btype["chat"] = const.XUNFEI
if conf().get("use_linkai") and conf().get("linkai_api_key"):
self.btype["chat"] = const.LINKAI
self.bots = {}