mirror of https://github.com/langgenius/dify.git
fix question classifier node type
This commit is contained in:
parent
078b10a9f0
commit
9e4b39e19f
|
|
@ -39,7 +39,7 @@ default_retrieval_model = {
|
|||
|
||||
class KnowledgeRetrievalNode(BaseNode):
|
||||
_node_data_cls = KnowledgeRetrievalNodeData
|
||||
_node_type = NodeType.KNOWLEDGE_RETRIEVAL
|
||||
node_type = NodeType.KNOWLEDGE_RETRIEVAL
|
||||
|
||||
def _run(self, variable_pool: VariablePool) -> NodeRunResult:
|
||||
node_data: KnowledgeRetrievalNodeData = cast(self._node_data_cls, self.node_data)
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ from models.workflow import WorkflowNodeExecutionStatus
|
|||
|
||||
class QuestionClassifierNode(LLMNode):
|
||||
_node_data_cls = QuestionClassifierNodeData
|
||||
_node_type = NodeType.QUESTION_CLASSIFIER
|
||||
node_type = NodeType.QUESTION_CLASSIFIER
|
||||
|
||||
def _run(self, variable_pool: VariablePool) -> NodeRunResult:
|
||||
node_data: QuestionClassifierNodeData = cast(self._node_data_cls, self.node_data)
|
||||
|
|
|
|||
Loading…
Reference in New Issue