添加:删除模型的验证

--ModelConfigServiceImpl.java 删除视觉模型时,如果引用了,就不能删除
This commit is contained in:
JianYu Zheng
2025-07-24 17:13:05 +08:00
parent fdbe5fa556
commit 3939c81044
@@ -167,6 +167,8 @@ public class ModelConfigServiceImpl extends BaseServiceImpl<ModelConfigDao, Mode
.or()
.eq("mem_model_id", modelId)
.or()
.eq("vllm_model_id", modelId)
.or()
.eq("intent_model_id", modelId));
if (!agents.isEmpty()) {
String agentNames = agents.stream()