diff --git a/app/service/Interaction/templateStoryService.ts b/app/service/Interaction/templateStoryService.ts index c946d4b..754cf41 100644 --- a/app/service/Interaction/templateStoryService.ts +++ b/app/service/Interaction/templateStoryService.ts @@ -69,12 +69,21 @@ export const useTemplateStoryServiceHook = (): UseTemplateStoryService => { const templates = await templateStoryUseCase.getTemplateStoryList(); templates.forEach(template => { - if (template.template_id === '69') { + if (template.id === 'f944abad-f42b-4899-b54a-a6beb9d27805') { template.freeInputItem = { user_tips: "How is coffee made?", constraints: "", free_input_text: "" }; + template.storyRole = []; + } + if (template.id === 'e7438cd8-a23d-4974-8cde-13b5671b410c') { + template.freeInputItem = { + user_tips: "Input an English word you wanna learn", + constraints: "", + free_input_text: "" + }; + template.storyItem = []; } }); diff --git a/components/ChatInputBox/ChatInputBox.tsx b/components/ChatInputBox/ChatInputBox.tsx index 7d18121..861d103 100644 --- a/components/ChatInputBox/ChatInputBox.tsx +++ b/components/ChatInputBox/ChatInputBox.tsx @@ -672,6 +672,36 @@ const RenderTemplateStoryMode = ({ )} + {/** 自由输入文字 */} + {(selectedTemplate?.freeInputItem) && ( +
+

+ input Configuration +

+