feat: add form input node (#2773)

* add node

* dispatch

* extract InputTypeConfig component

* question tip

* fix build

* fix

* fix
This commit is contained in:
heheer
2024-09-26 13:48:03 +08:00
committed by GitHub
parent edebfdf5ef
commit 1cf76ee7df
34 changed files with 1326 additions and 419 deletions

View File

@@ -142,6 +142,12 @@
"week.Wednesday": "Wednesday",
"workflow.Input guide": "Input Guide",
"workflow.file_url": "Document Link",
"workflow.form_input": "Form input",
"workflow.form_input_description_placeholder": "For example: \nAdd your information",
"workflow.form_input_result": "Full input result",
"workflow.form_input_result_tip": "An object of full result",
"workflow.form_input_tip": " This module can configure multiple inputs to guide users in entering specific content.",
"workflow.input_description_tip": "You can add a description to explain to users what they need to input",
"workflow.read_files": "Document Parsing",
"workflow.read_files_result": "Document Parsing Result",
"workflow.read_files_result_desc": "Original document text, consisting of file names and document content, separated by hyphens between multiple files.",

View File

@@ -24,6 +24,7 @@
"Rename": "Rename",
"Resume": "Resume",
"Running": "Running",
"Submit": "Submit",
"UnKnow": "Unknown",
"Warning": "Warning",
"add_new": "Add New",
@@ -82,6 +83,7 @@
"common.Add": "Add",
"common.Add New": "Add New",
"common.Add Success": "Added Successfully",
"common.Add_new_input": "Add new input",
"common.All": "All",
"common.Cancel": "Cancel",
"common.Choose": "Choose",
@@ -93,6 +95,7 @@
"common.Confirm Move": "Move Here",
"common.Confirm Update": "Confirm Update",
"common.Confirm to leave the page": "Confirm to Leave This Page?",
"common.Continue_Adding": "Continue adding",
"common.Copy": "Copy",
"common.Copy Successful": "Copied Successfully",
"common.Copy_failed": "Copy Failed, Please Copy Manually",
@@ -426,6 +429,11 @@
"core.chat.response.Read complete response tips": "Click to View Detailed Process",
"core.chat.response.Tool call tokens": "Tool Call Tokens Consumption",
"core.chat.response.context total length": "Total Context Length",
"core.chat.response.form_input_result": "Form input result",
"core.chat.response.loop_input": "Loop Input Array",
"core.chat.response.loop_input_element": "Loop Input Element",
"core.chat.response.loop_output": "Loop Output Array",
"core.chat.response.loop_output_element": "Loop Output Element",
"core.chat.response.module cq": "Question Classification List",
"core.chat.response.module cq result": "Classification Result",
"core.chat.response.module extract description": "Extract Background Description",
@@ -448,10 +456,6 @@
"core.chat.response.text output": "Text Output",
"core.chat.response.update_var_result": "Variable Update Result (Displays Multiple Variable Update Results in Order)",
"core.chat.response.user_select_result": "User Selection Result",
"core.chat.response.loop_input": "Loop Input Array",
"core.chat.response.loop_output": "Loop Output Array",
"core.chat.response.loop_input_element": "Loop Input Element",
"core.chat.response.loop_output_element": "Loop Output Element",
"core.chat.retry": "Regenerate",
"core.chat.tts.Stop Speech": "Stop",
"core.common.tip.leave page": "Content has been modified, confirm to leave the page?",
@@ -701,6 +705,10 @@
"core.module.input.label.chat history": "Chat History",
"core.module.input.label.user question": "User Question",
"core.module.input.placeholder.Classify background": "For example:\n1. AIGC (Artificial Intelligence Generated Content) refers to the use of artificial intelligence technology to automatically or semi-automatically generate digital content, such as text, images, music, videos, etc.\n2. AIGC technology includes but is not limited to natural language processing, computer vision, machine learning, and deep learning. These technologies can create new content or modify existing content to meet specific creative, educational, entertainment, or informational needs.",
"core.module.input_description": "Description",
"core.module.input_form": "Input form",
"core.module.input_name": "Input name",
"core.module.input_type": "Input type",
"core.module.laf.Select laf function": "Select LAF Function",
"core.module.output.description.Ai response content": "Will be triggered after the stream reply is completed",
"core.module.output.description.New context": "Splice the current reply content with the history records and return it as the new context",
@@ -729,6 +737,7 @@
"core.module.template.system_config_info": "Can configure application system parameters",
"core.module.template.work_start": "Process starts",
"core.module.templates.Load plugin error": "Failed to Load Plugin",
"core.module.variable add option": "Add Option",
"core.module.variable.Custom type": "Custom Variable",
"core.module.variable.add option": "Add Option",
"core.module.variable.input type": "Text",
@@ -743,7 +752,6 @@
"core.module.variable.variable option is required": "Options Cannot Be All Empty",
"core.module.variable.variable option is value is required": "Option Content Cannot Be Empty",
"core.module.variable.variable options": "Options",
"core.module.variable add option": "Add Option",
"core.plugin.Custom headers": "Custom Request Headers",
"core.plugin.Free": "This plugin does not consume points",
"core.plugin.Get Plugin Module Detail Failed": "Failed to Retrieve Plugin Information",
@@ -841,12 +849,12 @@
"dataset.deleteFolderTips": "Confirm to Delete This Folder and All Its Contained Datasets? Data Cannot Be Recovered After Deletion, Please Confirm!",
"dataset.test.noResult": "No Search Results",
"error.Create failed": "Create failed",
"error.code_error": "Verification code error",
"error.fileNotFound": "File not found~",
"error.inheritPermissionError": "Inherit permission Error",
"error.missingParams": "Insufficient parameters",
"error.upload_file_error_filename": "{{name}} Upload Failed",
"error.username_empty": "Account cannot be empty",
"error.code_error": "Verification code error",
"extraction_results": "Extraction Results",
"field_name": "Field Name",
"free": "Free",
@@ -1187,4 +1195,4 @@
"verification": "Verification",
"xx_search_result": "{{key}} Search Results",
"yes": "Yes"
}
}

