feat: support scen without app code

This commit is contained in:
zhayujie
2023-06-08 23:57:59 +08:00
parent 165182c68f
commit 94c0af3037
4 changed files with 15 additions and 8 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 conf().get("linkai_api_key") and conf().get("linkai_app_code"):
if conf().get("use_linkai") and conf().get("linkai_api_key"):
self.btype["chat"] = const.LINKAI
self.bots = {}