Skip to content

Commit 6a0ff36

Browse files
authored
fix: fix typo (#12034)
Signed-off-by: yihong0618 <[email protected]>
1 parent e0c24c0 commit 6a0ff36

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

api/core/model_runtime/model_providers/huggingface_tei/text_embedding/text_embedding.py

-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ def validate_credentials(self, model: str, credentials: dict) -> None:
157157
headers["Authorization"] = f"Bearer {api_key}"
158158

159159
extra_args = TeiHelper.get_tei_extra_parameter(server_url, model, headers)
160-
print(extra_args)
161160
if extra_args.model_type != "embedding":
162161
raise CredentialsValidateFailedError("Current model is not a embedding model")
163162

api/core/workflow/graph_engine/graph_engine.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ def _run_node(
612612
max_retries = node_instance.node_data.retry_config.max_retries
613613
retry_interval = node_instance.node_data.retry_config.retry_interval_seconds
614614
retries = 0
615-
shoudl_continue_retry = True
616-
while shoudl_continue_retry and retries <= max_retries:
615+
should_continue_retry = True
616+
while should_continue_retry and retries <= max_retries:
617617
try:
618618
# run node
619619
retry_start_at = datetime.now(UTC).replace(tzinfo=None)
@@ -692,7 +692,7 @@ def _run_node(
692692
parent_parallel_id=parent_parallel_id,
693693
parent_parallel_start_node_id=parent_parallel_start_node_id,
694694
)
695-
shoudl_continue_retry = False
695+
should_continue_retry = False
696696
else:
697697
yield NodeRunFailedEvent(
698698
error=route_node_state.failed_reason or "Unknown error.",
@@ -706,7 +706,7 @@ def _run_node(
706706
parent_parallel_id=parent_parallel_id,
707707
parent_parallel_start_node_id=parent_parallel_start_node_id,
708708
)
709-
shoudl_continue_retry = False
709+
should_continue_retry = False
710710
elif run_result.status == WorkflowNodeExecutionStatus.SUCCEEDED:
711711
if node_instance.should_continue_on_error and self.graph.edge_mapping.get(
712712
node_instance.node_id
@@ -758,7 +758,7 @@ def _run_node(
758758
parent_parallel_id=parent_parallel_id,
759759
parent_parallel_start_node_id=parent_parallel_start_node_id,
760760
)
761-
shoudl_continue_retry = False
761+
should_continue_retry = False
762762

763763
break
764764
elif isinstance(item, RunStreamChunkEvent):

0 commit comments

Comments
 (0)