feat#add minmax model

This commit is contained in:
limy26
2024-06-12 19:14:09 +08:00
parent 405372d1a7
commit 200cd33a8e
6 changed files with 271 additions and 17 deletions

View File

@@ -45,6 +45,9 @@ class Bridge(object):
if model_type in ["moonshot-v1-8k", "moonshot-v1-32k", "moonshot-v1-128k"]:
self.btype["chat"] = const.MOONSHOT
if model_type in ["abab6.5-chat"]:
self.btype["chat"] = const.MiniMax
if conf().get("use_linkai") and conf().get("linkai_api_key"):
self.btype["chat"] = const.LINKAI
if not conf().get("voice_to_text") or conf().get("voice_to_text") in ["openai"]: