refactor(module-llm):优化 LLM 模块相关服务
- 修改 AsyncDataSetService 中的 URL 处理逻辑,返回处理后的 result - 更新 AsyncFineTuningTaskService 中的日志级别,从 debug 改为 info - 在 TrainHttpService 中添加 base URL,确保 HTTP 请求的 URL 完整性
This commit is contained in:
parent
30be835063
commit
5cb4c8a6e6
@ -105,9 +105,9 @@ public class AsyncDataSetService {
|
||||
//todo 1111
|
||||
String url = s3Url.substring(lastIndex + 1);
|
||||
datasetMapper.setUrl(datasetDO.getId(),url);
|
||||
|
||||
String result = url.substring(hostUrl.length());
|
||||
log.info("[JsonFileWrite][写入文件成功]");
|
||||
return url;
|
||||
return result;
|
||||
}
|
||||
} catch (IOException e) {
|
||||
// 记录异常信息
|
||||
|
||||
@ -111,7 +111,7 @@ public class AsyncFineTuningTaskService {
|
||||
log.debug("正在生成 JSON 文件并获取文件 URL...");
|
||||
String fileUrl = dataSetService.JsonFileWriteFine(serverNameDO.getHost(), datasetDO, datasetQuestionList);
|
||||
req.setDataset(fileUrl);
|
||||
log.debug("JSON 文件生成成功。文件 URL: {}", fileUrl);
|
||||
log.info("JSON 文件生成成功。文件 URL: {}", fileUrl);
|
||||
|
||||
// 设置请求参数
|
||||
req.setSuffix(active + "-" + fineTuningTask.getId());
|
||||
|
||||
@ -162,7 +162,7 @@ public class TrainHttpService {
|
||||
|
||||
// 发起 HTTP 请求
|
||||
log.debug("正在发起 HTTP POST 请求...");
|
||||
String res = HttpUtils.post(llmBackendProperties.getFinetuningCreate(), headers, JSON.toJSONString(req));
|
||||
String res = HttpUtils.post(url + llmBackendProperties.getFinetuningCreate(), headers, JSON.toJSONString(req));
|
||||
log.info("HTTP 请求完成。响应内容: {}", res);
|
||||
|
||||
// 解析响应
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user