mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
Plugin support select file (#2756)
* feat: plugin support upload files (#2716) * feat: plugin support file upload * file history * fix history & chattest * chore: code * plugin config icon & file preview padding * perf: undefined fn * fix: plugin file numbers & plugin template add config (#2743) * perf: run plugin without human message (#2749) * perf: run plugin without human message * fix build * fix build * rename node * perf: ui * perf: plugin rerun with last params & plugin log add file (#2755) * perf: plugin run with last params & plugin log add file * delete console * perf: plugin refresh code * fix: ts --------- Co-authored-by: heheer <heheer@sealos.io>
This commit is contained in:
@@ -129,6 +129,7 @@ export const iconPaths = {
|
||||
'core/chat/feedback/goodLight': () => import('./icons/core/chat/feedback/goodLight.svg'),
|
||||
'core/chat/fileSelect': () => import('./icons/core/chat/fileSelect.svg'),
|
||||
'core/chat/finishSpeak': () => import('./icons/core/chat/finishSpeak.svg'),
|
||||
'core/chat/imgSelect': () => import('./icons/core/chat/imgSelect.svg'),
|
||||
'core/chat/quoteFill': () => import('./icons/core/chat/quoteFill.svg'),
|
||||
'core/chat/quoteSign': () => import('./icons/core/chat/quoteSign.svg'),
|
||||
'core/chat/recordFill': () => import('./icons/core/chat/recordFill.svg'),
|
||||
|
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
||||
<path d="M5.95235 7.67193C6.57367 7.67193 7.07735 7.16825 7.07735 6.54693C7.07735 5.92561 6.57367 5.42193 5.95235 5.42193C5.33103 5.42193 4.82735 5.92561 4.82735 6.54693C4.82735 7.16825 5.33103 7.67193 5.95235 7.67193Z"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 6.58335C1.5 5.07121 1.5 4.31514 1.79428 3.73758C2.05314 3.22954 2.46619 2.81649 2.97423 2.55763C3.55179 2.26335 4.30786 2.26335 5.82 2.26335H12.18C13.6921 2.26335 14.4482 2.26335 15.0258 2.55763C15.5338 2.81649 15.9469 3.22954 16.2057 3.73758C16.5 4.31514 16.5 5.07121 16.5 6.58335V11.4166C16.5 12.9288 16.5 13.6848 16.2057 14.2624C15.9469 14.7704 15.5338 15.1835 15.0258 15.4424C14.4482 15.7366 13.6921 15.7366 12.18 15.7366H5.82C4.30786 15.7366 3.55179 15.7366 2.97423 15.4424C2.46619 15.1835 2.05314 14.7704 1.79428 14.2624C1.5 13.6848 1.5 12.9288 1.5 11.4166V6.58335ZM5.82 3.76335H12.18C12.9608 3.76335 13.4562 3.76452 13.8312 3.79516C14.1887 3.82436 14.3027 3.8727 14.3448 3.89414C14.5706 4.00919 14.7542 4.19277 14.8692 4.41856C14.8906 4.46064 14.939 4.57468 14.9682 4.93214C14.9988 5.30712 15 5.80253 15 6.58335V11.4166C15 11.4257 15 11.4347 15 11.4436L11.3619 7.80557C11.069 7.51268 10.5942 7.51268 10.3013 7.80557L3.92897 14.1779C3.75496 14.1515 3.68592 14.1215 3.65521 14.1058C3.42942 13.9908 3.24584 13.8072 3.13079 13.5814C3.10935 13.5393 3.06101 13.4253 3.0318 13.0678C3.00117 12.6929 3 12.1975 3 11.4166V6.58335C3 5.80253 3.00117 5.30713 3.0318 4.93214C3.06101 4.57468 3.10935 4.46064 3.13079 4.41856C3.24584 4.19277 3.42942 4.00919 3.65521 3.89414C3.69729 3.8727 3.81132 3.82436 4.16879 3.79516C4.54377 3.76452 5.03918 3.76335 5.82 3.76335ZM10.8316 9.39656L5.99153 14.2366H12.18C12.9608 14.2366 13.4562 14.2355 13.8312 14.2048C14.1887 14.1756 14.3027 14.1273 14.3448 14.1058C14.5706 13.9908 14.7542 13.8072 14.8692 13.5814C14.8784 13.5633 14.8927 13.5318 14.9082 13.4732L10.8316 9.39656Z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
@@ -191,4 +191,4 @@
|
||||
"user_select": "User Selection",
|
||||
"user_select_tip": "This module can configure multiple options for selection during the dialogue. Different options can lead to different workflow branches."
|
||||
}
|
||||
}
|
||||
}
|
@@ -15,6 +15,8 @@
|
||||
"delete_all_input_guide_confirm": "Are you sure you want to clear the input guide lexicon?",
|
||||
"empty_directory": "This directory is empty~",
|
||||
"file_amount_over": "Exceeded maximum file quantity {{max}}",
|
||||
"file_input": "File input",
|
||||
"file_input_tip": "You can obtain the link to the corresponding file through the \"File Link\" of the [Plug-in Start] node",
|
||||
"in_progress": "In Progress",
|
||||
"input_guide": "Input Guide",
|
||||
"input_guide_lexicon": "Lexicon",
|
||||
@@ -32,9 +34,12 @@
|
||||
"response": {
|
||||
"node_inputs": "Node Inputs"
|
||||
},
|
||||
"select_file": "Select File",
|
||||
"select_img": "Select Image",
|
||||
"select": "Select",
|
||||
"select_file": "Upload File",
|
||||
"select_file_img": "Upload file / image",
|
||||
"select_img": "Upload Image",
|
||||
"stream_output": "Stream Output",
|
||||
"upload": "Upload",
|
||||
"view_citations": "View References",
|
||||
"web_site_sync": "Web Site Sync"
|
||||
}
|
||||
}
|
@@ -810,7 +810,6 @@
|
||||
"QueryExtension": {
|
||||
"placeholder": "For example:\nQuestions about the introduction and use of Python.\nThe current conversation is related to the game 'GTA5'."
|
||||
},
|
||||
"Quote prompt setting": "Quote Prompt Configuration",
|
||||
"Select app": "Select App",
|
||||
"Setting quote prompt": "Configure Quote Prompt",
|
||||
"Variable": "Global Variable",
|
||||
@@ -899,7 +898,6 @@
|
||||
"empty_plugin": "Blank plugin",
|
||||
"empty_workflow": "Blank workflow",
|
||||
"http body placeholder": "Same syntax as Apifox",
|
||||
"self_input": "Custom plug-in input",
|
||||
"self_output": "Custom plug-in output",
|
||||
"system_config": "System configuration",
|
||||
"system_config_info": "Can configure application system parameters",
|
||||
@@ -1384,10 +1382,6 @@
|
||||
},
|
||||
"tag_list": "Tag List",
|
||||
"team_tag": "Team Tag",
|
||||
"template": {
|
||||
"Quote Content Tip": "You can customize the structure of the quoted content to better adapt to different scenarios. You can use some variables to configure the template:\n{{q}} - Search content, {{a}} - Expected content, {{source}} - Source, {{sourceId}} - Source file name, {{index}} - The nth quote, they are all optional. Below is the default value:\n{{default}}",
|
||||
"Quote Prompt Tip": "You can use {{quote}} to insert the quote content template, and use {{question}} to insert the question. Below is the default value:\n{{default}}"
|
||||
},
|
||||
"textarea_variable_picker_tip": "Enter \"/\" to select a variable",
|
||||
"tool_field": "Tool Field Parameter Configuration",
|
||||
"undefined_var": "Referenced an undefined variable, add it automatically?",
|
||||
@@ -1490,4 +1484,4 @@
|
||||
"verification": "Verification",
|
||||
"xx_search_result": "{{key}} Search Results",
|
||||
"yes": "Yes"
|
||||
}
|
||||
}
|
@@ -2,7 +2,6 @@
|
||||
"Array_element": "Array element",
|
||||
"Code": "Code",
|
||||
"Quote_prompt_setting": "Quote prompt",
|
||||
"about_xxx_question": "Question regarding xxx",
|
||||
"add_new_input": "Add New Input",
|
||||
"append_application_reply_to_history_as_new_context": "Append the application's reply to the history as new context",
|
||||
"application_call": "Application Call",
|
||||
@@ -28,7 +27,6 @@
|
||||
"create_link_error": "Error creating link",
|
||||
"custom_feedback": "Custom Feedback",
|
||||
"custom_input": "Custom Input",
|
||||
"custom_plugin_output": "Custom Plugin Output",
|
||||
"dataset_quote_role": "Role",
|
||||
"dataset_quote_role_system_option_desc": "Historical records should be consistent first (recommended)",
|
||||
"dataset_quote_role_tip": "When set to System, the knowledge base reference content will be placed in the system message, which can ensure the continuity of the history record, but the constraint effect may not be good.\n\nWhen set to User, the knowledge base reference content will be placed in the user message, and the {{question}} variable location needs to be specified. \nIt will have a certain impact on the consistency of historical records, but usually the constraint effect is better.",
|
||||
@@ -57,7 +55,6 @@
|
||||
"full_response_data": "Full Response Data",
|
||||
"greater_than": "Greater Than",
|
||||
"greater_than_or_equal_to": "Greater Than or Equal To",
|
||||
"greeting": "Greeting",
|
||||
"http_raw_response_description": "Raw HTTP response. Only accepts string or JSON type response data.",
|
||||
"http_request": "HTTP Request",
|
||||
"http_request_error_info": "HTTP request error information, returns empty on success",
|
||||
@@ -105,7 +102,6 @@
|
||||
"only_the_reference_type_is_supported": "Only reference type is supported",
|
||||
"optional_value_type": "Optional Value Type",
|
||||
"optional_value_type_tip": "You can specify one or more data types. When dynamically adding fields, users can only select the configured types.",
|
||||
"other_questions": "Other Questions",
|
||||
"pan_priority": "Touchpad first",
|
||||
"pass_returned_object_as_output_to_next_nodes": "Pass the object returned in the code as output to the next nodes. The variable name needs to correspond to the return key.",
|
||||
"plugin": {
|
||||
@@ -148,6 +144,8 @@
|
||||
"tool_call_intro": "Automatically select one or more functional blocks for calling through the AI model, or call plugins.",
|
||||
"workflow_start": "Workflow Start"
|
||||
},
|
||||
"template.plugin_output": "Plugin output",
|
||||
"template.plugin_start": "Plugin start",
|
||||
"text_concatenation": "Text Concatenation",
|
||||
"text_content_extraction": "Text Content Extraction",
|
||||
"text_to_extract": "Text to Extract",
|
||||
@@ -167,4 +165,4 @@
|
||||
"Team cloud": "Team Cloud",
|
||||
"exit_tips": "Your changes have not been saved. 'Exit directly' will not save your edits."
|
||||
}
|
||||
}
|
||||
}
|
@@ -191,4 +191,4 @@
|
||||
"manage": "写权限基础上,可配置发布渠道、查看对话日志、分配该应用权限"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -15,6 +15,8 @@
|
||||
"delete_all_input_guide_confirm": "确定要清空输入引导词库吗?",
|
||||
"empty_directory": "这个目录已经没东西可选了~",
|
||||
"file_amount_over": "超出最大文件数量 {{max}}",
|
||||
"file_input": "系统文件",
|
||||
"file_input_tip": "可通过【插件开始】节点的“文件链接”获取对应文件的链接",
|
||||
"in_progress": "进行中",
|
||||
"input_guide": "输入引导",
|
||||
"input_guide_lexicon": "词库",
|
||||
@@ -32,9 +34,12 @@
|
||||
"response": {
|
||||
"node_inputs": "节点输入"
|
||||
},
|
||||
"select_file": "选择文件",
|
||||
"select_img": "选择图片",
|
||||
"select": "选择",
|
||||
"select_file": "上传文件",
|
||||
"select_file_img": "上传文件/图片",
|
||||
"select_img": "上传图片",
|
||||
"stream_output": "流输出",
|
||||
"upload": "上传",
|
||||
"view_citations": "查看引用",
|
||||
"web_site_sync": "Web站点同步"
|
||||
}
|
||||
}
|
@@ -810,7 +810,6 @@
|
||||
"QueryExtension": {
|
||||
"placeholder": "例如:\n关于 Python 的介绍和使用等问题。\n当前对话与游戏《GTA5》有关。"
|
||||
},
|
||||
"Quote prompt setting": "引用提示词配置",
|
||||
"Select app": "选择应用",
|
||||
"Setting quote prompt": "配置引用提示词",
|
||||
"Variable": "全局变量",
|
||||
@@ -899,8 +898,7 @@
|
||||
"empty_plugin": "空白插件",
|
||||
"empty_workflow": "空白工作流",
|
||||
"http body placeholder": "与 Apifox 相同的语法",
|
||||
"self_input": "自定义插件输入",
|
||||
"self_output": "自定义插件输出",
|
||||
"self_output": "插件输出",
|
||||
"system_config": "系统配置",
|
||||
"system_config_info": "可以配置应用的系统参数",
|
||||
"work_start": "流程开始"
|
||||
@@ -1384,10 +1382,6 @@
|
||||
},
|
||||
"tag_list": "标签列表",
|
||||
"team_tag": "团队标签",
|
||||
"template": {
|
||||
"Quote Content Tip": "可以自定义引用内容的结构,以更好的适配不同场景。可以使用一些变量来进行模板配置:\n{{q}} - 检索内容,{{a}} - 预期内容,{{source}} - 来源,{{sourceId}} - 来源文件名,{{index}} - 第 n 个引用,他们都是可选的,下面是默认值:\n{{default}}",
|
||||
"Quote Prompt Tip": "可以用 {{quote}} 来插入引用内容模板,使用 {{question}} 来插入问题。下面是默认值:\n{{default}}"
|
||||
},
|
||||
"textarea_variable_picker_tip": "输入\"/\"可选择变量",
|
||||
"tool_field": "工具字段参数配置",
|
||||
"undefined_var": "引用了未定义的变量,是否自动添加?",
|
||||
@@ -1490,4 +1484,4 @@
|
||||
"verification": "验证",
|
||||
"xx_search_result": "{{key}} 的搜索结果",
|
||||
"yes": "是"
|
||||
}
|
||||
}
|
@@ -2,7 +2,6 @@
|
||||
"Array_element": "数组元素",
|
||||
"Code": "代码",
|
||||
"Quote_prompt_setting": "引用提示词配置",
|
||||
"about_xxx_question": "关于 xxx 的问题",
|
||||
"add_new_input": "新增输入",
|
||||
"append_application_reply_to_history_as_new_context": "将该应用回复内容拼接到历史记录中,作为新的上下文返回",
|
||||
"application_call": "应用调用",
|
||||
@@ -28,7 +27,6 @@
|
||||
"create_link_error": "创建链接异常",
|
||||
"custom_feedback": "自定义反馈",
|
||||
"custom_input": "自定义输入",
|
||||
"custom_plugin_output": "自定义插件输出",
|
||||
"dataset_quote_role": "角色",
|
||||
"dataset_quote_role_system_option_desc": "历史记录连贯优先(推荐)",
|
||||
"dataset_quote_role_tip": "设置为 System 时,将会把知识库引用内容放置到 system 消息中,可以确保历史记录的连贯性,但约束效果可能不佳,需要多调试。\n设置为 User 时,将会把知识库引用内容放置到 user 消息中,并且需要指定 {{question}} 变量位置。会对历史记录连贯性有一定影响,但通常约束效果更优。",
|
||||
@@ -57,7 +55,6 @@
|
||||
"full_response_data": "完整响应数据",
|
||||
"greater_than": "大于",
|
||||
"greater_than_or_equal_to": "大于等于",
|
||||
"greeting": "打招呼",
|
||||
"http_raw_response_description": "HTTP请求的原始响应。只能接受字符串或JSON类型响应数据。",
|
||||
"http_request": "HTTP 请求",
|
||||
"http_request_error_info": "HTTP请求错误信息,成功时返回空",
|
||||
@@ -111,7 +108,6 @@
|
||||
"only_the_reference_type_is_supported": "仅支持引用类型",
|
||||
"optional_value_type": "可选的数据类型",
|
||||
"optional_value_type_tip": "可以指定 1 个或多个数据类型,用户在动态添加字段时,仅可选择配置的类型",
|
||||
"other_questions": "其他问题",
|
||||
"pan_priority": "触摸板优先",
|
||||
"pass_returned_object_as_output_to_next_nodes": "将代码中 return 的对象作为输出,传递给后续的节点。变量名需要对应 return 的 key",
|
||||
"plugin": {
|
||||
@@ -154,6 +150,8 @@
|
||||
"tool_call_intro": "通过AI模型自动选择一个或多个功能块进行调用,也可以对插件进行调用。",
|
||||
"workflow_start": "流程开始"
|
||||
},
|
||||
"template.plugin_output": "插件输出",
|
||||
"template.plugin_start": "插件开始",
|
||||
"text_concatenation": "文本拼接",
|
||||
"text_content_extraction": "文本内容提取",
|
||||
"text_to_extract": "需要提取的文本",
|
||||
@@ -173,4 +171,4 @@
|
||||
"Team cloud": "团队云端",
|
||||
"exit_tips": "您的更改尚未保存,「直接退出」将不会保存您的编辑记录。"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user