修复模型调优
This commit is contained in:
parent
56e4ba790f
commit
ff7a4a7e46
@ -194,8 +194,25 @@ public class AsyncModelAccessManualService {
|
||||
List<DatasetQuestionRespVO> datasetQuestionList = datasetQuestionService.getDatasetQuestionList(task.getDataset());
|
||||
try {
|
||||
if (!CollectionUtils.isAnyEmpty(datasetQuestionList)){
|
||||
String modelName;
|
||||
if (task.getModelType()==1){
|
||||
BaseModelDO baseModelDO = baseModelMapper.selectById(task.getModelService());
|
||||
if (baseModelDO != null){
|
||||
modelName = baseModelDO.getModelName();
|
||||
} else {
|
||||
modelName = "";
|
||||
}
|
||||
} else {
|
||||
ModelServiceDO modelServiceDO = modelServiceMapper.selectById(task.getModelService());
|
||||
if (modelServiceDO != null){
|
||||
modelName = modelServiceDO.getBaseModelName();
|
||||
} else {
|
||||
modelName = "";
|
||||
}
|
||||
}
|
||||
datasetQuestionList.forEach(item -> {
|
||||
ModelCompletionsReqVO modelCompletionsReqVO = new ModelCompletionsReqVO();
|
||||
modelCompletionsReqVO.setModel(modelName);
|
||||
ModelCompletionsReqVO.ModelCompletionsMessage message = new ModelCompletionsReqVO.ModelCompletionsMessage();
|
||||
if (item.getQuestion() != null){
|
||||
message.setContent(item.getQuestion());
|
||||
|
Loading…
x
Reference in New Issue
Block a user