refactor(llm): 优化禁用基础模型逻辑
- 修改了禁用基础模型时的更新方式,直接操作 DO 对象而不是使用 updateReqVO - 将 updateBaseModel 方法替换为直接调用 baseModelMapper.updateById 方法
This commit is contained in:
parent
336f645637
commit
335793247f
@ -175,8 +175,8 @@ public class BaseModelServiceImpl implements BaseModelService {
|
||||
String resStr = HttpUtils.post(llmBackendProperties.getDeleteModel()+"?deploy_id="+deploy_id, null, "");
|
||||
log.info(" unActive:{}", resStr);
|
||||
// 禁用模型
|
||||
updateReqVO.setIsActive(0);
|
||||
updateBaseModel(updateReqVO);
|
||||
baseModelDO.setIsActive(0);
|
||||
baseModelMapper.updateById(baseModelDO);
|
||||
}catch (Exception e){
|
||||
log.error("禁用基础模型状态时发生异常: {}", e.getMessage(), e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user