mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-15 03:55:09 +08:00
fix(model): remove legacy dashscope-only restriction from model validation
This commit is contained in:
parent
647fa9ab94
commit
8c8cb5fa48
@ -223,9 +223,6 @@ public class ModelConfigService {
|
|||||||
if (!StringUtils.hasText(entity.getProvider())) {
|
if (!StringUtils.hasText(entity.getProvider())) {
|
||||||
entity.setProvider("dashscope");
|
entity.setProvider("dashscope");
|
||||||
}
|
}
|
||||||
if (!"dashscope".equals(entity.getProvider())) {
|
|
||||||
throw new MateClawException("当前仅支持 dashscope provider");
|
|
||||||
}
|
|
||||||
if (!StringUtils.hasText(entity.getModelName())) {
|
if (!StringUtils.hasText(entity.getModelName())) {
|
||||||
throw new MateClawException("模型标识不能为空");
|
throw new MateClawException("模型标识不能为空");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user