@@ -37,8 +37,9 @@ def get_global_variable(node):
3737class BaseStartStepNode (IStarNode ):
3838 def save_context (self , details , workflow_manage ):
3939 base_node = self .workflow_manage .get_base_node ()
40- default_global_variable = get_default_global_variable (base_node .properties .get ('input_field_list' , []))
41- workflow_variable = {** default_global_variable , ** get_global_variable (self )}
40+ default_global_variable = get_default_global_variable (base_node .properties .get ('user_input_field_list' , []))
41+ default_api_global_variable = get_default_global_variable (base_node .properties .get ('api_input_field_list' , []))
42+ workflow_variable = {** default_global_variable , ** default_api_global_variable , ** get_global_variable (self )}
4243 self .context ['question' ] = details .get ('question' )
4344 self .context ['run_time' ] = details .get ('run_time' )
4445 self .context ['document' ] = details .get ('document_list' )
@@ -57,8 +58,9 @@ def get_node_params_serializer_class(self) -> Type[serializers.Serializer]:
5758
5859 def execute (self , question , ** kwargs ) -> NodeResult :
5960 base_node = self .workflow_manage .get_base_node ()
60- default_global_variable = get_default_global_variable (base_node .properties .get ('input_field_list' , []))
61- workflow_variable = {** default_global_variable , ** get_global_variable (self )}
61+ default_global_variable = get_default_global_variable (base_node .properties .get ('user_input_field_list' , []))
62+ default_api_global_variable = get_default_global_variable (base_node .properties .get ('api_input_field_list' , []))
63+ workflow_variable = {** default_global_variable , ** default_api_global_variable , ** get_global_variable (self )}
6264 """
6365 开始节点 初始化全局变量
6466 """
0 commit comments