fix(llm): 修复删除模型功能

- 将 JSON 参数从单个 Long 类型改为 Map 类型
- 更新 API 调用以匹配新的参数格式
This commit is contained in:
sunxiqing 2025-03-06 16:12:38 +08:00
parent b29936bcfb
commit 55d11a8b38

View File

@ -174,7 +174,7 @@ public class BaseModelServiceImpl implements BaseModelService {
Long deploy_id = baseModelDO.getModelId();
Map<String,Long> map = new HashMap<>();
map.put("deploy_id",deploy_id);
String resStr = HttpUtils.post(llmBackendProperties.getDeleteModel(), null, JSON.toJSONString(deploy_id));
String resStr = HttpUtils.post(llmBackendProperties.getDeleteModel(), null, JSON.toJSONString(map));
// 禁用模型
// updateReqVO.setIsActive(0);
// updateBaseModel(updateReqVO);