fix(llm): 修复启动基础模型状态异常
- 将模型状态从 3 修改为 1,以符合正确的状态码 - 捕获异常并记录日志,提高错误处理的健壮性
This commit is contained in:
parent
58dbe84f2c
commit
387861888c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user