Bläddra i källkod

correct typos . (#25717)

Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
tags/1.9.0
湛露先生 1 månad sedan
förälder
incheckning
0bbf4fb66a
Inget konto är kopplat till bidragsgivarens mejladress

+ 1
- 1
api/core/app/app_config/entities.py Visa fil

@@ -173,7 +173,7 @@ class ModelConfig(BaseModel):

class Condition(BaseModel):
"""
Conditon detail
Condition detail
"""

name: str

+ 1
- 1
api/core/rag/entities/metadata_entities.py Visa fil

@@ -30,7 +30,7 @@ SupportedComparisonOperator = Literal[

class Condition(BaseModel):
"""
Conditon detail
Condition detail
"""

name: str

+ 1
- 1
api/core/workflow/nodes/knowledge_retrieval/entities.py Visa fil

@@ -91,7 +91,7 @@ SupportedComparisonOperator = Literal[

class Condition(BaseModel):
"""
Conditon detail
Condition detail
"""

name: str

+ 2
- 2
api/core/workflow/nodes/list_operator/node.py Visa fil

@@ -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


Laddar…
Avbryt
Spara