Update api/core/workflow/nodes/agent/agent_node.py

accept

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
leon.Huang 2025-12-18 20:18:57 +08:00 committed by GitHub
parent b3bee58e74
commit c74af1e065
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ class AgentNode(Node[AgentNodeData]):
model_instance, model_schema = self._fetch_model(value)
# memory config - only for LLM models
history_prompt_messages = []
model_type_str = value.get("model_type", "")
model_type_str = value.get("model_type", ModelType.LLM.value)
if node_data.memory and model_type_str == ModelType.LLM.value:
memory = self._fetch_memory(model_instance)
if memory: