mirror of https://github.com/langgenius/dify.git
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:
parent
b3bee58e74
commit
c74af1e065
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue