Add support for ModelScope API

This commit is contained in:
yanrk123
2025-03-11 11:12:57 +08:00
parent 436c038a2f
commit 3e185dbbfe
8 changed files with 219 additions and 4 deletions

View File

@@ -49,6 +49,9 @@ class Bridge(object):
if model_type in [const.MOONSHOT, "moonshot-v1-8k", "moonshot-v1-32k", "moonshot-v1-128k"]:
self.btype["chat"] = const.MOONSHOT
if model_type in [const.MODELSCOPE,]:
self.btype["chat"] = const.MODELSCOPE
if model_type in ["abab6.5-chat"]:
self.btype["chat"] = const.MiniMax