fix(model): remove legacy dashscope-only restriction from model validation

This commit is contained in:
matevip 2026-04-06 12:41:27 +08:00
parent 647fa9ab94
commit 8c8cb5fa48

View File

@ -223,9 +223,6 @@ public class ModelConfigService {
if (!StringUtils.hasText(entity.getProvider())) {
entity.setProvider("dashscope");
}
if (!"dashscope".equals(entity.getProvider())) {
throw new MateClawException("当前仅支持 dashscope provider");
}
if (!StringUtils.hasText(entity.getModelName())) {
throw new MateClawException("模型标识不能为空");
}