修复推理
This commit is contained in:
parent
f558be937e
commit
93e79f4f48
@ -135,11 +135,12 @@ public class ConversationServiceImpl implements ConversationService {
|
||||
chatReqVO.setSystemPrompt(application.getPrompt());
|
||||
}
|
||||
}
|
||||
if (Objects.equals(1, chatReqVO.getModelType())){
|
||||
/* if (Objects.equals(1, chatReqVO.getModelType())){
|
||||
return publicModelChat(chatReqVO);
|
||||
}else {
|
||||
return privateModelChat(chatReqVO);
|
||||
}
|
||||
}*/
|
||||
return publicModelChat(chatReqVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -167,6 +168,15 @@ public class ConversationServiceImpl implements ConversationService {
|
||||
throw exception(BASE_MODEL_NOT_EXISTS);
|
||||
}
|
||||
model = baseModelDO.getAigcModelName();
|
||||
}else if (Objects.equals(0, chatReqVO.getModelType())) {
|
||||
// 自定义模型
|
||||
ModelServiceDO modelServiceDO = modelServiceMapper.selectById(chatReqVO.getModelId());
|
||||
if (modelServiceDO == null) {
|
||||
throw exception(MODEL_SERVICE_NOT_EXISTS);
|
||||
}
|
||||
model = modelServiceDO.getBaseModelName();
|
||||
}else {
|
||||
throw exception(BASE_MODEL_NOT_EXISTS);
|
||||
}
|
||||
|
||||
List<ModelCompletionsReqVO.ModelCompletionsMessage> messages = new ArrayList<>();
|
||||
|
@ -36,7 +36,9 @@ public class FineTuningTaskSyncService {
|
||||
if(Objects.equals(fineTuningTaskDO.getStatus(), FinetuningTaskStatusEnum.TRAINING.getStatus())
|
||||
|| Objects.equals(fineTuningTaskDO.getStatus(), FinetuningTaskStatusEnum.WAITING.getStatus())){
|
||||
AigcFineTuningDetailRespVO resp = trainHttpService.finetuningDetail(new HashMap<>(), fineTuningTaskDO.getJobId());
|
||||
|
||||
if (resp == null){
|
||||
continue;
|
||||
}
|
||||
FineTuningTaskDO updateObj = new FineTuningTaskDO();
|
||||
Integer status = FineTuningTaskStatusConstants.getStatus(resp.getTrainStatus());
|
||||
if(status != null){
|
||||
|
Loading…
x
Reference in New Issue
Block a user