mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-28 14:32:05 +08:00
feat: 通义千问使用新版的sdk实现
现在项目使用的通义千问是旧版本的百炼sdk, 这里增加一个新版本sdk(dashscope)的实现
This commit is contained in:
@@ -30,6 +30,8 @@ class Bridge(object):
|
||||
self.btype["chat"] = const.XUNFEI
|
||||
if model_type in [const.QWEN]:
|
||||
self.btype["chat"] = const.QWEN
|
||||
if model_type in [const.QWEN_TURBO, const.QWEN_PLUS, const.QWEN_MAX]:
|
||||
self.btype["chat"] = const.QWEN_DASHSCOPE
|
||||
if model_type in [const.GEMINI]:
|
||||
self.btype["chat"] = const.GEMINI
|
||||
if model_type in [const.ZHIPU_AI]:
|
||||
|
||||
Reference in New Issue
Block a user