From 62b8869ccb884e36e511bfe233f7f322e791851f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Sat, 28 Dec 2024 14:33:29 +0800 Subject: [PATCH 1/5] test commit --- api/services/tools/api_tools_manage_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/tools/api_tools_manage_service.py b/api/services/tools/api_tools_manage_service.py index 0e3bd3a7b83c68..8efb03af3f955b 100644 --- a/api/services/tools/api_tools_manage_service.py +++ b/api/services/tools/api_tools_manage_service.py @@ -417,7 +417,7 @@ def test_api_tool_preview( try: provider_controller.validate_credentials_format(credentials) - # get tool + tool = provider_controller.get_tool(tool_name) runtime_tool = tool.fork_tool_runtime( runtime={ From 5b8a8746c43468f6564533b35b8df06b1fd8b443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Sat, 28 Dec 2024 14:35:58 +0800 Subject: [PATCH 2/5] test commit --- api/services/tools/api_tools_manage_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/tools/api_tools_manage_service.py b/api/services/tools/api_tools_manage_service.py index 8efb03af3f955b..d0bb67ee705053 100644 --- a/api/services/tools/api_tools_manage_service.py +++ b/api/services/tools/api_tools_manage_service.py @@ -417,7 +417,7 @@ def test_api_tool_preview( try: provider_controller.validate_credentials_format(credentials) - + # get tool tool = provider_controller.get_tool(tool_name) runtime_tool = tool.fork_tool_runtime( runtime={ From b27f6ccc819f1c72724887ee366443336fb00427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Tue, 31 Dec 2024 16:05:01 +0800 Subject: [PATCH 3/5] fix draft run single node can't get env variable --- api/core/workflow/workflow_entry.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/core/workflow/workflow_entry.py b/api/core/workflow/workflow_entry.py index b14c6fafbd9fdc..a8150753e9f97a 100644 --- a/api/core/workflow/workflow_entry.py +++ b/api/core/workflow/workflow_entry.py @@ -238,6 +238,10 @@ def mapping_user_inputs_to_variable_pool( variable_selector ): raise ValueError(f"Variable key {node_variable} not found in user inputs.") + + # environment variable already exist in variable pool, not from user inputs + if variable_pool.get(variable_selector): + continue # fetch variable node id from variable selector variable_node_id = variable_selector[0] From 233dc3f2e9d7dd37a5ba410818f491f72c6d4b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Tue, 31 Dec 2024 16:06:37 +0800 Subject: [PATCH 4/5] test commit --- api/services/tools/api_tools_manage_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/tools/api_tools_manage_service.py b/api/services/tools/api_tools_manage_service.py index d0bb67ee705053..0e3bd3a7b83c68 100644 --- a/api/services/tools/api_tools_manage_service.py +++ b/api/services/tools/api_tools_manage_service.py @@ -417,7 +417,7 @@ def test_api_tool_preview( try: provider_controller.validate_credentials_format(credentials) - # get tool + # get tool tool = provider_controller.get_tool(tool_name) runtime_tool = tool.fork_tool_runtime( runtime={ From 613834e0f3b2245cba78f7a9f4009018120eaadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Tue, 31 Dec 2024 16:24:53 +0800 Subject: [PATCH 5/5] fix CI --- api/core/workflow/workflow_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/workflow/workflow_entry.py b/api/core/workflow/workflow_entry.py index a8150753e9f97a..f622d0b2d01f28 100644 --- a/api/core/workflow/workflow_entry.py +++ b/api/core/workflow/workflow_entry.py @@ -238,7 +238,7 @@ def mapping_user_inputs_to_variable_pool( variable_selector ): raise ValueError(f"Variable key {node_variable} not found in user inputs.") - + # environment variable already exist in variable pool, not from user inputs if variable_pool.get(variable_selector): continue