feat: support minimax M2 models

This commit is contained in:
zhayujie
2026-02-02 23:36:23 +08:00
parent ab74be8e33
commit 46bcd87c23
4 changed files with 555 additions and 62 deletions

View File

@@ -55,7 +55,8 @@ class Bridge(object):
if model_type in [const.MODELSCOPE]:
self.btype["chat"] = const.MODELSCOPE
if model_type in ["abab6.5-chat"]:
# MiniMax models
if model_type and (model_type in ["abab6.5-chat", "abab6.5"] or model_type.lower().startswith("minimax")):
self.btype["chat"] = const.MiniMax
if conf().get("use_linkai") and conf().get("linkai_api_key"):