mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-13 21:27:19 +08:00
aiLlmConfig.setType(LlmTypeEnum.lookupLiteral(llmVm.getType()));
This commit is contained in:
@@ -58,6 +58,7 @@ public class LlmService {
|
||||
BeanUtils.copyProperties(llmVm, aiLlmConfig);
|
||||
AiLlmConfig byId = llmRepository.findById(llmVm.getId());
|
||||
aiLlmConfig.setCode(Objects.requireNonNull(byId).getCode());
|
||||
aiLlmConfig.setType(LlmTypeEnum.lookupLiteral(llmVm.getType()));
|
||||
llmRepository.merge(aiLlmConfig);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user