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