feat: add wenxin 4.0 model

This commit is contained in:
zhayujie
2023-10-27 14:18:55 +08:00
parent ced560e1e1
commit 49446d4872
3 changed files with 7 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ class Bridge(object):
self.btype["chat"] = const.OPEN_AI
if conf().get("use_azure_chatgpt", False):
self.btype["chat"] = const.CHATGPTONAZURE
if model_type in ["wenxin"]:
if model_type in ["wenxin", "wenxin-4"]:
self.btype["chat"] = const.BAIDU
if model_type in ["xunfei"]:
self.btype["chat"] = const.XUNFEI