mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 07:00:47 +00:00
fix: node copy, debug variables, auto-execution (#5664)
* fix debug variables * auto execute condition * fix autoTTSResponse * node copy * memory debug nodes * doc * yuque doc * fix: debug * img * i18n --------- Co-authored-by: archer <545436317@qq.com>
This commit is contained in:
@@ -141,6 +141,7 @@ export const runWorkflow = async (data: RunWorkflowProps): Promise<DispatchFlowR
|
||||
flowUsages: [],
|
||||
debugResponse: {
|
||||
memoryEdges: [],
|
||||
memoryNodes: [],
|
||||
entryNodeIds: [],
|
||||
nodeResponses: {},
|
||||
skipNodeQueue: []
|
||||
@@ -850,6 +851,7 @@ export const runWorkflow = async (data: RunWorkflowProps): Promise<DispatchFlowR
|
||||
...edge,
|
||||
status: entryNodeIds.includes(edge.target) ? 'active' : edge.status
|
||||
})),
|
||||
memoryNodes: Array.from(this.runtimeNodesMap.values()),
|
||||
entryNodeIds,
|
||||
nodeResponses: this.debugNodeResponses,
|
||||
skipNodeQueue: Array.from(this.skipNodeQueue.values()).map((item) => ({
|
||||
|
@@ -15,6 +15,7 @@ import type { ChatNodeUsageType } from '@fastgpt/global/support/wallet/bill/type
|
||||
|
||||
export type WorkflowDebugResponse = {
|
||||
memoryEdges: RuntimeEdgeItemType[];
|
||||
memoryNodes: RuntimeNodeItemType[];
|
||||
entryNodeIds: string[]; // Next step entry nodes
|
||||
nodeResponses: Record<
|
||||
string,
|
||||
|
@@ -707,7 +707,6 @@
|
||||
"core.workflow.Custom outputs": "Custom Outputs",
|
||||
"core.workflow.Dataset quote": "Dataset Quote",
|
||||
"core.workflow.Debug": "Debug",
|
||||
"core.workflow.Debug Node": "Debug Mode",
|
||||
"core.workflow.Failed": "Run Failed",
|
||||
"core.workflow.Not intro": "This Node Has No Introduction",
|
||||
"core.workflow.Run": "Run",
|
||||
|
@@ -46,6 +46,7 @@
|
||||
"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.",
|
||||
"dataset_quote_role_user_option_desc": "Strong constraints take precedence",
|
||||
"debug_test": "Debug debugging",
|
||||
"dynamic_input_description": "Receive the output value of the previous node as a variable, which can be used by Laf request parameters.",
|
||||
"edit_input": "Edit Input",
|
||||
"edit_output": "Edit output",
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"AI_input_is_empty": "传入AI 节点的内容为空",
|
||||
"AI_input_is_empty": "传入 AI 节点的内容为空",
|
||||
"Delete_all": "清空词库",
|
||||
"LLM_model_response_empty": "模型流响应为空,请检查模型流输出是否正常",
|
||||
"ai_reasoning": "思考过程",
|
||||
|
@@ -707,7 +707,6 @@
|
||||
"core.workflow.Custom outputs": "自定义输出",
|
||||
"core.workflow.Dataset quote": "知识库引用",
|
||||
"core.workflow.Debug": "调试",
|
||||
"core.workflow.Debug Node": "Debug 模式",
|
||||
"core.workflow.Failed": "运行失败",
|
||||
"core.workflow.Not intro": "这个节点没有介绍~",
|
||||
"core.workflow.Run": "运行",
|
||||
|
@@ -46,6 +46,7 @@
|
||||
"dataset_quote_role_system_option_desc": "历史记录连贯优先(推荐)",
|
||||
"dataset_quote_role_tip": "设置为 System 时,将会把知识库引用内容放置到 system 消息中,可以确保历史记录的连贯性,但约束效果可能不佳,需要多调试。\n设置为 User 时,将会把知识库引用内容放置到 user 消息中,并且需要指定 {{question}} 变量位置。会对历史记录连贯性有一定影响,但通常约束效果更优。",
|
||||
"dataset_quote_role_user_option_desc": "强约束优先",
|
||||
"debug_test": "Debug 调试",
|
||||
"dynamic_input_description": "接收前方节点的输出值作为变量,这些变量可以被 Laf 请求参数使用。",
|
||||
"edit_input": "编辑输入",
|
||||
"edit_output": "编辑输出",
|
||||
|
@@ -706,7 +706,6 @@
|
||||
"core.workflow.Custom outputs": "自訂輸出",
|
||||
"core.workflow.Dataset quote": "知識庫引用",
|
||||
"core.workflow.Debug": "除錯",
|
||||
"core.workflow.Debug Node": "除錯模式",
|
||||
"core.workflow.Failed": "執行失敗",
|
||||
"core.workflow.Not intro": "此節點沒有介紹",
|
||||
"core.workflow.Run": "執行",
|
||||
|
@@ -46,6 +46,7 @@
|
||||
"dataset_quote_role_system_option_desc": "歷史紀錄連貫優先(建議)",
|
||||
"dataset_quote_role_tip": "設定為 System 時,會將知識庫引用內容放置到系統訊息中,可以確保歷史紀錄的連貫性,但約束效果可能不佳。\n設定為 User 時,會將知識庫引用內容放置到使用者訊息中,並且需要指定 {{question}} 變數位置。會對歷史紀錄連貫性有一定影響,但通常約束效果較佳。",
|
||||
"dataset_quote_role_user_option_desc": "強約束優先",
|
||||
"debug_test": "Debug 調試",
|
||||
"dynamic_input_description": "接收前一個節點的輸出值作為變數,這些變數可以被 Laf 請求參數使用。",
|
||||
"edit_input": "編輯輸入",
|
||||
"edit_output": "編輯輸出",
|
||||
|
Reference in New Issue
Block a user