View File

@@ -143,6 +143,12 @@
"week.Wednesday": "星期三",
"workflow.Input guide": "填写说明",
"workflow.file_url": "文档链接",
"workflow.form_input": "表单输入",
"workflow.form_input_description_placeholder": "例如:\n补充您的信息",
"workflow.form_input_result": "完整输入结果",
"workflow.form_input_result_tip": "一个包含完整结果的对象",
"workflow.form_input_tip": "该模块可以配置多种输入,引导用户输入特定内容。",
"workflow.input_description_tip": "你可以添加一段说明文字,用以向用户说明需要输入的内容",
"workflow.read_files": "文档解析",
"workflow.read_files_result": "文档解析结果",
"workflow.read_files_result_desc": "文档原文,由文件名和文档内容组成,多个文件之间通过横线隔开。",

View File

@@ -24,6 +24,7 @@
"Rename": "重命名",
"Resume": "恢复",
"Running": "运行中",
"Submit": "提交",
"UnKnow": "未知",
"Warning": "提示",
"add_new": "新增",
@@ -82,6 +83,7 @@
"common.Add": "添加",
"common.Add New": "新增",
"common.Add Success": "添加成功",
"common.Add_new_input": "新增输入",
"common.All": "全部",
"common.Cancel": "取消",
"common.Choose": "选择",
@@ -93,6 +95,7 @@
"common.Confirm Move": "移动到这",
"common.Confirm Update": "确认更新",
"common.Confirm to leave the page": "确认离开该页面?",
"common.Continue_Adding": "继续添加",
"common.Copy": "复制",
"common.Copy Successful": "复制成功",
"common.Copy_failed": "复制失败,请手动复制",
@@ -426,6 +429,7 @@
"core.chat.response.Read complete response tips": "点击查看详细流程",
"core.chat.response.Tool call tokens": "工具调用 tokens 消耗",
"core.chat.response.context total length": "上下文总长度",
"core.chat.response.form_input_result": "表单输入结果",
"core.chat.response.loop_input": "输入数组",
"core.chat.response.loop_input_element": "输入数组元素",
"core.chat.response.loop_output": "输出数组",
@@ -701,6 +705,10 @@
"core.module.input.label.chat history": "聊天记录",
"core.module.input.label.user question": "用户问题",
"core.module.input.placeholder.Classify background": "例如:\n1. AIGC人工智能生成内容是指使用人工智能技术自动或半自动地生成数字内容如文本、图像、音乐、视频等。\n2. AIGC 技术包括但不限于自然语言处理、计算机视觉、机器学习和深度学习。这些技术可以创建新内容或修改现有内容,以满足特定的创意、教育、娱乐或信息需求。",
"core.module.input_description": "输入描述",
"core.module.input_form": "输入字段",
"core.module.input_name": "输入名",
"core.module.input_type": "输入类型",
"core.module.laf.Select laf function": "选择 laf 函数",
"core.module.output.description.Ai response content": "将在 stream 回复完毕后触发",
"core.module.output.description.New context": "将本次回复内容拼接上历史记录,作为新的上下文返回",
@@ -730,6 +738,7 @@
"core.module.template.system_config_info": "可以配置应用的系统参数",
"core.module.template.work_start": "流程开始",
"core.module.templates.Load plugin error": "加载插件失败",
"core.module.variable add option": "添加选项",
"core.module.variable.Custom type": "自定义变量",
"core.module.variable.add option": "添加选项",
"core.module.variable.input type": "文本",
@@ -744,7 +753,6 @@
"core.module.variable.variable option is required": "选项不能全空",
"core.module.variable.variable option is value is required": "选项内容不能为空",
"core.module.variable.variable options": "选项",
"core.module.variable add option": "添加选项",
"core.plugin.Custom headers": "自定义请求头",
"core.plugin.Free": "该插件无需积分消耗~",
"core.plugin.Get Plugin Module Detail Failed": "加载插件异常",
@@ -842,12 +850,12 @@
"dataset.deleteFolderTips": "确认删除该文件夹及其包含的所有知识库?删除后数据无法恢复,请确认!",
"dataset.test.noResult": "搜索结果为空",
"error.Create failed": "创建失败",
"error.code_error": "验证码错误",
"error.fileNotFound": "文件找不到了~",
"error.inheritPermissionError": "权限继承错误",
"error.missingParams": "参数缺失",
"error.upload_file_error_filename": "{{name}} 上传失败",
"error.username_empty": "账号不能为空",
"error.code_error": "验证码错误",
"extraction_results": "提取结果",
"field_name": "字段名",
"free": "免费",