소스 검색

fix: add tongyi type when init bridge

Han Fangyuan 2 년 전
부모
커밋
8d07ba6332
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      bridge/bridge.py

+ 2 - 0
bridge/bridge.py

@@ -35,6 +35,8 @@ class Bridge(object):
                 self.btype["text_to_voice"] = const.LINKAI
         if model_type in ["claude"]:
             self.btype["chat"] = const.CLAUDEAI
+        if model_type in ["tongyi"]:
+            self.btype["chat"] = const.TONGYI
         self.bots = {}
         self.chat_bots = {}