增加Prompt模板

This commit is contained in:
zhangtao 2024-12-31 19:12:28 +08:00
parent 8c8274d2ee
commit 56621279b9

View File

@ -48,7 +48,8 @@ public class PromptTemplatesServiceImpl implements PromptTemplatesService {
public Long createPromptTemplates(PromptTemplatesSaveReqVO createReqVO) {
this.isNameDuplicate(createReqVO.getName());
PromptTemplatesDO promptTemplates = BeanUtils.toBean(createReqVO, PromptTemplatesDO.class);
promptTemplates.setTemplateType(2);
// 暂时先去掉这个逻辑演示用 -- zhangtao
// promptTemplates.setTemplateType(2);
String categoryName = this.dictDataApi.getDictDataLabel(Long.valueOf(createReqVO
.getTemplateCategory().toString()));
switch (categoryName) {