Merge remote-tracking branch 'origin/master'

This commit is contained in:
limin 2025-02-19 15:34:26 +08:00
commit c6e1d57299
4 changed files with 11 additions and 1 deletions

View File

@ -54,4 +54,8 @@ public class BaseModelSaveReqVO {
private Long modelId;
private String chatUrl;
private Long gpuId;
private String gpuName;
}

View File

@ -79,4 +79,8 @@ public class BaseModelDO extends BaseDO {
private String chatUrl;
private Long gpuId;
private String gpuName;
}

View File

@ -26,6 +26,7 @@ import cn.iocoder.yudao.module.llm.service.datarefluxdata.DataRefluxDataService;
import cn.iocoder.yudao.module.llm.service.http.ModelService;
import cn.iocoder.yudao.module.llm.service.http.vo.*;
import cn.iocoder.yudao.module.llm.service.prompttemplates.PromptTemplatesService;
import cn.iocoder.yudao.module.llm.service.servername.ServerNameService;
import com.alibaba.excel.util.StringUtils;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
@ -170,6 +171,7 @@ public class ConversationServiceImpl implements ConversationService {
if (baseModelDO == null) {
throw exception(BASE_MODEL_NOT_EXISTS);
}
selfModelUrl = baseModelDO.getChatUrl() + "/v1/chat/completions";
model = baseModelDO.getAigcModelName();
}else if (Objects.equals(0, chatReqVO.getModelType())) {
// 自定义模型

View File

@ -127,7 +127,7 @@ public class FineTuningTaskSyncService {
try {
//获取检查点信息
//todo 模型工厂的功能有问题暂时写死
jobModelName = "Qwen2.5-0.5B-Instruct-147";
// jobModelName = "Qwen2.5-0.5B-Instruct-147";
String checkFileList = trainHttpService.getCheckFileList(hostUrl,jobModelName);
List<String> checkpoints = new ArrayList<>();
List<String> fileUrls = new ArrayList<>();