feat: update modelscope bot

This commit is contained in:
yrk
2026-03-24 10:43:45 +08:00
parent c062ca8c66
commit 4c1c42efac
4 changed files with 766 additions and 152 deletions

View File

@@ -115,6 +115,8 @@ class AgentLLMModel(LLMModel):
return const.QWEN_DASHSCOPE
if model_name in [const.MOONSHOT, "moonshot-v1-8k", "moonshot-v1-32k", "moonshot-v1-128k"]:
return const.MOONSHOT
if conf().get("bot_type") == "modelscope":
return const.MODELSCOPE
for prefix, btype in self._MODEL_PREFIX_MAP:
if model_name.startswith(prefix):
return btype