Remove dead code (#17899)

This commit is contained in:
Yongtao Huang
2025-04-11 20:33:52 +08:00
committed by GitHub
parent 861a8a19b2
commit 5ca9433c46
15 changed files with 4 additions and 66 deletions
@@ -1,13 +0,0 @@
from typing import Optional
from pydantic import BaseModel
from core.workflow.graph_engine.entities.graph import GraphParallel
class NextGraphNode(BaseModel):
node_id: str
"""next node id"""
parallel: Optional[GraphParallel] = None
"""parallel"""
@@ -597,7 +597,6 @@ class KnowledgeRetrievalNode(LLMNode):
def _get_prompt_template(self, node_data: KnowledgeRetrievalNodeData, metadata_fields: list, query: str):
model_mode = ModelMode.value_of(node_data.metadata_model_config.mode) # type: ignore
input_text = query
memory_str = ""
prompt_messages: list[LLMNodeChatModelMessage] = []
if model_mode == ModelMode.CHAT: