fix(llm): 修复启动基础模型状态异常

- 将模型状态从 3 修改为 1,以符合正确的状态码
- 捕获异常并记录日志,提高错误处理的健壮性
This commit is contained in:
sunxiqing 2025-03-15 11:33:09 +08:00
parent 58dbe84f2c
commit 387861888c

View File

@ -460,7 +460,7 @@ public class ModelServiceServiceImpl implements ModelServiceService {
map.put("model",byAigcId.getModelName());
String resStr = HttpUtils.post(llmBackendProperties.getDeployModel(), null,JSON.toJSONString(map));
ModelServiceDO updateObj = BeanUtils.toBean(updateReqVO, ModelServiceDO.class);
updateObj.setStatus(3);
updateObj.setStatus(1);
modelServiceMapper.updateById(updateObj);
}catch (Exception e){
log.error("启动基础模型状态时发生异常: {}", e.getMessage(), e);