fix(llm): 修复模型禁用时状态未重置的问题- 将模型服务的禁用状态从 3 修改为 0,以确保状态正确重置- 优化了 ModelServiceServiceImpl 中的 unActive 方法,修复了状态更新逻辑

This commit is contained in:
sunxiqing 2025-03-14 19:05:13 +08:00
parent 5e51861052
commit eb7fb66dfa

View File

@ -465,7 +465,7 @@ public class ModelServiceServiceImpl implements ModelServiceService {
String resStr = HttpUtils.post(llmBackendProperties.getDeleteModel()+"?deploy_id="+byAigcId.getModelId(), null, "");
log.info(" unActive:{}", resStr);
ModelServiceDO updateObj = BeanUtils.toBean(updateReqVO, ModelServiceDO.class);
updateObj.setStatus(3);
updateObj.setStatus(0);
modelServiceMapper.updateById(updateObj);
// 禁用模型
}catch (Exception e){