fix: config adjust

This commit is contained in:
zhayujie
2023-12-08 14:29:14 +08:00
parent 6eb3c90e18
commit ae4077ed6c
3 changed files with 9 additions and 7 deletions

View File

@@ -27,6 +27,8 @@ class Bridge(object):
self.btype["chat"] = const.BAIDU
if model_type in ["xunfei"]:
self.btype["chat"] = const.XUNFEI
if model_type in [const.QWEN]:
self.btype["chat"] = const.QWEN
if conf().get("use_linkai") and conf().get("linkai_api_key"):
self.btype["chat"] = const.LINKAI
if not conf().get("voice_to_text") or conf().get("voice_to_text") in ["openai"]:
@@ -35,8 +37,6 @@ class Bridge(object):
self.btype["text_to_voice"] = const.LINKAI
if model_type in ["claude"]:
self.btype["chat"] = const.CLAUDEAI
if model_type in [const.QWEN]:
self.btype["chat"] = const.QWEN
self.bots = {}
self.chat_bots = {}