增加Prompt模板
This commit is contained in:
parent
8c8274d2ee
commit
56621279b9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user