diff --git a/api/core/app/app_config/entities.py b/api/core/app/app_config/entities.py index 98ef6eb0c2..533cb37f8f 100644 --- a/api/core/app/app_config/entities.py +++ b/api/core/app/app_config/entities.py @@ -173,7 +173,7 @@ class ModelConfig(BaseModel): class Condition(BaseModel): """ - Conditon detail + Condition detail """ name: str diff --git a/api/core/rag/entities/metadata_entities.py b/api/core/rag/entities/metadata_entities.py index 723229a332..b07d760cf4 100644 --- a/api/core/rag/entities/metadata_entities.py +++ b/api/core/rag/entities/metadata_entities.py @@ -30,7 +30,7 @@ SupportedComparisonOperator = Literal[ class Condition(BaseModel): """ - Conditon detail + Condition detail """ name: str diff --git a/api/core/workflow/nodes/knowledge_retrieval/entities.py b/api/core/workflow/nodes/knowledge_retrieval/entities.py index 460290f0ea..8aa6a5016f 100644 --- a/api/core/workflow/nodes/knowledge_retrieval/entities.py +++ b/api/core/workflow/nodes/knowledge_retrieval/entities.py @@ -91,7 +91,7 @@ SupportedComparisonOperator = Literal[ class Condition(BaseModel): """ - Conditon detail + Condition detail """ name: str diff --git a/api/core/workflow/nodes/list_operator/node.py b/api/core/workflow/nodes/list_operator/node.py index 5d3b07a8f3..8a6d3d0c5a 100644 --- a/api/core/workflow/nodes/list_operator/node.py +++ b/api/core/workflow/nodes/list_operator/node.py @@ -178,7 +178,7 @@ class ListOperatorNode(BaseNode): result = list(filter(filter_func, variable.value)) variable = variable.model_copy(update={"value": result}) else: - raise AssertionError("this statment should be unreachable.") + raise AssertionError("this statement should be unreachable.") return variable def _apply_order(self, variable: _SUPPORTED_TYPES_ALIAS) -> _SUPPORTED_TYPES_ALIAS: @@ -191,7 +191,7 @@ class ListOperatorNode(BaseNode): ) variable = variable.model_copy(update={"value": result}) else: - raise AssertionError("this statement should be unreachable") + raise AssertionError("this statement should be unreachable.") return variable