Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/microsoft/promptflow into d…
Browse files Browse the repository at this point in the history
…evs/peiwen/add_error_handling
  • Loading branch information
PeiwenGaoMS committed Dec 7, 2023
2 parents d50020d + 1c7e772 commit a324cf0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/promptflow/promptflow/executor/_dag_manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import inspect
from typing import Any, Callable, Dict, List, Mapping

from promptflow._utils.logger_utils import logger
from promptflow.contracts.flow import InputAssignment, InputValueType, Node
from promptflow.executor import _input_assignment_parser

Expand Down Expand Up @@ -67,6 +68,10 @@ def get_node_valid_inputs(self, node: Node, f: Callable) -> Mapping[str, Any]:
continue
# If the parameter has no default value, the input will be set to None so that function will not fail.
else:
logger.warning(
f"The node '{i.value}' referenced by the input '{name}' of the current node '{node.name}' "
"has been bypassed, and no default value is set. Will use 'None' as the value for this input."
)
results[name] = None
else:
results[name] = self._get_node_dependency_value(i)
Expand Down

0 comments on commit a324cf0

Please sign in to comment.